Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

setSelection does not work. #195

Open
ahmed-alamir opened this issue Jul 30, 2015 · 2 comments
Open

setSelection does not work. #195

ahmed-alamir opened this issue Jul 30, 2015 · 2 comments

Comments

@ahmed-alamir
Copy link

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
Copy link

I am facing this problem, does anyone have solution?

@mrdjohnson
Copy link

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);
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants