3 つのボタンを含むラジオ グループを取得しました。
- 小さな
- 中くらい
- 大きい
それがレイアウトに配置された方法です。理由はわかりませんが、中ボタンが大ボタンに入れ替わっています。元に戻したので、今のレイアウトを見ると、すべてが適切な順序で配置されていますが、アプリケーションを実行すると、まだ間違った順序になっています。ラジオ グループの順序を設定するパラメータはありますか?
相対レイアウトを取得しました。これはラジオボタンを記述するコードです
<RadioGroup
android:id="@+id/size"
android:layout_width="186dp"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_below="@+id/ingredients"
android:orientation="vertical" >
<RadioButton
android:id="@+id/small"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:checked="true"
android:maxHeight="20dp"
android:text="Small" />
<RadioButton
android:id="@+id/medium"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:maxHeight="20dp"
android:text="Medium" />
<RadioButton
android:id="@+id/big"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:checked="true"
android:maxHeight="20dp"
android:text="Big" />
</RadioGroup>