Need to change layout of radio buttons! help needed
Posted
by
James
on Stack Overflow
See other posts from Stack Overflow
or by James
Published on 2011-01-13T18:50:06Z
Indexed on
2011/01/13
18:53 UTC
Read the original article
Hit count: 181
I've got 2 radio buttons and i want to put them next to each other. Right now theyre like
Radio button 1 Radio button 2
i want to make it
Radio button 1 Radio button 2
This is my code for the radio buttons, any help?
<RadioGroup
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<RadioButton android:id="@+id/radio_male"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Male"
android:layout_below="@id/gender"/>
<RadioButton android:id="@+id/radio_female"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Female" />
</RadioGroup>
© Stack Overflow or respective owner