i have my controls in a vertical LinearLayout. All my controls are place below each other.
What i want to do is place a radio group (with 2 radio buttons) on one 'line'
How can i do that?
I tried wrapping it in a horizontal LinearLayout, but that didn't work out
Use the android:orientation="horizontal"
-attribute of the RadioGroup.
<RadioGroup
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="horizontal">
<RadioButton
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:text="No Return"/>
<RadioButton
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:text="Return"/>
</RadioGroup>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With