让我后我的代码在这里 我back_repeat.xml在绘制文件夹
<?xml version="1.0" encoding="utf-8"?>
<bitmap xmlns:android="http://schemas.android.com/apk/res/android"
android:src="@drawable/repeat"
android:tileMode="repeat" />
和重复一些事情.gif在绘制文件夹中,这是来自ur链接的backgroundimage。
也list_bkg_rounded.xml在绘制文件夹这是圆角边框
<?xml version="1.0" encoding="UTF-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle">
<stroke android:width="1dp" android:color="#fc9700"/>
<corners android:bottomRightRadius="10dp" android:bottomLeftRadius="10dp"
android:topLeftRadius="10dp" android:topRightRadius="10dp"/>
<solid android:color="#fc9700"/>
</shape>
和我的main.xml是
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:gravity="center_horizontal"
>
<LinearLayout
android:padding="4dip"
android:orientation="vertical"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@drawable/list_bkg_rounded"
android:gravity="center_horizontal"
>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="hello all how are you ? "
android:background="@drawable/back_repeat"
/>
</LinearLayout>
</LinearLayout>
我想我回答了这个同样的问题[这里] [1]。 [1]:http://stackoverflow.com/a/15148400/714249 – Splash 2013-03-01 00:39:01