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

Scroll recycler view toparticular position #6

Open
mdroid23 opened this issue Sep 24, 2016 · 2 comments
Open

Scroll recycler view toparticular position #6

mdroid23 opened this issue Sep 24, 2016 · 2 comments

Comments

@mdroid23
Copy link

Hi,

Can we set the recycler view to particular position like listView

Listview list;
list.setSelection(5);

Please add this selection item index into your libraries..

@SubhrajyotiSen
Copy link

SubhrajyotiSen commented Oct 1, 2016

@Maheah23 are you talking about something like this?

layoutManager.scrollToPositionWithOffset(int position, int offset)

Because this is present in the RecyclerView class

@mdroid23
Copy link
Author

mdroid23 commented Oct 1, 2016

yes its present, but sometimes its not working,

I have used recycler view with linear layout manager(HORIZONTAl),and call scrollToPositionWithOffset
its not working

check this link
http://stackoverflow.com/questions/33649705/scrolltopositionwithoffset-from-linearlayoutmanager-on-recyclerview-not-working

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

No branches or pull requests

3 participants