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两大布局已经完全适用于各种开发条件下,其他的布局仅供参考学习,毕竟知识就是力量,以后的开发过程中万一遇到也能游刃 ...
随机推荐
- ABBYY FineReader 12如何识别包含非常规符号的文本
ABBYY FineReader 12 是一款OCR图文识别软件,可快速方便地将扫描纸质文档.PDF文件和数码相机的图像转换成可编辑.可搜索的文本,有时文本中可能会包含一些非常规的符号,此时ABBYY ...
- jexl2 执行字符串Java代码
一,引入jar包, <!-- https://mvnrepository.com/artifact/org.apache.commons/commons-jexl --><depen ...
- [Android Studio] Using NDK to call OpenCV
NDK才是Android开发通向超高薪之路.(这句话,似乎四年前有云) 难点在于常用的non-free module (sift and surf) unsw@unsw-UX303UB$ pwd /h ...
- 大杂烩 -- HashMap、HashTable、ConCurrentHashMap 联系与区别
基础大杂烩 -- 目录 -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 1. Hashtable 和 HashMap ⑴ ...
- 装饰模式和它在JDK中的实现
对装饰者模式的一个通俗的理解就是:一个东西A包装了另外一个东西B,A在B的功能基础上又扩展了新的功能,但是对外提供的接口不变 装饰者模式(Decorator)的定义: 动态地给一个对象添加一些额外的职 ...
- css---颜色过渡渐变
CSS---颜色过渡渐变 <!doctype html> <html lang="en"> <head> <meta charset=&q ...
- Docker Compose一键部署Nginx反向代理Tomcat集群
目录结构如下 mysql/conf/my.cnf [mysqld] user=mysql port=3306 datadir=/var/lib/mysql socket=/var/lib/mysql/ ...
- PAT甲级1052 Linked List Sorting
题目:https://pintia.cn/problem-sets/994805342720868352/problems/994805425780670464 题意: 给定一些内存中的节点的地址,值 ...
- Django 模板 语法 变量 过滤器 模板继承 组件 自定义标签和过滤器 静态文件相关
本节目录 一 语法 二 变量 三 过滤器 四 标签Tags 五 模板继承 六 组件 七 自定义标签和过滤器 八 静态文件相关 一 语法 模板渲染的官方文档 关于模板渲染你只需要记两种特殊符号(语法 ...
- 1.7Oob 构造方法
1)构造方法 在创建对象后不用调用会自动执行,如无自定义构造会默认执行没有参数没有,且方法体中没有任何语句的, 2)构造方法在main入口开始后就执行