Has anybody solved the mystery of the CardView without touch feedback when it\'s inside a RecyclerView?
I have a RecyclerView with a bu
As @Eugen proposed, you can make the layout inside CardView
clickable, so then you can use android:background
:
If you don't want to lose the item click listener by making the layout inside CardView
clickable, you can use android:foreground
:
Extra: you can use "?attr/selectableItemBackgroundBorderless"
instead of "?attr/selectableItemBackground"
if you don't want the rectangle mask.