我有一个复选框,想要更改它的颜色。我附上了一张图片以便更好地理解。
我想把黑色正方形的颜色改成白色,就像文本“按下跳过”。我的xml代码如下:
![enter image description here](https://istack.dev59.com/xRBjW.webp)
<CheckBox
android:id="@+id/checkBox1"
android:background="@drawable/tutorial_screen_edit_text_style"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:onClick="onCheckboxClicked"
android:text="Press to Skip"
android:textColor="@color/white"
android:layout_alignParentTop="true"
android:layout_alignParentRight="true"
android:layout_alignParentEnd="true" />