您的位置:首页 > 其它

解决布局中组件不能放在底部的问题

2014-12-23 16:58 134 查看
布局中有时设置了

[java] view
plaincopyprint?

android:layout_alignParentBottom="true"

也不一定能把组件放在屏幕的底部,那这时候可以把这个组件放在一个布局中:

[html] view
plaincopyprint?

<LinearLayout

android:id="@+id/act_rest_bar"

android:layout_width="match_parent"

android:layout_height="wrap_content"

android:layout_alignParentBottom="true" >



<include layout="@layout/widget_bottom_bar" />

</LinearLayout>

这样就可以了。

原文出自http://blog.csdn.net/yueqinglkong/article/details/12322631
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: