checkbox color android code example

Example 1: android change checkbox color

<android.support.v7.widget.AppCompatCheckBox 
    android:layout_width="wrap_content" 
    android:layout_height="wrap_content" 
    app:buttonTint="@color/COLOR_HERE" />

Example 2: android change checkbox color

<CheckBox
  ...
  android:buttonTint="@color/tint_color" />

Example 3: android checkbox tint color

<CheckBox
  ...
  android:buttonTint="@color/tint_color" />

Example 4: how to change checkbox color in android

<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
    <item android:color="@color/light_gray_checkbox"
          android:state_checked="false"/>
    <item android:color="@color/common_red"
          android:state_checked="true"/>
</selector>

Tags:

Java Example