My items are not showing the Ripple Effect when I click in any recyclerView item if I don't add this code:
@Override
public void onItemClick(final RecyclerView parent, final View view, final int position, final long id)
ViewCompat.postOnAnimationDelayed(parent, new Runnable() {
@Override
public void run() {
// Your click code goes here
}
}, 50);
}
I got this code from here: RIpple effect on RecyclerView not working on light tap
Without that code if I keep pressing the animation appears, it is just dissapearing with single taps.
BTW, this is only a patch that is slowing the app.
EDIT: my recyclerview is inside a fragment.
Is there a way to fix this problem without it?