レイアウトインフレーター付きのgridviewを使用して、テキスト付きのアイコンを表示していますが、画面の下部にボタンを用意する必要があるという違いがあります。私のレイアウトファイルは次のようになります。
<?xml version="1.0" encoding="utf-8"?>
<merge xmlns:android="http://schemas.android.com/apk/res/android">
<GridView xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/sdcard" android:layout_width="fill_parent"
android:layout_height="fill_parent" android:verticalSpacing="10dp"
android:horizontalSpacing="10dp" android:numColumns="3"
android:stretchMode="columnWidth" android:gravity="center" android:background="#ffffff"/>
<RelativeLayout android:layout_width="match_parent"
android:layout_height="match_parent">
<Button android:text="submit" android:id="@+id/button"
android:layout_width="fill_parent" android:layout_height="wrap_content"
android:layout_alignParentBottom="true" android:paddingTop="5dp">
</Button>
</RelativeLayout>
</merge>
エミュレータでテストすると(実際のデバイスに応じたサイズ)。グリッドビューは正しく表示されますが、最後の行までスクロールすると、画像は表示されますが、テキストとボタンが表示されません。テキストも表示したい。どうすればこれを達成できますか?