Android UI布局练习1(垂直分布)
来源:互联网 发布:淘宝神笔怎么取消 编辑:程序博客网 时间:2024/05/16 02:09
Actrvrty_main.xml
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" android:paddingBottom="@dimen/activity_vertical_margin" android:paddingLeft="@dimen/activity_horizontal_margin" android:paddingRight="@dimen/activity_horizontal_margin" android:paddingTop="@dimen/activity_vertical_margin" android:orientation="vertical" tools:context=".MainActivity" > <TextView android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="1" android:background="#aa0000" android:gravity="center_vertical" /> <TextView android:layout_marginTop="8dp" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="1" android:background="#22bbee" android:gravity="center_vertical" /> <TextView android:layout_marginTop="8dp" android:gravity="center_vertical" android:layout_width="fill_parent" android:layout_height="wrap_content" android:background="#aa11dd" android:layout_weight="1"/> <TextView android:layout_marginTop="8dp" android:gravity="center_vertical" android:layout_width="fill_parent" android:layout_height="wrap_content" android:background="#bbcc44" android:layout_weight="1"/> <TextView android:layout_marginTop="8dp" android:gravity="center_vertical" android:layout_width="fill_parent" android:layout_height="wrap_content" android:background="#ccaabb" android:layout_weight="1"/></LinearLayout>
布局完成后如下所示:
0 0
- Android UI布局练习1(垂直分布)
- android UI布局练习3
- 线性布局实现垂直分布
- layout_weight设置垂直分布的三个布局
- Android-UI布局1
- android progressbar 垂直布局
- Android UI 开发入门—线性布局练习
- Android开发学习笔记--UI布局(1)
- Android UI练习2
- android ui 练习
- Android应用程序UI设计(1)_布局
- Android一起学Ui(1)----(折叠布局)
- android UI学习笔记(布局)
- android-UI组件(一):布局管理器
- Android学习(7)-UI布局
- Android UI之LinearLayout(线性布局)
- Android UI之TableLayout(表格布局)
- Android UI之FrameLayout(帧布局)
- 使用Matplotlib与Python
- 有101根电线 每根的一头在楼底 另一端在楼顶 有一个灯泡 一个电池 无数根很短的电线 怎么样在楼上一次在楼下去一次将电线的对应关系弄清楚。
- Direct3D 11编程总结
- 大话设计模式之策略模式
- 第三周作业——冒泡排序和归并排序
- Android UI布局练习1(垂直分布)
- HDU1862EXCEL排序
- Bloom Filter
- linux学习笔记
- Alliance Memory低功耗异步静态随机存储器选型参数表
- UVA 12002 Happy Birthday(dp+LIS)
- 自己封装的类用于操作RichTextBox内容,方便获取和设置RichTextBox内容
- 程序改错
- hadoop的成员项目简介