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两大布局已经完全适用于各种开发条件下,其他的布局仅供参考学习,毕竟知识就是力量,以后的开发过程中万一遇到也能游刃 ...
随机推荐
- [Linux] 修改系统默认编码
locale 命令 locale 命令用以设置程序运行的语言环境. locale 设置语言环境的命名规则为 Language_area.charset,例如 en_US.utf8 表示语言为英语,地区 ...
- ImportError: libmysqlclient_r.so.16: cannot open shared object file: No such file or directory
在开发一个python项目是,需要用到mysql,但是, 安装完mysql-python后import加载模块提示以下错误: ImportError: libmysqlclient_r.so.16: ...
- C# Post HTTP Request
using System; using System.Collections.Generic; using System.IO; using System.Net; using System.Secu ...
- [JavaScript] 配置JavaScript BUILD
<project name="eForm" default="concatenate"> <tstamp> <format pro ...
- 【win10】显示窗口标题栏颜色
win10默认窗口标题栏是白色的,看起来不习惯. 修改方法如下. 1.按win+X,[设置]->[个性化]->[颜色],勾选如图所示[标题栏]即可.
- Xshell登录Ubuntu12.04
Ubuntu安装ssh服务: sudo apt-get install openssh-server 打开Xshell,选择“新建”,“连接”设置里选择SSH,主机填入需要连接的主机的IP地址.在“用 ...
- ubuntu16.04编译安装imu_tk
imu_tk代码地址 https://bitbucket.org/alberto_pretto/imu_tk 安装依赖项 sudo apt-get install build-essential cm ...
- [No000014D]chrome console 调试 引入 jquery等外部库
var importJs=document.createElement('script') //在页面新建一个script标签 importJs.setAttribute("type&quo ...
- 写一个表达式检查所给的整数是否它第三个数字(从右向左)是7。示例:1732 -> true。
在学习C#基础部分(课件来源:http://www.xuepub.com/52.html),遇到这么一个题目,前段时间面试遇到一个"车牌限行的问题",我就在想如何取末尾数值的问题. ...
- vulnerability test
vegas ---go--https://zhuanlan.zhihu.com/p/21826478 locust---python jmeter--java---http://www.cnblogs ...