Margin between items in recycler view Android

后端 未结 10 1366
自闭症患者
自闭症患者 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:15

    I faced similar issue, with RelativeLayout as the root element for each row in the recyclerview.

    To solve the issue, find the xml file that holds each row and make sure that the root element's height is wrap_content NOT match_parent.

提交回复
热议问题