Draw multiple lines on a RecyclerView background
问题 I'm trying to draw multiple horizontal lines on a RecyclerView background. These lines have to be at a precise position, because there is a list of elements which have to fit between them. I could just add the lines to each element but I need those lines drawn, even if there are no elements added to the list. How can I draw lines on the background? (I can't do it from the .xml) Thank you for your time! Example image 回答1: It looks like you want to draw list dividers. I think you want to use