After having been looking for a while I\'ve not been able to find an answer to this...
I have a recycler view with items which when selected have a red background an
It will be better if you wrap your recyclerview item view in FrameLayout and set android:background="?selectableItemBackground" of FrameLayout and the child layout of FrameLayout background="@drawable/background"
background.xml
-
-
-
-
And then child layout must has attribute android:duplicateParentState="true"