1 つのラジオ グループの下に 7 つのラジオ ボタンがあります。を使用して水平にレンダリングしましたorientation = "horizontal"
。ただし、一度に表示できるのは 4 つだけで、残りは表示されません。
これらすべての「ラジオボタン」を 1 つの「RadioGroup」に保持しながら、残りを 2 行目に表示する方法はありますか?
私のコードが必要な場合 -
<RadioGroup
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<RadioButton
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="1 BHK" />
<RadioButton
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="1.5 BHK" />
<RadioButton
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="2 BHK" />
<RadioButton
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="2.5 BHK" />
<RadioButton
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="2 BHK" />
<RadioButton
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="2.5 BHK" />
</RadioGroup>