StaggeredGridView icon indicating copy to clipboard operation
StaggeredGridView copied to clipboard

ScrollTo move whole layout not just content!

Open joakim5937x opened this issue 11 years ago • 5 comments

When I use staggeredView.scrollTo(0, 100); it change the views offset to the top. A margin is created and items in the list over the point y=100 cant be viewed, you cant scroll over y=100. Also the touch becomes twisted, when you press a point in the view a point 100 px over it gets pressed. What can i do to fix this?

Sorry for the bad English!

joakim5937x avatar Apr 20 '13 08:04 joakim5937x

The thing i want to to really is to keep the current list position when adding an item, is that possible with this list?

joakim5937x avatar Apr 21 '13 18:04 joakim5937x

I have the same problem. When i call Adapter.notifyDataSetChanged() and i am nearly at the bottom of the gridview, the view jumps back to top position. Another thing is, that a free space is added in one of the top columns.

Any ideas?

Thomschie avatar Apr 26 '13 07:04 Thomschie

Just found a solution that works very well for me that restore the previous position http://stackoverflow.com/a/5688490/1319519

joakim5937x avatar Apr 26 '13 07:04 joakim5937x

I just the issue to save the position with this post: https://github.com/maurycyw/StaggeredGridView/issues/11 but it doesn't fix the margin problem.

Does your solution fixes the margin problem?

Thomschie avatar Apr 26 '13 08:04 Thomschie

scrollBy() also has the same issue.

psyren89 avatar Sep 19 '13 03:09 psyren89