1. <TableRow
  2. android:layout_width="match_parent"
  3. android:layout_height="wrap_content"
  4. android:divider="@drawable/tableline"
  5. android:orientation="horizontal"
  6. android:showDividers="middle|beginning|end">
  7.  
  8. <TextView
  9. android:layout_width="0dp"
  10. android:layout_height="wrap_content"
  11. android:layout_weight="1"
  12. android:background="#f8f8f8"
  13. android:gravity="center"
  14. android:padding="10dp"
  15. android:text="1"
  16. android:textColor="#434343"
  17. android:textSize="27px" />
  18.  
  19. <TextView
  20. android:layout_width="0dp"
  21. android:layout_height="wrap_content"
  22. android:layout_marginLeft="1dp"
  23. android:layout_weight="1"
  24. android:background="#f8f8f8"
  25. android:gravity="center"
  26. android:padding="10dp"
  27. android:text="2"
  28. android:textColor="#434343"
  29. android:textSize="27px" />
  30. <TextView
  31. android:layout_width="0dp"
  32. android:layout_height="wrap_content"
  33. android:layout_marginLeft="1dp"
  34. android:layout_weight="1"
  35. android:background="#f8f8f8"
  36. android:gravity="center"
  37. android:padding="10dp"
  38. android:text="3"
  39. android:textColor="#434343"
  40. android:textSize="27px" />
  41. </TableRow>
  42.  
  43. <TableRow
  44. android:layout_width="match_parent"
  45. android:layout_height="wrap_content"
  46. android:divider="@drawable/tableline"
  47. android:orientation="horizontal"
  48. android:showDividers="middle|beginning|end">
  49.  
  50. <TextView
  51. android:layout_width="0dp"
  52. android:layout_height="match_parent"
  53. android:layout_weight="1"
  54. android:background="@color/white"
  55. android:gravity="center"
  56. android:padding="10dp"
  57. android:text="这个任务比较重"
  58. android:textColor="#434343"
  59. android:textSize="15dp" />
  60.  
  61. <TextView
  62. android:layout_width="0dp"
  63. android:layout_height="wrap_content"
  64. android:layout_marginLeft="1dp"
  65. android:layout_weight="1"
  66. android:background="@color/white"
  67. android:gravity="center"
  68. android:padding="10dp"
  69. android:text="任务安排任务安排任务安排任务安任务安排任务任务安排任务任务安排任务排任务安排"
  70. android:textColor="#434343"
  71. android:textSize="15dp" />
  72. </TableRow>
  73.  
  74. <TableRow
  75. android:layout_width="match_parent"
  76. android:layout_height="wrap_content"
  77. android:divider="@drawable/tableline"
  78. android:orientation="horizontal"
  79. android:showDividers="middle|beginning|end">
  80.  
  81. <TextView
  82. android:layout_width="0dp"
  83. android:layout_height="wrap_content"
  84. android:layout_weight="1"
  85. android:background="@color/white"
  86. android:gravity="center"
  87. android:padding="10dp"
  88. android:text="2"
  89. android:textColor="#434343"
  90. android:textSize="15dp" />
  91.  
  92. <TextView
  93. android:layout_width="0dp"
  94. android:layout_height="wrap_content"
  95. android:layout_marginLeft="1dp"
  96. android:layout_weight="1"
  97. android:background="@color/white"
  98. android:gravity="center"
  99. android:padding="10dp"
  100. android:text="2台45亿欧"
  101. android:textColor="#434343"
  102. android:textSize="15dp" />
  103. </TableRow>
  104.  
  105. <TableRow
  106. android:layout_width="match_parent"
  107. android:layout_height="wrap_content"
  108. android:divider="@drawable/tableline"
  109. android:orientation="horizontal"
  110. android:showDividers="middle|beginning|end">
  111.  
  112. <TextView
  113. android:layout_width="0dp"
  114. android:layout_height="wrap_content"
  115. android:layout_weight="1"
  116. android:background="@color/white"
  117. android:gravity="center"
  118. android:padding="10dp"
  119. android:text="2"
  120. android:textColor="#434343"
  121. android:textSize="15dp" />
  122.  
  123. <TextView
  124. android:layout_width="0dp"
  125. android:layout_height="wrap_content"
  126. android:layout_marginLeft="1dp"
  127. android:layout_weight="1"
  128. android:background="@color/white"
  129. android:gravity="center"
  130. android:padding="10dp"
  131. android:text="1111"
  132. android:textColor="#434343"
  133. android:textSize="15dp" />
  134. </TableRow>
  135.  
  136. <TableRow
  137. android:layout_width="match_parent"
  138. android:layout_height="wrap_content"
  139. android:divider="@drawable/tableline"
  140. android:orientation="horizontal"
  141. android:showDividers="middle|beginning|end">
  142.  
  143. <TextView
  144. android:layout_width="0dp"
  145. android:layout_height="wrap_content"
  146. android:layout_weight="1"
  147. android:background="@color/white"
  148. android:gravity="center"
  149. android:padding="10dp"
  150. android:text="0"
  151. android:textColor="#434343"
  152. android:textSize="15dp" />
  153.  
  154. <TextView
  155. android:layout_width="0dp"
  156. android:layout_height="wrap_content"
  157. android:layout_marginLeft="1dp"
  158. android:layout_weight="1"
  159. android:background="@color/white"
  160. android:gravity="center"
  161. android:padding="10dp"
  162. android:text="2"
  163. android:textColor="#434343"
  164. android:textSize="15dp" />
  165. </TableRow>
  166.  
  167. <TableRow
  168. android:layout_width="match_parent"
  169. android:layout_height="wrap_content"
  170. android:divider="@drawable/tableline"
  171. android:orientation="horizontal"
  172. android:showDividers="middle|beginning|end">
  173.  
  174. <TextView
  175. android:layout_width="0dp"
  176. android:layout_height="wrap_content"
  177. android:layout_weight="1"
  178. android:background="@color/white"
  179. android:gravity="center"
  180. android:padding="10dp"
  181. android:text="2345"
  182. android:textColor="#434343"
  183. android:textSize="15dp" />
  184.  
  185. <TextView
  186. android:layout_width="0dp"
  187. android:layout_height="wrap_content"
  188. android:layout_marginLeft="1dp"
  189. android:layout_weight="1"
  190. android:background="@color/white"
  191. android:gravity="center"
  192. android:padding="10dp"
  193. android:text="3"
  194. android:textColor="#434343"
  195. android:textSize="15dp" />
  196. </TableRow>
  197. </TableLayout>
  1. tableline划线
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <shape xmlns:android="http://schemas.android.com/apk/res/android"
  3. android:shape="rectangle">
  4. <solid android:color="#00f" />
  5. <size
  6. android:height="1dp"
  7. android:width="1dp" />
  8. </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. MySQL -- 行转列 -- GROUP_CONCAT -- MAX(CASE WHEN THEN)

    列转行:利用max(case when then) SELECT `name`, MAX( CASE WHEN course='语文' THEN score END ) AS 语文, MAX( CAS ...

  2. 【代码审计】XIAOCMS_后台database.php页面存在SQL注入漏洞

      0x00 环境准备 XIAOCMS官网: http://www.xiaocms.com/ 网站源码版本:XiaoCms (发布时间:2014-12-29) 程序源码下载:http://www.xi ...

  3. Android_照相机Camera_调用系统照相机返回data为空

    本博文为子墨原创,转载请注明出处! http://blog.csdn.net/zimo2013/article/details/16916279 1.调用系统照相机 [java] view plain ...

  4. css3整理--calc()

    calc()语法: elem{ width:calc( 50% -2px ); } 取值说明: calc是计算的缩写,上句含义是:计算elem父元素的50%再减2px,并将结果赋值给elem的widt ...

  5. [转]复制、移动和删除:cp, rm, mv

    转自:http://www.cnblogs.com/benio/archive/2010/07/27/1785929.html 要复制文件,请使用cp(copy)命令.不过,cp命令的用途很多.除了单 ...

  6. 正则表达式/(^\s*)|(\s*$)/g意思

    包含以空格.回车符等字符开头 或者 空格.回车符等字符结尾 的字符串,可过滤出所有空格.回车符的字符

  7. HBuilder-svn安装与使用【原创】

    目录        安装        使用   步骤 1.安装 1.1工具/插件安装 1.2选择svn,点击安装 1.3完成后,重启即可     -------------------------- ...

  8. day_4_25 py

    ''' 递归: 如果一个函数在内部不调用其它的函数, 而是自己本身的话,这个函数就是递归函数 ''' def factor(num): if num >1: result = num*facto ...

  9. Jmeter压力测试工具安装及使用教程

    一.Jmeter下载 进入官网:http://jmeter.apache.org/ 1.第一步进入官网如下图 2.选择进行下载,下载下来为一个压缩包,解压即可. 3.我下载的是jmeter4.0版本, ...

  10. TOP100summit:【分享实录-美团点评】 业务快速升级发展背后的系统架构演进

    本篇文章内容来自2016年TOP100summit美团●大众点评高级技术专家,酒店后台研发组eHome团队负责人许关飞的案例分享.编辑:Cynthia 许关飞:美团●大众点评高级技术专家,酒店后台研发 ...