How to change the color of a CheckBox?
问题 How do I change the default CheckBox color in Android? By default the CheckBox color is green, and I want to change this color. If it is not possible please tell me how to make a custom CheckBox ? 回答1: If your minSdkVersion is 21+ use android:buttonTint attribute to update the color of a checkbox: <CheckBox ... android:buttonTint="@color/tint_color" /> In projects that use AppCompat library and support Android versions below 21 you can use a compat version of the buttonTint attribute: