How to access/get the resource id of the image in an ImageButton (Android) -


i have imagebutton, , want use image associated in onclick event.

i found this: android imagebutton - determine resource set

but wonder there built in way find resourceid of image in imagebutton in 2 cases: 1. android:src set in xml , never changed. 2. image changed in code.

thank you!

this isn't possible.

i'd listen mark:

just use settag() , gettag() associate , retrieve custom data imageview.


Comments

Popular posts from this blog

c# - How to set Z index when using WPF DrawingContext? -

razor - Is this a bug in WebMatrix PageData? -

visual c++ - Using relative values in array sorting ( asm ) -