Android UI - 带边框的圆桌

时间:2012-01-12 09:14:02

标签: android user-interface

任何人都可以帮助我如何实现Android的这种风格吗?

enter image description here

我在android中没有做太多的用户界面设计。我可以使用TableLayout本身吗?

2 个答案:

答案 0 :(得分:2)

将此xml文件保存在drawable文件夹中,并在表格布局的背景中使用它:

<?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

答案 1 :(得分:0)

您可以改用html并在webview中显示数据。

我做过类似的工作。

相关问题