Skip to content Skip to sidebar Skip to footer

Recyclerview Space Between Items On Android Application

I have a project i am developing but i have come to face a problem with a large gap appearing between two items on my android application ,i had tried to look on every previous sug

Solution 1:

The problem is with your adapter class. You need to make the adapter class parent height as wrap_content. Since your recylerview is vertical, you need to change the height of the adapter parent layout to wrap_content. After that also if the problem exists check whether any other adapter child view height is match_parent, if so change that to wrap_content.

Hope this is Helpful :)

Solution 2:

check the item layout inside DeliveryDetailsAdapter for inflating each item (OncreateViewholder)

You may have given some margin in root layout. remove margin from root layout and set width as match parent and height as wrap_content

Post a Comment for "Recyclerview Space Between Items On Android Application"