I would love to enable touch feedback for my Open-Source library.
I\'ve created a RecyclerView and a CardView. The CardView co
The actual silly issue was in my case is the following....
Technically, It's not the case just like everyone suggests here in my case. The real issue is you should not be using android:clickable="true" uncesseriliy everywhere in the LayoutView, RelativeView or TextView.
It should only be in CardView. Then it works like charm
android:focusable="true" Is not really requied.
Just add the following in your CardView
android:clickable="true"
android:foreground="?android:attr/selectableItemBackground"