1,Relation
1>控件之间的布局
Layout_below
Layout_above
Layout_toLeftof
Layout_torightof
2>与父控件之间的对齐方式
alignParentTop
alignParentBottom
alignParentLeft
alignParentRight
4>设置控件位置
Layout_centerHorizon
Layout_centerVertical
Layout_centerParent
2,FrameLayout
实现多个布局叠加
Layout_gravity //设置组件出现位置
android:alignParentBottom 如果该值为true,则将该控件的底部和父控件的底部对齐
android:layout_alignParentLeft 如果该值为true,则将该控件的左边与父控件的左边对齐
android:layout_alignParentRight 如果该值为true,则将该控件的右边与父控件的右边对齐
android:layout_alignParentTop 如果该值为true,则将空间的顶部与父控件的顶部对齐
android:layout_centerHorizontal 如果值为真,该控件将被至于水平方向的中央
android:layout_centerInParent 如果值为真,该控件将被至于父控件水平方向和垂直方向的中央
android:layout_centerVertical 如果值为真,该控件将被至于垂直方向的中央
a