How to add dividers and spaces between items in RecyclerView?

前端 未结 30 2873
清歌不尽
清歌不尽 2020-11-22 03:27

This is an example of how it could have been done previously in the ListView class, using the divider and dividerHeight parame

30条回答
  •  一生所求
    2020-11-22 04:28

    Since there is no right way to implement this yet properly using Material Design, I just did the following trick to add a divider on the list item directly:

    
    

提交回复
热议问题