*相对于兄弟控件的位置属性
android:layout_above="@id/center_btn"处于某一个控件的上方
android:layout_below="@id/center_btn"处于某一个控件的下方
android:layout_toLeftOf="@id/center_btn"处于某一个控件的左边
android:layout_toRightOf="@id/center_btn"处于某一个控件的右边
*相对于兄弟控件的对齐属性
android:layout_alignLeft="@id/center_btn"和某一个控件的左边对齐
android:layout_alignRight="@id/center_btn"和某一个控件的右边对齐
android:layout_alignTop="@id/center_btn"和某一个控件的上方对齐
android:layout_alignBottom="@id/center_btn"和某一个控件的下方对齐
*相对于父控件的位置对齐属性
android:layout_alignParentRight="true"和父容器右边对齐
android:layout_alignParentBottom="true"和父容器下边对齐
android:layout_alignParentLeft="true"和父容器左边对齐
android:layout_alignParentTop="true"和父容器上边对齐
android:layout_centerHorizontal="true"控件相对于父容器水平居中
android:layout_centerVertical="true"控件相对于父容器垂直居中
android:layout_centerInParent="true"处于父容器正中间
*其他属性
android:layout_alignBaseline="@id/tv1"基线对齐(控件中的文本对齐)