有没有办法在Android XML中将复选框(勾选框)颜色更改为白色.(我需要包含黑色勾号的白色勾选框,作为我在真实设备中的android工作室中获得的预览)
这是我的复选框代码
<CheckBox
android:textSize="15sp"
android:textColor="#fff"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Save Loging "
android:id="@+id/checkBox"
android:layout_below="@id/PasswordeditText"
android:checked="true"
android:layout_alignParentLeft="true"
android:layout_alignParentStart="true"
android:buttonTint="#fff" />
Run Code Online (Sandbox Code Playgroud)
当我添加android:buttonTint="#fff"预览时显示我需要的更改,但它在真实设备中不起作用
设计预览
真实设备
是否有任何属性android:buttonTint可以用来实现真实设备中的更改.