文件预览:shape_gradient.xml
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<gradient
android:angle="180"
android:endColor="@color/purple_500"
android:startColor="@color/purple_200"
android:type="linear" />
<corners android:radius="10dp" />
</shape>
返回目录