Margin between items in recycler view Android

后端 未结 10 1388
自闭症患者
自闭症患者 2020-12-24 02:06

Hi I am Following this tutorial:

http://www.journaldev.com/10024/android-recyclerview-and-cardview-example-tutorial

Now I am facing a weird issue the mar

10条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-24 02:35

    If you want to do it in XML, jus set paddingTopand paddingLeft to your RecyclerView and equal amount of layoutMarginBottom and layoutMarginRight to the item you inflate into your RecyclerView(or vice versa).

提交回复
热议问题