tushar narang tushar narang - 1 year ago 209
Android Question

Margin between items in recycler view Android

Hi I am Following this tutorial


Now i am facing a weird issue the margin between each cardview item inside recycler view is way too much.


How to reduce the Margin between each item of cardview placed inside recycler view.

enter image description here

Answer Source

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.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download