1、
LinearLayout线性布局:横着竖着按顺序排列
RelativeLayout相对布局:起始坐标是屏幕左上角,以同级或上级参考系定位位置
FrameLayout帧布局:像千层饼一样,一层压着一层
ConstraintLayout约束布局 谷歌2016年新发布
2、layout_width和layoutheight

layout_width和layoutheight属性说明
3、gravity 对齐方式,center horizontal_center vertical_center 决定子控件相对该父容器的位置 一般写在父容器上
4、layout_gravity 对齐方式,center horizontal_center vertical_center 决定该容器相对它的父容器的位置 一般写在子控件上
5、weight 按照比例分配父容器剩余的宽度或高度