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(); を呼び出すことができます。