android 中的UI
来源:互联网 发布:linux route del 编辑:程序博客网 时间:2024/05/29 15:40
2、Android中的 UI
1.Common Layout(普通的常用布局)
1)RelativeLayout (相对布局)
相对位置的布局
2)LinearLayout (线性布局)
现行布局,从上到下或者从做到右, orientation vertica horizontal
android:layout_gravity="center_horizontal" (是指控件本身水平居中)
android:gravity="center_horizontal" (是指控件里的内容在该控件中水平居中)
3)GridLayout (网格布局)
GridLayout (网格类型的布局)
4)FrameLayout(帧布局)
若是不指定位置控件就会重叠,后面引用的控件会遮盖前面的控件。
android:layout_gravity="right|top 可以用这样的方式来指定控件的位置
5)Table Layout(表格布局)
Android:shrinkColumns="0, 1, 2"//每一行分三份
<TableRow> android:layout_column="0" </TableRow>//第一行的第一份
<TableRow>
<Button
android:layout_column="1" //第二行第二份 />
<Button
android:layout_column="1" //第二行第二份 />
</TableRow>
5)......(绝对布局)
这个布局基本上已经不推荐使用了
0 0
- Android中的UI更新
- Android中的UI刷新
- Android中的UI细节
- Android中的UI
- Android中的UI控件
- Android 中的UI
- android 中的UI
- Android 中的 UI Controls
- android中的UI优化
- 浅谈Android系统中的UI
- Android中的UI更新(2)
- Android中的UI线程详解
- Android中的UI性能检测
- Android中的UI基本控件
- Android UI性能优化 检测应用中的UI卡顿
- Android UI性能优化 检测应用中的UI卡顿
- Android UI性能优化 检测应用中的UI卡顿
- Android UI性能优化 检测应用中的UI卡顿
- 自定义View
- c++实验7-最大公约数与最小公倍数
- 如何远程访问svn 服务器
- POJ 1456 Supermarket【贪心+并查集】
- [Android] 布局文件中控件属性值为 @null
- android 中的UI
- redis配置文件redis.conf详细说明
- Android 多线程间变量同步的问题
- docker学习笔记1
- 乐学成语
- java面试题
- java练习——利用方法递归对1~100求和
- 你不知道的全文检索---solr索引库的维护(一)
- fastDFS架构解析和安装测试教程