在Android上有与ImageButton.setImageSource()相反的动作吗?

时间:2015-01-14 17:19:52

标签: android android-imagebutton

我需要获取图像的图像资源按钮。 有人有办法做到吗?

1 个答案:

答案 0 :(得分:0)

ImageButton没有setImageSource()函数。如果您希望将drawable从ImageButton中取出,可以调用imageButton.getDrawable();