I have an ImageButton, and I want to use the Image associated with in the OnClick event.
I found this:
Android ImageButton – determine what resource is currently set
But I wonder is there any built in way to find the resourceid of the image in an ImageButton in this two cases:
1. The android:src was set in the xml and never changed.
2. The Image was changed in code.
Thank You!
This isn’t possible.
I’d listen to Mark: