回答

0

嘗試爲了得到這種效果這

<shape xmlns:android="http://schemas.android.com/apk/res/android" 
android:shape="rectangle"> 
<gradient android:type="radial" android:gradientRadius="250" 
    android:startColor="your_color" android:endColor="your_color" /> 
</shape> 
0

使用梯度繪製。根據要求替換startColor & endColor &確保顏色值具有不透明度參數。

<?xml version="1.0" encoding="utf-8"?> 
    <shape xmlns:android="http://schemas.android.com/apk/res/android" 
       android:shape="rectangle"> 
     <gradient android:type="radial" android:gradientRadius="300" 
        android:startColor="#3bffffff" 
        android:endColor="#72000000" /> 
    </shape>