<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画表格的更多相关文章

  1. Android TableLayout 表格布局

    TableLayout继承LinearLayout 有多少个TableRow对象就有多少行, 列数等于最多子控件的TableRow的列数 直接在TableLayout加控件,控件会占据一行 Table ...

  2. 画表格防OFFICE的功能

    http://files.cnblogs.com/xe2011/officetable.rar 画表格防OFFICE的功能

  3. ANDROID SHAPE画圆形背景_ANDROID实现角标布局

    ANDROID SHAPE画圆形背景_ANDROID实现角标布局 <?xml version="1.0" encoding="UTF-8"?> &l ...

  4. android gridview画分割线

    dongyangzhang android gridview画分割线,如图: 1.先上图: 2.具体实现代码: public class LineGridView extends GridView { ...

  5. Android布局_表格布局TableLayout

    一.TableLayout概述 TableLayout表格布局模型以行列的形式管理子控件,每一行为一个TableRow的对象,当然也可以是一个View的对象 二.TableLayout的全局属性  1 ...

  6. .Net程序猿玩转Android开发---(8)表格布局TableLayout

    表格布局TableLayout是Android中比較经常使用的一个布局控件,既然是表格,肯定有行和列,TableLayout中的行有TableRow组成.列依据每行控件的数量来确定 假如第一行有3个控 ...

  7. Android 自学之表格布局 TableLayout

    表格布局(TableLayout),表格布局采用行.列的形式来管理UI组件,TableLayout并不需要明确的声明多少行,多少列,而是通过TableRow.其他组件来控制表格的行数和列数. 每次想T ...

  8. Android中的表格布局TableLayout

    表格布局最基本的三个属性: XML代码实例: <?xml version="1.0" encoding="utf-8"?> <LinearLa ...

  9. Android五大布局详解——TableLayout(表格布局)

    TableLayout 前面所学的LinearLayout和RelativeLayout两大布局已经完全适用于各种开发条件下,其他的布局仅供参考学习,毕竟知识就是力量,以后的开发过程中万一遇到也能游刃 ...

随机推荐

  1. mybatis通用mapper源码解析(二)

    1.javabean的属性值生成sql /** * 获取所有查询列,如id,name,code... * * @param entityClass * @return */ public static ...

  2. php-fpm开机自动启动脚本其实源码包里边就有

    网上有各种版本的php-fpm开机自动启动脚本, 其实你编译后源目录已经生成自动脚本.不用做任何修改即用.cp {php-5.5.x-source-dir}/sapi/fpm/init.d.php-f ...

  3. B - Space Ant

    The most exciting space discovery occurred at the end of the 20th century. In 1999, scientists trace ...

  4. E - 487--3279

    Businesses like to have memorable telephone numbers. One way to make a telephone number memorable is ...

  5. MySQL语言 数据库练习题分解。

    一.            设有一数据库,包括四个表:学生表(Student).课程表(Course).成绩表(Score)以及教师信息表(Teacher).四个表的结构分别如表1-1的表(一)~表( ...

  6. ThinkPHP框架 做个简单表单 添加数据例子__ACTION__ __SELF__

    public function zhuCe(){//自定义zhuCe方法和zhuCe显示表里的__ACTiON__这个相互交接 //实现两个逻辑 //1,显示注册页面 //2.向数据库添加内容 //自 ...

  7. eclipse中一个项目引用另一个项目的方法(申明:来源于网络)

    eclipse中一个项目引用另一个项目的方法(申明:来源于网络) 地址:http://blog.csdn.net/a942980741/article/details/39990699

  8. PAT甲级1139 First Contact

    题目:https://pintia.cn/problem-sets/994805342720868352/problems/994805344776077312 题意: 有m对朋友关系,每个人用4为数 ...

  9. ROS基础

    在ROS中启动Gazebo物理仿真环境 roslaunch gazebo_ros empty_world.launch 打开后一片漆黑是以为gazebo需要从国外的网站上下载模型,国内网络不行,一直下 ...

  10. 【每日一题】 UVA - 340 阅读理解+模拟

    https://cn.vjudge.net/problem/UVA-340 题目很难读,差不多读了两天 意思是给你一个n个数的数列,然后有m个询问,每个询问也是一个n个数的数列,让你输出两个数:一个是 ...