Android(安卓)UI学习 Linear Layout, RelativeLayout
16lz
2021-01-25
http://www.cnmsdn.com/html/201009/1283762175ID7852.html
在相对布局中:
A Layout where the positions of the children can be described in relation to each other or to the parent.
一个布局能够被描绘通过其它子布局,或者是通过其父布局
Note that you cannot have a circular dependency between the size of the RelativeLayout and the position of its children. For example, you cannot have a RelativeLayout whose height is set to WRAP_CONTENT and a child set to ALIGN_PARENT_BOTTOM.
注意:在相对布局的大小和子布局的位置方面你不能间接的依赖。例如:若是一个布局的宽被设置成自适应而子布局被设置为:ALIGN_PARENT_BOTTOM,您将不能使用相对布局。
更多相关文章
- android,利用layoutParams代码动态布局空间位置
- Android(安卓)UI之五种基本布局详解
- android中经常用到的 ExpandableListView 的简单使用
- HTTP下载文件时getContentLength()返回-1
- Android解决CoordinatorLayout折叠布局RecyclerView最后一条数据
- 强烈推荐:Android完全自学从零开始
- 使用DrawerLayout实现侧滑栏
- 让我们创建屏幕- Android(安卓)UI布局和控件
- android界面设计(一)侧边栏的两种实现方式