我正在使用以下代碼來顯示活動底部的按鈕。如何在android佈局中創建固定頁腳?
<RelativeLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_centerHorizontal="true"
>
<Button android:id="@+id/btnGetMoreResults"
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:text="Get more"
/>
</RelativeLayout>
和它上面的列表視圖。當我在列表視圖中顯示更多數據時,此按鈕pannel會向下移動。任何人都可以引導我如何在活動底部修復它?
任何幫助,將不勝感激。
我嘗試了好幾個小時,每天背等元素相似,但這個工作瞬間:) – ani0904071 2016-05-26 04:54:59