android中的页脚视图问题

android中的页脚视图问题,android,Android,在我的android应用程序中,当列表中的项目数很小时,页脚会粘在列表的末尾,如下图所示。 但不是到屏幕的尽头。 有没有办法把它贴在屏幕的底部。 我正在使用一个单独的footer.xml,并将其称为使用充气机服务 请分享你的宝贵建议 提前感谢:)使用相对布局并将其与父级底部对齐: <RelativeLayout android:orientation="vertical" android:layout_width="fill_parent" android:lay

在我的android应用程序中,当列表中的项目数很小时,页脚会粘在列表的末尾,如下图所示。

但不是到屏幕的尽头。 有没有办法把它贴在屏幕的底部。 我正在使用一个单独的footer.xml,并将其称为使用充气机服务

请分享你的宝贵建议


提前感谢:)

使用相对布局并将其与父级底部对齐:

<RelativeLayout
    android:orientation="vertical"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent">

<YourFooter
    android:id="@+id/SomethingSomething"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:layout_alignParentBottom="true" />



</RelativeLayout>