我想制作一个带有渐变的矩形物体(形状),并在它下面制作图像背景。我有:
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item>
<shape
android:shape="rectangle">
<gradient
android:type="linear"
android:startColor="#BF0e2634"
android:endColor="#BF0e2634"
android:angle="270"/>
<stroke
android:width="1dp"
android:color="#0e2634" >
</stroke>
<size
android:width="15dp"
android:height="15dp"/>
<corners android:topLeftRadius="3dp" android:topRightRadius="3dp"
android:bottomLeftRadius="3dp" android:bottomRightRadius="3dp"/>
</shape></item>
<item
android:drawable="@drawable/galaxy"
android:alpha="0.2"
/>
</layer-list>
但是图像在中风和渐变的上方。请帮帮我们!