etsy / AndroidStaggeredGrid

An Android staggered grid view which supports multiple columns with rows of varying sizes.
https://github.com/etsy/AndroidStaggeredGrid
4.76k stars 1.13k forks source link

column positioned in wrong place #161

Closed willisdai closed 9 years ago

willisdai commented 9 years ago

after fast scrolling up and down many times, i got this: screenshot_2014-12-08-11-27-49

screenshot_2014-12-08-11-19-54

the right position should be 319,320,321,322,323 ...

the error start form here: screenshot_2014-12-08-11-31-15

from "position#280".

1ab093e5-dc46-4713-a35b-43d9024e1591

note: "position#280" means data index 280, in StaggeredGrid, its position is 281 because of the header.

the column for position 281 is wrong (should be 1).

is there anyone has this issue??

freecsdn commented 9 years ago

I meet the same problem ,How to resolve it??

hustwyz commented 9 years ago

While added footer view into the StaggeredGridView, column positioned in wrong placea, and at that time some columns may jump into another position suddenly when scrolling. But if I removed the footer view, the result was right.

YellowEyed commented 9 years ago

default

Add two lines of code like marked in the picture, it will solve the problem.

hustwyz commented 9 years ago

It works, thank you very much ^_^ @YellowEyed