Design + Code an Android App from Scratch
This video talks about how to draw a Divider between items of a RecyclerView using the RecyclerView.ItemDecoration class. Override the getItemOffsets method that lets you specify whether you want to allocate space to draw a divider between the RecyclerView items. Override the onDraw method which lets you draw the divider below the item or you can use the onDrawOver method which lets you draw the divider above the item. Finally specify the left, top, right and bottom values to draw the divider as per your requirements.