This is an example of how it could have been done previously in the ListView class, using the divider and dividerHeight parame
ListView
Just add a background to the layout of your recycler item as follows
Create following shape_border.xml in drawable folder
Here is final result - a RecyclerView with divider.