1 需求
自定义带圆角的水温波效果
2 代码实现
bg_navigation_ripple.xml
<?xml version="1.0" encoding="utf-8"?>
<ripple xmlns:android="http://schemas.android.com/apk/res/android"android:color="@color/c3"><item android:id="@android:id/mask"><shape><corners android:radius="16dp" /><solid android:color="@color/white" /></shape></item>
</ripple>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"xmlns:app="http://schemas.android.com/apk/res-auto"android:layout_width="match_parent"android:background="@drawable/bg_navigation_ripple"android:id="@+id/itemMainRl"android:layout_height="90dp">****
</RelativeLayout>