Is there a way I can find what resource a particular ImageButton is set to, at any given time?
For eg: I have an ImageButton that I set to R.drawable.btn_on
R.drawable.btn_on
Just use setTag() and getTag() to associate and retrieve custom data for your ImageView.
setTag()
getTag()
ImageView