1

私のアプリケーションでは、ラジオボタン グループを表示しています。テキストの左側に表示されるボタン。ボタンの左側にテキストを配置したい。android:text="My Text"ボタンの理由を指定するために an を使用していることに注意してください。

4

1 に答える 1

0
<TextView android:layout_width="20dp"
    android:layout_height="22dp"
    android:background="@android:color/transparent"
    android:textColor="#000000"
    android:layout_marginLeft="2dp"
    android:textSize="20dp"
    android:text="text"/>
 <RadioButton
    android:id="@+id/rd0"
    android:layout_width="20dp"
    android:layout_height="20dp" /> 

textviewを使用してラジオボタンを配置することもできます。android:text="My Text"ただし、ラジオボタンには使用しないでください

于 2012-07-31T08:48:44.107 に答える