我需要做一个具有这种背景的容器:
背景必须在这个形状内重复(带圆角的矩形)。
因为这是因为我知道用 9patch 不可能做到这一点,所以我研究了形状,但在这里,似乎不可能得到我想要的东西......
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<corners
android:topRightRadius="20dp"
android:topLeftRadius="10dp"
android:bottomLeftRadius="0dp"
android:bottomRightRadius="0dp"/>
<solid
android:color="@color/red"/>
</shape>
我无法将形状链接到我的:
<?xml version="1.0" encoding="utf-8"?>
<bitmap xmlns:android="http://schemas.android.com/apk/res/android"
android:src="@drawable/point1sur4"
android:tileMode="repeat" />
而且,我的形状有四个圆角....
希望你能帮忙!谢谢,雷诺