In my application i am showing a radiobutton group. The button appearing on the left side of the text. I want the text to be on the left side of the button. Please note that i am using the anandroid:text="My Text"
to specify the reason of the button.
1 Answer
<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" />
You can also use textview to place radio button. But don't use android:text="My Text"
for Radio Button