Skip to content Skip to sidebar Skip to footer

Android Recyclerview Blank Space

I have an android project and I am using Recycler view to print a list with items, each item has just one image and between those images, android is creating a big blank space. I r

Solution 1:

Problem is with RecyclerView item layout. You have given match_parent property to ImageView. Instead of this give constant size like 48dp.

Solution 2:

In the lista_item layout, you should set the height to wrap_content or a constant size.

Solution 3:

You have to specify the height of your ImageView in your lista_item instead of setting the height to match_parent

Post a Comment for "Android Recyclerview Blank Space"