我正在尝试创建可绘制的资源椭圆形状或矩形形状,我想要的是确切的下面这种形状:
但我得到了如下形状:
我使用的是:
如何创建我想要的形状?提前致谢。
![enter image description here](https://istack.dev59.com/G5BRw.webp)
![enter image description here](https://istack.dev59.com/xKikx.webp)
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle" >
<gradient
android:startColor="#36D53D"
android:centerColor="#36D53D"
android:endColor="#36D53D"
android:angle="90"/>
<padding android:left="3dp"
android:top="5dp"
android:right="5dp"
android:bottom="5dp" />
<corners android:radius="160dp"></corners>
</shape>
如何创建我想要的形状?提前致谢。