2010-09-01 27 views
0

在我的android应用程序中,当列表中没有项目很小时,页脚会粘贴到列表的末尾,如下所示。 alt textfooter在android中查看问题

但不到屏幕的末尾。 有没有什么办法可以将它粘到屏幕的底部。 我正在使用单独的footer.xml,并使用Inflator服务调用它。

请分享您宝贵的建议。

感谢提前:)

回答

0

使用相对布局并使其与母公司的底部:

<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> 
+0

Thanks.Now其工作 – Remmyabhavan 2010-09-01 14:06:49