它必须是这样的:
目前看起来是这样的:
圆角矩形并不是很重要。 但未选中状态必须为黑色。这是我的代码:
<CheckBox
android:id="@+id/checkbox"
android:buttonTint="@color/orange"
android:layout_width="wrap_content"
android:layout_height="wrap_content"/>
这是我正在使用的主题:
"Theme.AppCompat.Light.NoActionBar"
我也尝试过这个:
<style name="checkbox_style" parent="Bijenkorf">
<item name="material_grey_600">@color/black</item>
</style>
因为默认未选中的颜色是#757575。我在主题中查找了这个颜色,它被称为“material_grey_600”。但是这无法编译。有什么想法吗?