См. Ниже расположение. Я не могу поставить кнопку нижнего колонтитула ниже GridView
. Любая помощь будет оценена.Необходимо создать нижний колонтитул для Gridview в Android
Когда Gridview заполняет экран, кнопка не отображается.
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/relativeLayout1"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
>
<GridView
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/gridview"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:columnWidth="90dp"
android:gravity="center"
android:horizontalSpacing="10dp"
android:numColumns="auto_fit"
android:stretchMode="columnWidth"
android:verticalSpacing="10dp" />
<Button
android:id="@+id/button1"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/gridview"
android:text="Load More Images" />
</RelativeLayout>
Похожие записи: http://stackoverflow.com/questions/3670176/getting-a-button-to-scroll-into-view-at-the-bottom-of-a-gridview-on-android –
Вы должен закрыть ваш GridView после такой кнопки и, конечно же, убрать /> из
может быть полезен для таких читателей, как я! ссылка: http://stackoverflow.com/a/24436309 – johnshumon