android_04_线性布局
来源:互联网 发布:透明计算造假 知乎 编辑:程序博客网 时间:2024/06/05 20:36
演示效果:
布局文件:
<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" tools:context="com.xsism.linearlayout.MainActivity" android:orientation="vertical" > <LinearLayout android:layout_weight="1" android:layout_height="0dp" android:layout_width="match_parent" android:orientation="horizontal" > <TextView android:layout_height="match_parent" android:layout_width="0dp" android:layout_weight="1" android:background="#ff0000" /> <TextView android:layout_height="match_parent" android:layout_width="0dp" android:layout_weight="1" android:background="#00ff00" /> <TextView android:layout_height="match_parent" android:layout_width="0dp" android:layout_weight="1" android:background="#0000ff" /> <TextView android:layout_height="match_parent" android:layout_width="0dp" android:layout_weight="1" android:background="@android:color/black" /> </LinearLayout> <LinearLayout android:layout_weight="1" android:layout_height="0dp" android:layout_width="match_parent" android:orientation="vertical" > <TextView android:layout_weight="1" android:layout_width="match_parent" android:layout_height="0dp" android:background="#ff0000" /> <TextView android:layout_weight="1" android:layout_width="match_parent" android:layout_height="0dp" android:background="#00ff00" /> <TextView android:layout_weight="1" android:layout_width="match_parent" android:layout_height="0dp" android:background="#0000ff" /> <TextView android:layout_weight="1" android:layout_width="match_parent" android:layout_height="0dp" android:background="#000000" /> </LinearLayout> </LinearLayout>
0 0
- android_04_线性布局
- 线性布局
- 线性布局
- 线性布局
- 线性布局
- 线性布局
- 线性布局
- 线性布局
- 线性布局
- Android_04_网络图片查看器
- 线性布局 相对布局 参数
- android布局之线性布局
- android布局之线性布局
- 安卓布局--线性布局
- Android布局之线性布局
- 自定义UICollectionView布局-线性布局
- Android布局之线性布局
- android 布局学习---线性布局
- CSS 中 # 和 . 的区别
- 子线程是否可以刷新UI视图?
- hibernate3.3.2学习笔记--- 一个小实例
- CRF++中文分词
- ethercat 主 从站的建立
- android_04_线性布局
- HDU 5908 Abelian Period 模拟乱搞
- mvc加载composer且用composer加载medoo数据类
- 欢迎使用CSDN-markdown编辑器
- leetcode-3 Longest Substring Without Repeating Characters经典的动态规划问题
- dedecms后台所有档案列表和等待审核的档案重叠怎么办?
- 【牛腩新闻发布系统之发布遇错】
- 如何linux版百度云
- ubuntu安装Anaconda-spyder