I am implementing Android Material design Ripple effect by creating custom Ripple Drawable
from xml
.
Here id the code of ripple_effect_blue.xml
<ripple xmlns:android="http://schemas.android.com/apk/res/android"
android:color="@color/colorPrimaryDark">
<item android:id="@android:id/mask"
android:drawable="@android:color/white" >
</item>
</ripple>
But my problem is that this same drawable creating the different effect(ripple) on RecyclerView
and ListView
.
Here are the screen shots of both views.
I have already wasted plenty of time finding the cause of difference but no luck.