angle是角度
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<gradient
android:startColor="#FF5733"
android:endColor="#C70039"
android:angle="180"/>
<corners android:radius="5dp"/>
</shape>