1 the demand
Custom rounded water temperature wave effect
2 Code implementation
bg_navigation_ripple.xml
<? The 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>Copy the code
<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>
Copy the code