1 需求
点击图片底部出现灰色圆圈效果
2 代码实现
1、num_oval_gray_def.xml
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"android:shape="oval"android:useLevel="false"><solid android:color="#90bbbbbb" /><sizeandroid:width="40dp"android:height="40dp" />
</shape>
2、channel_add_selecto_pressr.xml
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android"><item android:state_pressed="true"android:drawable="@drawable/num_oval_gray_def"/>
</selector>