android RelativeLayout属性和布局实例
来源:互联网 发布:管家婆软件字太小 编辑:程序博客网 时间:2024/05/09 21:54
android:layout_above 将该控件的底部置于给定ID的控件之上;
android:layout_below 将该控件的底部置于给定ID的控件之下;
android:layout_toLeftOf
android:layout_toRightOf
android:layout_alignBaseline
android:layout_alignTop
android:layout_alignBottom
android:layout_alignLeft
android:layout_alignRight
// 相对于父组件
android:layout_alignParentTop
android:layout_alignParentBottom 如果为true,将该控件的底部与其父控件的底部对齐;
android:layout_alignParentLeft
android:layout_alignParentRight
// 居中
android:layout_centerHorizontal 如果为true,将该控件的置于水平居中;
android:layout_centerVertical
android:layout_centerInParent
// 指定移动像素
android:layout_marginTop
android:layout_marginBottom 下偏移的值;
android:layout_marginLeft 左偏移的值;
android:layout_marginRight 右偏移的值;
example:
android:layout_below = "@id/***"
android:layout_alignBaseline = "@id/***"
android:layout_alignParentTop = true
android:layout_marginLeft = “10px
<?xmlversion="1.0"encoding="utf-8"?>
<LinearLayoutxmlns:android="http://schemas.android.com/apk/res/android"
</LinearLayout>
效果如下:
- android RelativeLayout属性和布局实例
- android RelativeLayout布局属性
- Android RelativeLayout布局属性
- Android Relativelayout布局属性
- android 相对布局RelativeLayout中的一些属性的使用和实例
- android 相对布局 RelativeLayout 属性
- [Android]RelativeLayout布局常用属性
- android RelativeLayout 布局重要属性
- android布局属性详解 RelativeLayout
- Android 相对布局 RelativeLayout 属性
- Android 相对布局 RelativeLayout 属性
- Android 相对布局 RelativeLayout 属性
- Android RelativeLayout布局属性详解
- android的Relativelayout布局属性
- Android RelativeLayout布局位置属性
- Android布局-RelativeLayout属性详解
- Android RelativeLayout布局属性应用
- android布局属性详解(RelativeLayout属性)
- 基于C++11的线程池
- Graphics
- 怎么解决WiFi共享精灵中的错误代码:8000ffff
- 关于OpenMP的一些资料
- NSString 与C++ string字符串的互转
- android RelativeLayout属性和布局实例
- 模块的内置方法--Python提高班
- Devexpress中的实时Grid和precessBar的学习笔记
- ubuntu上,文件换行符的转换命令
- Hadoop权威指南读书笔记
- 孙俪邓超被曝已办优才计划入籍香港 女儿获港籍
- 关于STL(stack)栈堆
- 疑似iPhone 6白色版曝光 正面改动不大
- Http协议中的各种长度限制总结