Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要获取图像按钮的图像资源。有人有办法吗?
ImageButton 没有 setImageSource() 函数。如果您希望从 ImageButton 中取出可绘制对象,您可以调用 imageButton.getDrawable();