没有办法更改单选按钮的颜色? [英] Any way to change the color of a radio button?

查看:156
本文介绍了没有办法更改单选按钮的颜色?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在与含有一组单选按钮的单选按钮组的机器人形式。从我可以告诉有没有办法设置一个单选按钮的亮点,当你选择它的颜色。它似乎总是默认为一些鲜艳的绿色。这东西是可编辑还是没有?

I'm working on an android form with a radio group containing a set of radio buttons. From what I can tell there is no way to set the color a radio button highlights when you select it. It seems to always default to some bright green color. Is this something that is editable or no?

感谢

推荐答案

是的,你可以创建自己绘制的你希望它看起来选中时喜欢和采用Android:按钮,将其设置为资源

Yes you can create your own drawable for what you want it to look like when checked and use android:button to set it to the resource.

示例

Example here

这篇关于没有办法更改单选按钮的颜色?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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