网上找了下,感觉这个最合适,记录下以后用:
<!--checkBox的样式-->
<style name="BrandedCheckBox" parent="AppTheme">
<item name="colorAccent">#40A1EC</item>
<item name="colorControlNormal">#b1b1b1</item>
</style>
<CheckBox
android:id="@+id/rb_child"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:layout_weight="1"
android:focusable="false"
android:theme="@style/BrandedCheckBox"
/>