布局中组件不能放在底部

来源:互联网 发布:720软件百科 编辑:程序博客网 时间:2024/04/27 23:47

布局中有时设置了

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

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

这样就可以了。

原创粉丝点击