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" --将控件置于垂直方向的中心位置



文章来源:http://blog.csdn.net/softkexin/article/details/5933589

更多相关文章

  1. 相对布局RelativeLayout的妙用:提示标签在输入框内
  2. 【Android开发学习27】界面控件之进度条(ProgressBar)
  3. android EditText 全面阐述
  4. ArcGIS for Android地图控件的5大常见操作
  5. android 属性
  6. 设置TextView文字居中
  7. Android:控件属性
  8. 写TextView的Selector了解到的android读取xml文件的几点规则
  9. Android中RelativeLayout各个属性的含义

随机推荐

  1. Android系统升级的完整过程
  2. Android中使用log4j
  3. add study URL
  4. Simulate android behaviors on win32
  5. Android录音下————AudioRecord源码分
  6. 在Android上编译OSG[3.0.2 ]
  7. 在Android中使用ExecutorService、Execut
  8. dumpsys cpuinfo
  9. Android Studio 之 View组件常用属性及其
  10. In FontFamilyFont, unable to find attr