安卓-表格布局 及 边框颜色设置

卓-表格布局 及 边框

原创  2015年08月19日 19:08:37


[html]  view plain  copy
  1. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"  
  2.     xmlns:tools="http://schemas.android.com/tools"  
  3.     android:id="@+id/LinearLayout1"  
  4.     android:layout_width="match_parent"  
  5.     android:layout_height="match_parent"  
  6.     android:orientation="vertical"  
  7.     >  
  8.   
  9.   
  10.     <TableLayout   
  11.         android:layout_width="match_parent"  
  12.         android:layout_height="wrap_content"  
  13.         android:stretchColumns="0,1,2"  
  14.         android:background="#000000"   
  15.         android:layout_margin="2dp"  
  16.         >  
  17.   
  18.   
  19.         <TableRow>  
  20.   
  21.   
  22.             <TextView  
  23.                 android:layout_width="match_parent"  
  24.                 android:layout_height="match_parent"  
  25.                 android:layout_margin="0.5dp"  
  26.                 android:background="#ffffffff"  
  27.                 android:text="姓名" />  
  28.   
  29.   
  30.             <TextView  
  31.                 android:layout_width="match_parent"  
  32.                 android:layout_height="match_parent"  
  33.                 android:layout_margin="0.5dp"  
  34.                 android:background="#ffffffff"  
  35.                 android:text="联系方式" />  
  36.   
  37.   
  38.             <TextView  
  39.                 android:layout_width="match_parent"  
  40.                 android:layout_height="match_parent"  
  41.                 android:layout_margin="0.5dp"  
  42.                 android:background="#ffffffff"  
  43.                 android:text="工作" />  
  44.   
  45.   
  46.         </TableRow>  
  47.           
  48.          
  49.         <TableRow>  
  50.   
  51.   
  52.             <TextView  
  53.                 android:layout_width="match_parent"  
  54.                 android:layout_height="match_parent"  
  55.                 android:layout_margin="0.5dp"  
  56.                 android:background="#ffffffff"  
  57.                 android:text="张三" />  
  58.   
  59.   
  60.             <TextView  
  61.                 android:layout_width="match_parent"  
  62.                 android:layout_height="match_parent"  
  63.                 android:layout_margin="0.5dp"  
  64.                 android:background="#ffffffff"  
  65.                 android:text="12345678909" />  
  66.   
  67.   
  68.             <TextView  
  69.                 android:layout_width="match_parent"  
  70.                 android:layout_height="match_parent"  
  71.                 android:layout_margin="0.5dp"  
  72.                 android:background="#ffffffff"  
  73.                 android:text="程序员" />  
  74.   
  75.   
  76.         </TableRow>  
  77.           
  78.             
  79.         <TableRow>  
  80.   
  81.   
  82.             <TextView  
  83.                 android:layout_width="match_parent"  
  84.                 android:layout_height="match_parent"  
  85.                 android:layout_margin="0.5dp"  
  86.                 android:background="#ffffffff"  
  87.                 android:text="岑金" />  
  88.   
  89.   
  90.             <TextView  
  91.                 android:layout_width="match_parent"  
  92.                 android:layout_height="match_parent"  
  93.                 android:layout_margin="0.5dp"  
  94.                 android:background="#ffffffff"  
  95.                 android:text="13245647867" />  
  96.   
  97.   
  98.             <TextView  
  99.                 android:layout_width="match_parent"  
  100.                 android:layout_height="match_parent"  
  101.                 android:layout_margin="0.5dp"  
  102.                 android:background="#ffffffff"  
  103.                 android:text="画家" />  
  104.   
  105.   
  106.         </TableRow>  
  107.               
  108.         <TableRow>  
  109.   
  110.   
  111.             <TextView  
  112.                 android:layout_width="match_parent"  
  113.                 android:layout_height="match_parent"  
  114.                 android:layout_margin="0.5dp"  
  115.                 android:background="#ffffffff"  
  116.                 android:text="薛琳" />  
  117.   
  118.   
  119.             <TextView  
  120.                 android:layout_width="match_parent"  
  121.                 android:layout_height="match_parent"  
  122.                 android:layout_margin="0.5dp"  
  123.                 android:background="#ffffffff"  
  124.                 android:text="13889655896" />  
  125.   
  126.   
  127.             <TextView  
  128.                 android:layout_width="match_parent"  
  129.                 android:layout_height="match_parent"  
  130.                 android:layout_margin="0.5dp"  
  131.                 android:background="#ffffffff"  
  132.                 android:text="作家" />  
  133.   
  134.   
  135.         </TableRow>  
  136.             
  137.     </TableLayout>  
  138.   
  139.   
  140. </LinearLayout>  
  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值