Android Selectable Item Background

Ever wondered how to make an element which is part of RecyclerView to be selectable? It is as simple as this:


Add it to a RelativeLayout which is the root element of your list_item_view.xml and it will have a shadow and an animation. It took me a while to find it.

You may also like...