<style name="primary_checkbox" parent="@android:style/Widget.Material.CompoundButton.CheckBox" tools:ignore="NewApi">
<item name="android:colorControlActivated">@color/colorPrimary</item><!--选中时checkbox的颜色-->
<item name="android:colorControlNormal">@color/metal_gray</item><!--没选中时checkbox的颜色-->
</style>
然后设置checkbox的theme="primary_checkbox"就可以了