RadioGroup with only one selected Item
I am trying to make a RadioGroup as in the image. I want that only one RadioButton should be checked at a time. This is what I did to achive this. <RadioGroup android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="vertical" > <RadioGroup android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="horizontal" > <RadioButton android:id="@+id/radio1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_weight="1" android:text="@string/radio1" /> <RadioButton android:id="@+id/radio2" android