How to remove padding in RecyclerView when using StaggeredGridLayoutManager?

161 Views Asked by At

When I scroll the elements down and then back up, the elements get mixed up and there's a weird padding. I tried to set the gap strategy to GAP_HANDLING_MOVE_ITEMS_BETWEEN_SPANS, but then the paddings from the ItemDecoration are displayed incorrectly.

Before scroll back

After scroll back

0

There are 0 best solutions below