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

setSelection can not work #34

Open googolmo opened 10 years ago

googolmo commented 10 years ago

when i call view.setSelction(2) the gridview can not work

denizmveli commented 10 years ago

Yes this is not currently supported.

nucleartide commented 10 years ago

I spent a few hours banging my head against the wall before remembering that this was StaggeredGridView.setSelection, not GridView.setSelection.

My app's current configuration of AndroidStaggeredGrid maintains the current position after rotations only. Is there any way to reapply the current grid position manually? Specifically, this would be useful after swapping out fragments upon pressing another navigation drawer item, or after pressing the Up button on a detail view.

cesards commented 10 years ago

Happened the same to me... thinking about GridView and not ExpandableListView....

abhirb1 commented 10 years ago

It does work in here https://github.com/etsy/AndroidStaggeredGrid/issues/135