由网友(哥的悲伤#倪看不到)分享简介:我想bulid一个表格布局像this.how? i want to bulid a table layouts like this.how? 推荐答案您可以把一个彩色的背景与圆角到表使用形状的背景。在XML文件中创建一个这样的形状,放在你的可绘制文件夹。You can put a coloured backgro...
我想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.)
相关推荐
最新文章