-2

I need to get the image's resource of image button. Did someone have way to do it?

Protomen
  • 9,471
  • 9
  • 57
  • 124
Oster
  • 1
  • 3

1 Answers1

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