2012-01-12 45 views

回答

2

保存此XML文件在你的绘制文件夹,并在你的表格布局的背景下使用它:

<?xml version="1.0" encoding="utf-8"?> 
<shape 
    xmlns:android="http://schemas.android.com/apk/res/android" 
    android:shape="rectangle" > 
<corners 
    android:topLeftRadius="6dp" 
    android:topRightRadius="6dp" 
    android:bottomLeftRadius="6dp" 
    android:bottomRightRadius="6dp" /> 

<solid 
    android:color="#ffffff"/> 

<padding 
    android:left="1dp" 
    android:right="1dp" 
    android:top="1dp" 
    android:bottom="1dp"/> 

<stroke 
    android:width="1dp" 
    android:color="#c7c7c7" /> 

</shape> 

可以更改边框颜色和纯色按您的要求。

备注:有关上述代码的详细说明请参考此link

+0

是的,这给了我形状。非常感谢。对于那些线之间我将不得不使用表格单元格,并为它的边界.... – 2012-01-12 09:52:23

0

您可以使用html代替并在webview中显示数据。

我做了类似的工作。