I need to get the image's resource of image button. Did someone have way to do it?
Asked
Active
Viewed 88 times
-2
-
I don't think there is an api for that. – IgorGanapolsky Jan 14 '15 at 17:25
-
`ImageButton.setImageSource()` or `ImageButton.setImageResource()`? – Rohit5k2 Jan 14 '15 at 17:26
-
maby i dont was clear i want to get the name of the image that the image button showing at specific moment – Oster Jan 14 '15 at 17:51
1 Answers
0
ImageButton does not have a setImageSource() function. If you are looking to get the drawable back out of the ImageButton you can call imageButton.getDrawable();

Adam W
- 972
- 9
- 18