编写带圆角的图片

<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
    android:shape="rectangle">
    <gradient
        android:startColor="#ccc"
        android:endColor="#ccc"
        android:angle="135"/>
    <padding android:left="3dp"
        android:top="3dp"
        android:right="3dp"
        android:bottom="3dp" />
    <corners android:radius="8dp" />
</shape>

res/drawable/reset_setup_bg_press.xml

原文地址:https://www.cnblogs.com/xufengyuan/p/6273687.html