标签: android android-imagebutton
我需要获取图像的图像资源按钮。 有人有办法做到吗?
答案 0 :(得分:0)
ImageButton没有setImageSource()函数。如果您希望将drawable从ImageButton中取出,可以调用imageButton.getDrawable();