3
我需要使用形状XML如何使这种类型的可绘制形状,android?
形状必须与在左上和右上圆角而底部的角落,因为它是长方形形状,使这种形状的机器人。
我尝试以下,但不工作
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle" >
<corners
android:topLeftRadius="10dp"
android:topRightRadius="10dp"
/>
<gradient
android:angle="270"
android:endColor="@color/Red"
android:startColor="@color/Red"
android:type="linear" />
</shape>