Alineación de texto de botón de radio en android

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.

preguntado el 31 de julio de 12 a las 09:07

1 Respuestas

<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

Respondido 31 Jul 12, 09:07

Yes i want to display the text on the left side - Kamalone

then is this answer help you? - ramkiran pachigolla

how this is aligning in your layout? - ramkiran pachigolla

RadioButton is on left side and follows the text - Kamalone

you need to display in reverse order? - ramkiran pachigolla

No es la respuesta que estás buscando? Examinar otras preguntas etiquetadas or haz tu propia pregunta.