如何改变CheckBox的颜色? [英] How to change the color of a CheckBox?
本文介绍了如何改变CheckBox的颜色?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我如何更改默认的复选框
颜色的Android?
默认情况下,复选框
的颜色是绿色,我想改变这种颜色。
如果这是不可能的,请告诉我如何做一个自定义的复选框
?
How do I change the default CheckBox
color in Android?
By default the CheckBox
color is green, and I want to change this color.
If it is not possible please tell me how to make a custom CheckBox
?
推荐答案
您可以修改复选框
取值绘制使用安卓按钮=@可绘制/ your_check_drawable
属性。
You can change CheckBox
s drawable using android:button="@drawable/your_check_drawable"
attribute.
这篇关于如何改变CheckBox的颜色?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文