android TableLayOut画表格
2024-10-10 20:07:24
<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>
最新文章
- async &; await 的前世今生
- usb驱动开发之大结局
- JAVA addShutdownHook测试
- js取最小最大值--Math.min()、math.max()
- Markdown学习语法的记录
- Brute-force Algorithm_矩阵快速幂&;&;欧拉公式*****
- 2013-2014集训之DP
- Java 内存区域和GC机制--备用
- 7.1.1.关闭WebSocket连接
- Three ways to throw exception in C#. Which is your preference?
- BZOJ 3787: Gty的文艺妹子序列 [分块 树状数组!]
- spring data redis template GenericJackson2JsonRedisSerializer的使用
- MySQL ERROR 1045 (28000)
- 论文笔记:Auto-DeepLab: Hierarchical Neural Architecture Search for Semantic Image Segmentation
- mysql数据库之基本操作和存储引擎
- python-拷贝
- 初学HTML-7
- Codeforces 1107 简要题解
- <;context:component-scan>;子标签:<;context:include-filter>;和<;context:exclude-filter>;使用时要注意的地方
- Linux 网络流量实时监控工具之ntopng详解