如何显示组的tableview的Android? [英] how to show group tableview android?
本文介绍了如何显示组的tableview的Android?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想bulid一个表格布局像this.how?
i want to bulid a table layouts like this.how?
推荐答案
您可以把一个彩色的背景与圆角到表使用形状的背景。在XML文件中创建一个这样的形状,放在你的可绘制文件夹。
You can put a coloured background with rounded corners into a table by using a Shape background. Create such a shape in an XML file, put in your drawables folder.
<?xml version="1.0" encoding="UTF-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<solid android:color="#99FFFFFF"/>
<corners android:radius="30px"/>
<padding android:left="0dp" android:top="0dp" android:right="0dp" android:bottom="0dp" />
</shape>
例如上述创建的半透明白色背景30像素圆角。您可以设置此表中使用
For example the above creates a semi-transparent white background with 30px rounded corners. You set this to the table by using
android:background="@drawable/my_shape_file"
在这里你定义你的表布局XML文件中的
in the XML file where you defined your table layout.
(正如戴维·韦布说,把有些细节到你的问题,当你第一次问它帮助。)
(And as Dave Webb said, putting a bit of detail into your question when you first ask it helps.)
这篇关于如何显示组的tableview的Android?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文