This is an example of how it could have been done previously in the ListView class, using the divider and dividerHeight parame
ListView
The simple one is to set background color for RecyclerView and different background color for items. Here is an example ...
and the TextView item (It can be anything though) with bottom margin "x" dp or px.
The output ...