android TableLayOut画表格
- <TableRow
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:divider="@drawable/tableline"
- android:orientation="horizontal"
- android:showDividers="middle|beginning|end">
- <TextView
- android:layout_width="0dp"
- android:layout_height="wrap_content"
- android:layout_weight="1"
- android:background="#f8f8f8"
- android:gravity="center"
- android:padding="10dp"
- android:text="1"
- android:textColor="#434343"
- android:textSize="27px" />
- <TextView
- android:layout_width="0dp"
- android:layout_height="wrap_content"
- android:layout_marginLeft="1dp"
- android:layout_weight="1"
- android:background="#f8f8f8"
- android:gravity="center"
- android:padding="10dp"
- android:text="2"
- android:textColor="#434343"
- android:textSize="27px" />
- <TextView
- android:layout_width="0dp"
- android:layout_height="wrap_content"
- android:layout_marginLeft="1dp"
- android:layout_weight="1"
- android:background="#f8f8f8"
- android:gravity="center"
- android:padding="10dp"
- android:text="3"
- android:textColor="#434343"
- android:textSize="27px" />
- </TableRow>
- <TableRow
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:divider="@drawable/tableline"
- android:orientation="horizontal"
- android:showDividers="middle|beginning|end">
- <TextView
- android:layout_width="0dp"
- android:layout_height="match_parent"
- android:layout_weight="1"
- android:background="@color/white"
- android:gravity="center"
- android:padding="10dp"
- android:text="这个任务比较重"
- android:textColor="#434343"
- android:textSize="15dp" />
- <TextView
- android:layout_width="0dp"
- android:layout_height="wrap_content"
- android:layout_marginLeft="1dp"
- android:layout_weight="1"
- android:background="@color/white"
- android:gravity="center"
- android:padding="10dp"
- android:text="任务安排任务安排任务安排任务安任务安排任务任务安排任务任务安排任务排任务安排"
- android:textColor="#434343"
- android:textSize="15dp" />
- </TableRow>
- <TableRow
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:divider="@drawable/tableline"
- android:orientation="horizontal"
- android:showDividers="middle|beginning|end">
- <TextView
- android:layout_width="0dp"
- android:layout_height="wrap_content"
- android:layout_weight="1"
- android:background="@color/white"
- android:gravity="center"
- android:padding="10dp"
- android:text="2"
- android:textColor="#434343"
- android:textSize="15dp" />
- <TextView
- android:layout_width="0dp"
- android:layout_height="wrap_content"
- android:layout_marginLeft="1dp"
- android:layout_weight="1"
- android:background="@color/white"
- android:gravity="center"
- android:padding="10dp"
- android:text="2台45亿欧"
- android:textColor="#434343"
- android:textSize="15dp" />
- </TableRow>
- <TableRow
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:divider="@drawable/tableline"
- android:orientation="horizontal"
- android:showDividers="middle|beginning|end">
- <TextView
- android:layout_width="0dp"
- android:layout_height="wrap_content"
- android:layout_weight="1"
- android:background="@color/white"
- android:gravity="center"
- android:padding="10dp"
- android:text="2"
- android:textColor="#434343"
- android:textSize="15dp" />
- <TextView
- android:layout_width="0dp"
- android:layout_height="wrap_content"
- android:layout_marginLeft="1dp"
- android:layout_weight="1"
- android:background="@color/white"
- android:gravity="center"
- android:padding="10dp"
- android:text="1111"
- android:textColor="#434343"
- android:textSize="15dp" />
- </TableRow>
- <TableRow
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:divider="@drawable/tableline"
- android:orientation="horizontal"
- android:showDividers="middle|beginning|end">
- <TextView
- android:layout_width="0dp"
- android:layout_height="wrap_content"
- android:layout_weight="1"
- android:background="@color/white"
- android:gravity="center"
- android:padding="10dp"
- android:text="0"
- android:textColor="#434343"
- android:textSize="15dp" />
- <TextView
- android:layout_width="0dp"
- android:layout_height="wrap_content"
- android:layout_marginLeft="1dp"
- android:layout_weight="1"
- android:background="@color/white"
- android:gravity="center"
- android:padding="10dp"
- android:text="2"
- android:textColor="#434343"
- android:textSize="15dp" />
- </TableRow>
- <TableRow
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:divider="@drawable/tableline"
- android:orientation="horizontal"
- android:showDividers="middle|beginning|end">
- <TextView
- android:layout_width="0dp"
- android:layout_height="wrap_content"
- android:layout_weight="1"
- android:background="@color/white"
- android:gravity="center"
- android:padding="10dp"
- android:text="2345"
- android:textColor="#434343"
- android:textSize="15dp" />
- <TextView
- android:layout_width="0dp"
- android:layout_height="wrap_content"
- android:layout_marginLeft="1dp"
- android:layout_weight="1"
- android:background="@color/white"
- android:gravity="center"
- android:padding="10dp"
- android:text="3"
- android:textColor="#434343"
- android:textSize="15dp" />
- </TableRow>
- </TableLayout>
- tableline划线
- <?xml version="1.0" encoding="utf-8"?>
- <shape xmlns:android="http://schemas.android.com/apk/res/android"
- android:shape="rectangle">
- <solid android:color="#00f" />
- <size
- android:height="1dp"
- android:width="1dp" />
- </shape>
android TableLayOut画表格的更多相关文章
- Android TableLayout 表格布局
TableLayout继承LinearLayout 有多少个TableRow对象就有多少行, 列数等于最多子控件的TableRow的列数 直接在TableLayout加控件,控件会占据一行 Table ...
- 画表格防OFFICE的功能
http://files.cnblogs.com/xe2011/officetable.rar 画表格防OFFICE的功能
- ANDROID SHAPE画圆形背景_ANDROID实现角标布局
ANDROID SHAPE画圆形背景_ANDROID实现角标布局 <?xml version="1.0" encoding="UTF-8"?> &l ...
- android gridview画分割线
dongyangzhang android gridview画分割线,如图: 1.先上图: 2.具体实现代码: public class LineGridView extends GridView { ...
- Android布局_表格布局TableLayout
一.TableLayout概述 TableLayout表格布局模型以行列的形式管理子控件,每一行为一个TableRow的对象,当然也可以是一个View的对象 二.TableLayout的全局属性 1 ...
- .Net程序猿玩转Android开发---(8)表格布局TableLayout
表格布局TableLayout是Android中比較经常使用的一个布局控件,既然是表格,肯定有行和列,TableLayout中的行有TableRow组成.列依据每行控件的数量来确定 假如第一行有3个控 ...
- Android 自学之表格布局 TableLayout
表格布局(TableLayout),表格布局采用行.列的形式来管理UI组件,TableLayout并不需要明确的声明多少行,多少列,而是通过TableRow.其他组件来控制表格的行数和列数. 每次想T ...
- Android中的表格布局TableLayout
表格布局最基本的三个属性: XML代码实例: <?xml version="1.0" encoding="utf-8"?> <LinearLa ...
- Android五大布局详解——TableLayout(表格布局)
TableLayout 前面所学的LinearLayout和RelativeLayout两大布局已经完全适用于各种开发条件下,其他的布局仅供参考学习,毕竟知识就是力量,以后的开发过程中万一遇到也能游刃 ...
随机推荐
- MySQL -- 行转列 -- GROUP_CONCAT -- MAX(CASE WHEN THEN)
列转行:利用max(case when then) SELECT `name`, MAX( CASE WHEN course='语文' THEN score END ) AS 语文, MAX( CAS ...
- 【代码审计】XIAOCMS_后台database.php页面存在SQL注入漏洞
0x00 环境准备 XIAOCMS官网: http://www.xiaocms.com/ 网站源码版本:XiaoCms (发布时间:2014-12-29) 程序源码下载:http://www.xi ...
- Android_照相机Camera_调用系统照相机返回data为空
本博文为子墨原创,转载请注明出处! http://blog.csdn.net/zimo2013/article/details/16916279 1.调用系统照相机 [java] view plain ...
- css3整理--calc()
calc()语法: elem{ width:calc( 50% -2px ); } 取值说明: calc是计算的缩写,上句含义是:计算elem父元素的50%再减2px,并将结果赋值给elem的widt ...
- [转]复制、移动和删除:cp, rm, mv
转自:http://www.cnblogs.com/benio/archive/2010/07/27/1785929.html 要复制文件,请使用cp(copy)命令.不过,cp命令的用途很多.除了单 ...
- 正则表达式/(^\s*)|(\s*$)/g意思
包含以空格.回车符等字符开头 或者 空格.回车符等字符结尾 的字符串,可过滤出所有空格.回车符的字符
- HBuilder-svn安装与使用【原创】
目录 安装 使用 步骤 1.安装 1.1工具/插件安装 1.2选择svn,点击安装 1.3完成后,重启即可 -------------------------- ...
- day_4_25 py
''' 递归: 如果一个函数在内部不调用其它的函数, 而是自己本身的话,这个函数就是递归函数 ''' def factor(num): if num >1: result = num*facto ...
- Jmeter压力测试工具安装及使用教程
一.Jmeter下载 进入官网:http://jmeter.apache.org/ 1.第一步进入官网如下图 2.选择进行下载,下载下来为一个压缩包,解压即可. 3.我下载的是jmeter4.0版本, ...
- TOP100summit:【分享实录-美团点评】 业务快速升级发展背后的系统架构演进
本篇文章内容来自2016年TOP100summit美团●大众点评高级技术专家,酒店后台研发组eHome团队负责人许关飞的案例分享.编辑:Cynthia 许关飞:美团●大众点评高级技术专家,酒店后台研发 ...