我正在使用以下代码在活动底部显示按钮。
<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>
我有一个放在listview上方的按钮面板,但是当我在listview中显示更多数据时,这个按钮面板会被移动到下方。有没有人能指导我如何将其固定在活动的底部?
非常感谢任何帮助。