I want to customise a ripple effect.
I have this xml
<?xml version="1.0" encoding="utf-8"?>
<ripple xmlns:android="http://schemas.android.com/apk/res/android"
android:color="@android:color/holo_orange_light">
<item>
<color android:color="@color/colorPrimary" />
</item>
</ripple>
The holo-orange color is displayed perfectly but I can't figure out how to change the color of the overlaying layer when the ripple effect is activated. Any ideas?
Please refer below link and try using their ripple code .
https://developer.android.com/reference/android/graphics/drawable/RippleDrawable.html