解决布局中组件不能放在底部的问题
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
[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
相关文章推荐
- 解决ScrollView底部有布局,不能滑动的问题
- 布局中组件不能放在底部
- Android:AutoScrollViewPager放在PullToRefresh中,解决不能下拉刷新问题
- Android自定义布局的背景在多分辨率的情况下设置fill_parent时背景不能够横向全屏的问题解决
- 解决添加/删除组件中找不到IIS选项或不能安装的问题
- 安卓布局中,获取某个组件的优先级,解决覆盖问题
- 解决GridPager分页组件复选框不能全选问题
- ScrollView属性fillViewport解决android布局不能撑满全屏的问题
- ScrollView属性fillViewport解决android布局不能撑满全屏的问题
- 使用ScrollView属性fillViewport解决android布局不能撑满全屏的问题
- 解决子view加点击后父布局不能滑动问题
- Android解决ScrollView视图导致其底部的布局栏被推到上边的问题
- std::string放在结构中不能删除对象的问题解决
- android在根布局组件设置背景不显示的问题解决
- 解决外部引用的js文件不能获取服务端组件的ClientID问题(c#)
- 解决scrollview 子布局不能充满屏幕的问题
- 经过两周时间解决的多线程绘图代码,圆满解决delphi组件不能在多线程画曲线问题
- ://解决CppWebBrowse的TextArea组件不能获取回车符的问题
- 解决 asp.net 中如果 Menu 控件放在 MasterPage 中, IE6 会出现的二级菜单不能正确显示的问题
- 解决XHTML中DIV+CSS布局时不能居中的问题