android:layout_above="@id/xxx" --将控件置于给定ID控件之上
android:layout_below="@id/xxx" --将控件置于给定ID控件之下

android:layout_toLeftOf="@id/xxx" --将控件的右边缘和给定ID控件的左边缘对齐
android:layout_toRightOf="@id/xxx" --将控件的左边缘和给定ID控件的右边缘对齐

android:layout_alignLeft="@id/xxx" --将控件的左边缘和给定ID控件的左边缘对齐
android:layout_alignTop="@id/xxx" --将控件的上边缘和给定ID控件的上边缘对齐
android:layout_alignRight="@id/xxx" --将控件的右边缘和给定ID控件的右边缘对齐
android:layout_alignBottom="@id/xxx" --将控件的底边缘和给定ID控件的底边缘对齐
android:layout_alignParentLeft="true" --将控件的左边缘和父控件的左边缘对齐
android:layout_alignParentTop="true" --将控件的上边缘和父控件的上边缘对齐
android:layout_alignParentRight="true" --将控件的右边缘和父控件的右边缘对齐
android:layout_alignParentBottom="true" --将控件的底边缘和父控件的底边缘对齐
android:layout_centerInParent="true" --将控件置于父控件的中心位置
android:layout_centerHorizontal="true" --将控件置于水平方向的中心位置
android:layout_centerVertical="true" --将控件置于垂直方向的中心位置

更多相关文章

  1. Android中RelativeLayout各个属性的含义
  2. android 所有布局属性和UI控件
  3. android layout属性介绍
  4. Android中设置控件可见与不可见详解
  5. Android基础知识(二)
  6. android 相对布局 RelativeLayout
  7. Android入门学习笔记整理(二)
  8. UI控件之显示文本控件TextView(上)
  9. android TextView 阴影效果,和使用style学习

随机推荐

  1. Android(安卓)Studio API23 HttpClient解
  2. Android(安卓)如何添加一个新的时区
  3. gradle打包时的一些配置
  4. Android(安卓)微信分享图片!!!
  5. android欢迎界面的编程实现[手相评分-软
  6. Android(安卓)蓝牙搜索,配对,连接发送数据
  7. Windows下用Eclipse搭建Android开发环境
  8. android中path的arcTo方法的使用 .
  9. Android打包编译shrinkResources true报
  10. 抓包工具TcpDump for Android(安卓)+ wir