当前位置: 动力学知识库 > 问答 > 编程问答 >

android - Custom RadioButton not showing text

问题描述:

I have implemented the CustomRadioButton from this Link.

Here, theme is implemented for to set the CustomRadioButton and then that theme is added to the activity.

I have done most of the steps and it works nice. But I want to add text on that radioButton then it's not possible?

Why am I not able to set the text for the RadioButton?

网友答案:

It could be your width or color. Does your radiobutton look like this?

<RadioButton
    android:id="@+id/type_pounds"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:text="@string/pounds"
    android:textColor="#000000" />
分享给朋友:
您可能感兴趣的文章:
随机阅读: