パネル内に RadioGroup を表示するには? 私はこのようなものを表示する必要があります:
RadioGroup
コードでとを作成しましたRadioButtons
が、画像のようにパネルを表示する方法がわかりません。
何か案が ?
パネル内に RadioGroup を表示するには? 私はこのようなものを表示する必要があります:
RadioGroup
コードでとを作成しましたRadioButtons
が、画像のようにパネルを表示する方法がわかりません。
何か案が ?
「パネル」は必要ありません。それを設定するだけbackground
ですRadioGroup
。
このコードを相対レイアウトで試してください
<RadioGroup
android:id="@+id/ratingRadioGroup"
android:layout_width="wrap_content"
android:layout_height="40dp"
android:layout_alignParentLeft="true"
android:layout_below="@+id/btnDob"
android:layout_marginLeft="50pt"
android:orientation="horizontal"
android:background="#F9E60E" >
<RadioButton
android:id="@+id/e"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignRight="@+id/checkBox1"
android:layout_alignTop="@+id/ratingRadioGroup"
android:checked="true"
android:paddingRight="10pt"
android:text="M" />
<RadioButton
android:id="@+id/radioFemale"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="10"
android:text="F" />
</RadioGroup>