AndroidStaggeredGrid icon indicating copy to clipboard operation
AndroidStaggeredGrid copied to clipboard

setSelection does not work.

Open ahmed-alamir opened this issue 10 years ago • 2 comments

Expected behavior from a GridView is to change scroll making the item passed to setSelection at the very top. This does not happen, the top item remains at 0.

ahmed-alamir avatar Jul 30 '15 09:07 ahmed-alamir

I am facing this problem, does anyone have solution?

CongBaDo avatar Aug 26 '15 09:08 CongBaDo

call set selection in the scroll listener?

@Override public void onScroll(final AbsListView view, final int firstVisibleItem, final int visibleItemCount, final int totalItemCount) { staggeredGridView.setSelection(firstVisibleItem); }

mrdjohnson avatar Sep 03 '15 00:09 mrdjohnson