上代码
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<gradient
android:angle="90.0"
android:endColor="#00ffffff"
android:centerColor="#DDffffff"
android:startColor="#ffffff"/>
</shape> 在需要的地方直接设置就行
也可以根据自己的需求进行修改
转载请注明原文地址: https://www.6miu.com/read-3802.html