我使用gridview和佈局充氣器來顯示icon with text,區別在於我必須在屏幕底部提供一個按鈕。我的佈局文件如下所示:在屏幕底部有按鈕的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>
當我在模擬器上測試它(根據真實設備的大小)。網格視圖正確填充,但當我滾動到最後一行圖像可見,但不是文本和按鈕阻礙視圖。我希望文字也可見。我怎樣才能做到這一點?
在未來,請不要加'請幫我在這 謝謝, Pankaj'到您的文章。您的問題或答案中應該[不要使用簽名或標語](http://www.stackoverflow.com/faq#signatures)。 – meagar 2011-06-09 14:31:31