相对布局管理器RelativeLayout
android:gravity 属性设置控件位置
android:ignoreGravity 属性设置该控件不受gravity影响
android:layout_above=""位于该控件的上方
android:layout_below=""位于该控件的下方
android:layout_toLeftOf=""位于该控件的左方
android:layout_toRightOf=""位于该控件的右方
android:layout_alignParentBottom=""该控件与父容器底对齐
android:layout_alignParentLeft=""该控件与父容器左对齐
android:layout_alignParentRight=""该控件与父容器右对齐
android:layout_alignParentTop=""该控件与父容器顶对齐
android:layout_alignBottom=""与一个组件底对齐
android:layout_alignLeft=""与一个组件左对齐
android:layout_alignRight=""与一个组件右对齐
android:layout_alignTop=""与一个组件顶对齐
线性布局管理器LinearLayout
android:orientation="vertical" 组件方向
android:gravity="center|bottom" 组件 位置
android:layout_weight="1" 子组件所占父容器剩余控件大小比例
帧布局管理器FrameLayout
android:foreground="@mipmap/ic_launcher" 设置前景图片
android:foregroundGravity="left|center" 设置前景图片的位置
表格布局管理器TableLayout
android:stretchColumns="0,3" 拉抻表格
android:shrinkColumns="0" 缩进表格
网格布局管理器GridLayout
android:columnCount=""最大列数
android:orientation="" 排列方式
android:rowCount=""最大行数