
Android_布局
布局
pre_eminent
这个作者很懒,什么都没留下…
展开
-
android_95_layout_weight
所有layout_打头的属性,都是给父控件使用的,比如权重, 因为:子控件它自己本身是不知道 其他兄弟控件的存在的在一个水平方向的LinearLayout中: ...原创 2017-01-24 09:21:19 · 312 阅读 · 0 评论 -
android_16_布局笔记
#常见布局###线性布局* 有一个布局方向,水平或者竖直* 在竖直布局下,左对齐、右对齐,水平居中生效* 在水平布局下,顶部对齐、底部对齐、竖直居中生效* 权重:按比例分配屏幕的剩余宽度或者高度###相对布局* 组件默认位置都是左上角,组件之间可以重叠* 可以相对于父元素上下左右对齐,相对于父元素,水平居中、竖直居中、水平竖直同时居中* 可以相对于其他组件上下左右对齐* 可...原创 2016-12-27 18:25:02 · 1224 阅读 · 0 评论 -
android_07_表格布局
最终效果: 布局文件: <?xml version="1.0" encoding="utf-8"?><TableLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:la...原创 2016-10-02 14:24:28 · 281 阅读 · 0 评论 -
android_06_帧布局
最终效果: 布局文件: <?xml version="1.0" encoding="utf-8"?><FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android...原创 2016-10-02 13:42:40 · 327 阅读 · 0 评论 -
android_05_相对布局
最终效果: 布局文件: <?xml version="1.0" encoding="utf-8"?><RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" a...原创 2016-10-02 12:42:23 · 294 阅读 · 0 评论 -
android_04_线性布局
演示效果: 布局文件: <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_par...原创 2016-10-02 12:03:23 · 258 阅读 · 0 评论 -
android_day02_布局总结
常见布局相对布局RelativeLayout组件默认左对齐、顶部对齐 设置组件在指定组件的右边 android:layout_toRightOf="@id/tv1" 设置在指定组件的下边 android:layout_below="@id/tv1" 设置右对齐父元素 android:layout_alignParentRight="true" 设...原创 2016-10-02 09:00:00 · 503 阅读 · 0 评论