自定义RadioButton不显示文本
问题描述:
我已经实现了CustomRadioButton从this Link。自定义RadioButton不显示文本
在这里,实现主题以设置CustomRadioButton,然后将该主题添加到活动中。
我已经完成了大多数步骤,它的工作很好。但是我想在那个radioButton上添加文本,那么这是不可能的?
为什么我无法设置RadioButton的文本?
答
它可能是你的宽度或颜色。你的单选按钮是这样的吗?
<RadioButton
android:id="@+id/type_pounds"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/pounds"
android:textColor="#000000" />
你使用的XML标签'android:text =“text”'? – 2012-02-25 07:26:59
我有它,但仍然没有得到文本。 – 2012-02-25 07:44:47
你可以发布你的代码吗? – 2012-02-25 09:44:19