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" --将控件置于垂直方向的中心位置
分享到:
相关推荐
Android 相对布局 RelativeLayout 属性
android布局属性RelativeLayout详解.
介绍一下RelativeLayout的一些属性,针对于刚学习android开发的朋友
介绍了android 中 RelativeLayout 下的各种属性。linux下打开.
自己写的android相对布局demo,具体参照博客
android实现自定义RelativeLayout可拖动、缩放、旋转TextView
Android相对布局RelativeLayout的基本用法,相对布局是最实用的布局。
Android中使用RelativeLayout布局完成的登录练习题要求说明.pdf 学习资料 复习资料 教学资源
总结android中相对布局RelativeLayout的所有属性及使用方法。适合初级程序员
自定义RelativeLayout圆角图片背景,自定义属性 背景 圆角半径
Android RelativeLayout 的翻译应用。希望能给大家帮助
第一类:属性值为true或false 第二类:属性值必须为id的引用名"@+id/name" 第三类:属性值为具体的值,如20dp,30dp,40dp
Android中使用RelativeLayout完成梅花布局的代码清单.pdf 学习资料 复习资料 教学资源
Android 应用开发源码 参考与学习使用
Android中使用RelativeLayout布局完成的登录界面教学案例任务说明.pdf 学习资料 复习资料 教学资源
像 RelativeLayout 一样的 RadioGroup
RelativeLayout使用详解 包括属性方法详解 实现LinearLayout中weight属性 用 RelativeLayout实现计算器界面 具体参见博客 http://blog.csdn.net/a87b01c14/article/details/49466325
Android中使用RelativeLayout完成的梅花布局教学案例任务说明.pdf 学习资料 复习资料 教学资源
LinearLayout与RelativeLayout混合用
在Android应用开发过程中,为了界面的美观考虑,经常会使用到布局方面的属性,本文就以此问题深入解析,详解一下Android RelativeLayout相对布局属性在实际开发中的应用,需要的朋友可以参考下