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.
SDK 16以降では、ボタンの背景を変更できます
messagesButton.setBackground(swapDrawable);
ただし、この関数は SDK 15 以下では機能しません。プログラムでボタンの背景を変更する別の方法はありますか?
たぶん、ボタンを試して、それを見つける方法を調べてみてください。
button.setBackgroundDrawable()
もあります
button.setBackgroundResource()
RIDで使用します。