安卓中简单的线性布局
来源:互联网 发布:java 重写 重载 编辑:程序博客网 时间:2024/05/10 08:17
<?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="match_parent" android:layout_height="match_parent"> <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_weight="1" android:background="#ff0000" android:orientation="horizontal"> <TextView android:layout_width="wrap_content" android:layout_height="match_parent" android:layout_weight="1" android:background="#000000"/> <TextView android:layout_width="wrap_content" android:layout_height="match_parent" android:layout_weight="1" android:background="#FF00FF"/> <TextView android:layout_width="wrap_content" android:layout_height="match_parent" android:layout_weight="1" android:background="#00FF00"/> <TextView android:layout_width="wrap_content" android:layout_height="match_parent" android:layout_weight="1" android:background="#00FF"/> </LinearLayout> <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_weight="1" android:background="#00ff00" android:orientation="vertical"> <TextView android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_weight="1" android:background="#FFFFFF"/> <TextView android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_weight="1" android:background="#00FF00"/> <TextView android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_weight="1" android:background="#0000FF"/> <TextView android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_weight="1" android:background="#FF0000"/> </LinearLayout></LinearLayout>
效果预览:
0 0
- 安卓中简单的线性布局
- 简单的LinearLayout线性布局
- 线性布局--简单计算器的布局
- 线性布局(LinearLayout)的简单使用
- android线性布局__LinearLayout的简单学习
- 线性布局小实现——计算器的简单布局
- 使用线性布局实现简单登陆界面的实例
- 线性布局的详解
- 线性布局的属性
- android的线性布局
- android的线性布局
- 线性布局的使用
- 线性布局的属性
- 利用线性布局和相对布局实现一个简单的页面
- 线性布局和相对布局的知识点
- Android的布局控件----LinearLayout(线性布局)
- 线性布局控件间的布局设置
- 线性布局里面的layout_weight
- spring+springMvc 架构导致定时任务重复加载执行两次
- [Elasticsearch] 多字段搜索 (二) - 最佳字段查询及其调优
- iOS学习总结之导航控制器
- Tools 命名空间的使用与 Support Library Annotations 介绍
- 动态添加行,删除行
- 安卓中简单的线性布局
- 特殊问题 用两位long long 代替大数运算
- map/reduce
- Android 常用控件
- 忙是治疗一切神经病的良药
- Java开发中的23种设计模式详解
- 1098. Insertion or Heap Sort (25) / 1089. Insert or Merge (25)
- 修改Android actionbar 溢出菜单按钮(OverflowButton)默认图标
- ping