setSelection does not work.
ahmed-alamir opened this issue · 2 comments
ahmed-alamir commented
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.
CongBaDo commented
I am facing this problem, does anyone have solution?
mrdjohnson commented
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);
}