如何改变CheckBox的颜色? [英] How to change the color of a CheckBox?

查看:937
本文介绍了如何改变CheckBox的颜色?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我如何更改默认的复选框颜色的Andr​​oid?
默认情况下,复选框的颜色是绿色,我想改变这种颜色。
如果这是不可能的,请告诉我如何做一个自定义的复选框

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 CheckBoxs drawable using android:button="@drawable/your_check_drawable" attribute.

这篇关于如何改变CheckBox的颜色?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆