1
我需要把這個像列表中的項目的背景,它工作正常。如果我想開始和結束顏色是相同的,但改變爲first_color(開始) - > second_color(中間) - > first_color(結束),要改變什麼?添加漸變中心和後退
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<gradient
android:startColor="#aa0099"
android:endColor="#aa0099"
android:angle="270"
/>
<corners android:radius="1dp"/>
</shape>