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两大布局已经完全适用于各种开发条件下,其他的布局仅供参考学习,毕竟知识就是力量,以后的开发过程中万一遇到也能游刃 ...
随机推荐
- [BOOK] Applied Math and Machine Learning Basics
<Deep Learning> Ian Goodfellow Yoshua Bengio Aaron Courvill 关于此书Part One重难点的个人阅读笔记. 2.7 Eigend ...
- android基础---->Broadcast的使用
在Android中,Broadcast是一种广泛运用的在应用程序之间传输信息的机制.而BroadcastReceiver是对发送出来的 Broadcast进行过滤接受并响应的一类组件. 目录导航: 广 ...
- 安卓手机优化 ROOT自启动管理 + 电量管理
一.KingRoot + 净化大师 KingRoot 主要完成ROOT 和 自启动软件的管理 这里禁止的自启动管理 对于有些软件是不太管用 比如美团 手机百度等 净化大师 主要完成 高电量的软件优化 ...
- GDI+绘制五星红旗
五星红旗是由红色背景,加5个黄色五角星组成.绘制一个五星红旗的思路,就是先定义一个五角星的自定义控件,然后通过设置五角星的大小.位置.旋转角度等属性,组合成一个五星红旗. 五角星自定义控件代码: pu ...
- Using Java in Debian
Using Java in Debian 要安装个solr的环境调试,需要安装java,我的虚拟机使用的是debian,搜索了好多还是sun时代的写的blog.最后在debian的官网找到如下: ht ...
- day_6.10 tcp三次握手 四次挥手
tcp和udp对比 tcp比udp稳定 断开连接的四次挥手
- ACM-ICPC 2018 沈阳赛区网络预赛 I. Lattice's basics in digital electronics 阅读题加模拟题
题意:https://nanti.jisuanke.com/t/31450 题解:题目很长的模拟,有点uva的感觉 分成四步 part1 16进制转为二进制string 用bitset的to_stri ...
- [hyperscan] hyperscan 1到1.5 --!!
[hyperscan][pkg-config] hyperscan 从0到1路线图 接续前文,继续深入理解: 概述: 1. 自动机理论,是hyperscan的理论基础. https://zh.wik ...
- [daily][centos][iptables][firewalld] firewalld的初步了解
CentOS7中默认使用firewalld代替了iptables . 接下来将对firewalld, 做一些初步的了解. 首先读一下, redhat的文档: https://access.redhat ...
- [archlinux] linux boot process/order/stage
信息量好大 --! 神教读物,无人能比: https://wiki.archlinux.org/index.php/Arch_boot_process IBM的高质量文档 https://www.ib ...