1,实现效果
2,实现代码:
【1】
shape_drawable.xml 文件
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:innerRadius="20dp"
android:shape="ring"
android:thickness="8dp"
android:useLevel="false" >
<gradient android:angle="0"
android:startColor="@color/normal"
android:centerColor="#5027844F"