0
同じラジオグループの下にラジオボタンを上下左右に両方向に設定する方法はありますか? 2つの分離した行のように?この画像..Androidラジオボタンは、同じラジオグループの下に縦横両方向に設定されています
https://i.stack.imgur.com/4l3OW.png
<RadioGroup
android:id="@+id/radiotheme"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="5dp"
android:layout_marginTop="10dp">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:weightSum="2">
<RadioButton
android:id="@+id/radiothemeblack"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:textSize="15sp"
android:text="@string/theme_black" />
<RadioButton
android:id="@+id/radiothemewhite"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="5dp"
android:layout_weight="1"
android:textSize="15sp"
android:text="@string/theme_white" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:weightSum="2">
<RadioButton
android:id="@+id/radiothemepink"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="5dp"
android:layout_weight="1"
android:textSize="15sp"
android:text="@string/theme_pink" />
<RadioButton
android:id="@+id/radiothemeblue"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="5dp"
android:layout_weight="1"
android:textSize="15sp"
android:text="@string/theme_blue" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:weightSum="2">
<RadioButton
android:id="@+id/radiothemegreen"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="5dp"
android:layout_weight="1"
android:textSize="15sp"
android:text="@string/theme_green" />
<RadioButton
android:id="@+id/radiothemebiolet"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="5dp"
android:layout_weight="1"
android:textSize="15sp"
android:text="@string/theme_green" />
</LinearLayout>
</RadioGroup>
ように私は、XMLによって、このようにしてみてください。問題はここではすべてのボタンを同時に選択することができました。どのように私はこの作業を正しく行うのですか?