フレームレイアウトにカスタムgridViewとボタンがあります。コードは次のとおりです
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
<GridView
android:id="@+id/gridview"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_alignParentBottom="true"
android:layout_below="@+id/Rel_Spinner"
android:layout_centerHorizontal="true"
android:gravity="center"
android:numColumns="auto_fit"
android:stretchMode="columnWidth" >
</GridView>
<FrameLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_alignParentLeft="true" >
<Button
android:id="@+id/btnLoadMore"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Load More" />
</FrameLayout>
</RelativeLayout>
アダプターから画像とテキストをロードします。図に示すように
今私が欲しいのは、GridViewスクロールの最終位置に達したときにボタンが表示され、そうでない場合は再び消えるはずです。図に示すように。