如何将复选框的样式从holo.light更改为holo.dark?

时间:2014-02-01 20:26:13

标签: android checkbox styles

标题不言而喻。可能吗?如果是这样,我该怎么做?我想仅对CheckBox使用holo.dark配色方案 感谢。

2 个答案:

答案 0 :(得分:7)

如果您使用的是android-studio,请选中您的复选框,然后在属性中设置' buttonTint'使用编辑器将属性值设置为您想要的任何颜色。或者,如果您更喜欢xml解决方案,请使用

android:buttonTint="@color/white"

这当然假设定义了颜色白色。

答案 1 :(得分:2)

添加布局xml文件 style="@android:style/Widget.Holo.CompoundButton.CheckBox"

相关问题