我在相对布局中使用单选按钮,这是我的代码
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent" android:layout_height="fill_parent" >
<FrameLayout android:id="@+id/frameLayout" android:layout_width="fill_parent"
android:layout_height="fill_parent" android:layout_alignParentTop="true"
android:layout_above="@+id/radioButtonGroupLayout">
<!-- Put fragments dynamically -->
</FrameLayout>
<RadioGroup android:id ="@+id/radioButtonGroupLayout" android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal" android:layout_alignParentBottom="true">
<RadioButton android:id="@+id/RadioButton1"
android:layout_width="wrap_content" android:layout_height="wrap_content"
android:button="@drawable/ip4_menu_but_1_selector" android:background="@drawable/ip4_menu_background_short72"/>
<RadioButton android:id="@+id/RadioButton2"
android:layout_width="wrap_content" android:layout_height="wrap_content"
android:button="@drawable/ip4_menu_but_2_selector" android:background="@drawable/ip4_menu_background_short72"/>
<RadioButton android:id="@+id/RadioButton3"
android:layout_width="wrap_content" android:layout_height="wrap_content"
android:button="@drawable/ip4_menu_but_3_selector" android:background="@drawable/ip4_menu_background_short72"/>
<RadioButton android:id="@+id/RadioButton4"
android:layout_width="wrap_content" android:layout_height="wrap_content"
android:button="@drawable/ip4_menu_but_4_selector" android:background="@drawable/ip4_menu_background_short72"/>
<RadioButton android:id="@+id/RadioButton5"
android:layout_width="wrap_content" android:layout_height="wrap_content"
android:button="@drawable/ip4_menu_but_5_selector" android:background="@drawable/ip4_menu_background_short72"/>
</RadioGroup>
</RelativeLayout>
最后一个单选按钮不在屏幕上。我只能看到前 4 个单选按钮和最后一个单选按钮。我的代码有什么问题?