lucasr / twoway-view

[DEPRECATED] RecyclerView made simple
5.23k stars 1.02k forks source link

Gridview items changing order upon scrolling #190

Open taimur97 opened 9 years ago

taimur97 commented 9 years ago

When I scroll the gridview items change their place I have also asked this question on stackoverflow can you please take a look here http://stackoverflow.com/questions/27449701/gridview-items-changes-order-using-a-recyclerview

ppamorim commented 9 years ago

Same problem here

norman-kapschefsky commented 9 years ago

Hi, I ran in the same problem, which is/was really annoying. I tested several things and one of them did the trick: I dont know why but you have to set the item animator explicitly to null for the recycler view with [RecyclerView].setItemAnimator(null); ... Especially the first items reordered when scrolling up again in my staggered layout. Now it is gone. Hope this helps you as well.

[Can one of you post this in stackoverflow as well? I dont have an account (yet) ^^]

Greetings, Norman

sumitsharmadesi commented 9 years ago

Is the issue resolved becuase i am having the same issue

petrusgomes commented 9 years ago

Same issue here. @norman-kapschefsky suggestion worked for me, as I don't need animator for now. Thanks!

eternalwsq commented 9 years ago

@norman-kapschefsky I use StaggeredGrid and have the same problem,but it have no effect on my layout.