RelativeLayout 重要属性
来源:互联网 发布:js中给div赋值 编辑:程序博客网 时间:2024/06/06 11:01
android:layout_centerHrizontal 水平居中
android:layout_centerVertical 垂直居中
android:layout_centerInparent 相对于父元素完全居中
android:layout_alignParentBottom 贴紧父元素的下边缘
android:layout_alignParentLeft 贴紧父元素的左边缘
android:layout_alignParentRight 贴紧父元素的右边缘
android:layout_alignParentTop 贴紧父元素的上边缘
android:layout_alignWithParentIfMissing 如果对应的兄弟元素找不到的话就以父元素做参照物
第二类:属性值必须为id的引用名“@id/id-name”
android:layout_below 在某元素的下方
android:layout_above 在某元素的的上方
android:layout_toLeftOf 在某元素的左边
android:layout_toRightOf 在某元素的右边
android:layout_alignTop 本元素的上边缘和某元素的的上边缘对齐
android:layout_alignLeft 本元素的左边缘和某元素的的左边缘对齐
android:layout_alignBottom 本元素的下边缘和某元素的的下边缘对齐
android:layout_alignRight 本元素的右边缘和某元素的的右边缘对齐
第三类:属性值为具体的像素值,如30dip,40px
android:layout_marginBottom 离某元素底边缘的距离
android:layout_marginLeft 离某元素左边缘的距离
android:layout_marginRight 离某元素右边缘的距离
android:layout_marginTop 离某元素上边缘的距离
- RelativeLayout 重要的属性
- RelativeLayout 重要属性
- RelativeLayout的重要属性
- RelativeLayout重要属性
- android RelativeLayout 布局重要属性
- RelativeLayout用到的一些重要的属性:
- RelativeLayout用到的一些重要的属性
- RelativeLayout用到的一些重要的属性:
- RelativeLayout用到的一些重要的属性
- RelativeLayout用到的一些重要的属性
- RelativeLayout用到的一些重要的属性
- RelativeLayout用到的一些重要的属性:
- relativeLayout布局中一些重要属性
- RelativeLayout用到的一些重要的属性
- RelativeLayout用到的一些重要的属性
- RelativeLayout用到的一些重要的属性
- RelativeLayout用到的一些重要的属性
- RelativeLayout用到的一些重要的属性
- vs2012 access数据库 crystalreport
- 安卓注解框架AndroidAnnotations学习一:@EActivity
- 网络编程 (3)
- 完全卸载Office2011
- HDU AreYouBusy
- RelativeLayout 重要属性
- 网络编程 (4)
- LINQ to XML 编程基础
- linux用户管理(增删改)
- 经典感悟
- 【转载】FFMpeg框架代码阅读
- 【转载】FFMpeg SDK 开发手册
- 【转载】How to use libavformat and libavcodec
- 【转载】UNIX 常用命令简单说明(linux