I have a scroll view with lots of image buttons. I want to change the image for an image button when it\'s pressed. The thing is that I want the image to remain until anothe
What worked for me was:
I created a new drawable xml file, for eg, image_state.xml
And in my layout file, I set the src of the imageView as: