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
state_pressed or state_activated did not work for me.
state_pressed
state_activated
However, I succeeded with state_enabled
state_enabled
Your xml should declare it as src:
Then in code, ensure you enable or disable it based on event/state:
imageCheckBox.isEnabled = true
This was easiest and cleanest for me