安卓-表格布局 及 边框颜色设置
2017-11-14 11:46
621 查看
卓-表格布局 及 边框
原创 2015年08月19日19:08:37
1768
[html] view
plain copy
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/LinearLayout1"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
>
<TableLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:stretchColumns="0,1,2"
android:background="#000000"
android:layout_margin="2dp"
>
<TableRow>
<TextView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_margin="0.5dp"
android:background="#ffffffff"
android:text="姓名" />
<TextView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_margin="0.5dp"
android:background="#ffffffff"
android:text="联系方式" />
<TextView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_margin="0.5dp"
android:background="#ffffffff"
android:text="工作" />
</TableRow>
<TableRow>
<TextView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_margin="0.5dp"
android:background="#ffffffff"
android:text="张三" />
<TextView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_margin="0.5dp"
android:background="#ffffffff"
android:text="12345678909" />
<TextView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_margin="0.5dp"
android:background="#ffffffff"
android:text="程序员" />
</TableRow>
<TableRow>
<TextView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_margin="0.5dp"
android:background="#ffffffff"
android:text="岑金" />
<TextView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_margin="0.5dp"
android:background="#ffffffff"
android:text="13245647867" />
<TextView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_margin="0.5dp"
android:background="#ffffffff"
android:text="画家" />
</TableRow>
<TableRow>
<TextView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_margin="0.5dp"
android:background="#ffffffff"
android:text="薛琳" />
<TextView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_margin="0.5dp"
android:background="#ffffffff"
android:text="13889655896" />
<TextView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_margin="0.5dp"
android:background="#ffffffff"
android:text="作家" />
</TableRow>
</TableLayout>
</LinearLayout>
相关文章推荐
- 安卓设置布局边框
- 设置表格边框颜色
- latex表格线的颜色设置(边框添加颜色)
- android wps表格如何设置边框颜色
- 设置表格边框颜色
- latex表格线的颜色设置(边框添加颜色)
- Android表格布局TableLayout简单实现(Java动态添加,设置边框,删除数据(单行,多行))
- 如何给表格设置边框颜色(速记)
- Word中如何设置表格的边框线样式和颜色
- Android表格布局之设置边框
- 安卓开发为布局或者空间设置边框
- 设置表格的边框为虚线()
- CSS设置html table表格边框样式
- HTML表格边框的设置小技巧
- 网页表格中单元格线条及边框的设置
- 设置HTML表格细边框
- CSS基础知识-四(边框样式、caption、表格居中、边框宽度和高度、id和class的区别、Div+CSS布局)
- Android 的res/values/colors自定义颜色列表和注释表及布局文件常用颜色引用,颜色设置
- 设置html表格无边框
- 表格的边距 边框设置