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.
checkBox.setBackgroundColor(Color.RED);
要素全体の背景色を変更します。スクエアだけが欲しいです。これは可能ですか?
ありがとう
あなたは試すことができandroid:button="@drawable/bg_checkbox"ますcheckBox.setButtonDrawable(R.drawable.bg_checkbox);
android:button="@drawable/bg_checkbox"
checkBox.setButtonDrawable(R.drawable.bg_checkbox);