//从左到右渐变
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<gradient android:startColor="#58beff"
android:endColor="#4463ff"
android:angle="0"/>
</shape>
//从左到右渐变
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<gradient android:startColor="#58beff"
android:endColor="#4463ff"
android:angle="0"/>
</shape>