how can I exchange new image with the currently image in selector.xml? for example this is my selector:
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item
android:state_pressed="true"
android:drawable="@drawable/selected" />
<item
android:drawable="@drawable/unselected" />
</selector>
user will download a new image from server and the new image will exchange with the old. I.E: new_selected
will download form server and exchange the selected
.
Thanks.
P/S: sorry about my bad english, hope you guys understand what I'm mean. apologize for any inconvenience. Thank you.
Regards,
Too