布局中有时设置了
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>
这样就可以了。