Skip to content

Try to use scroll to the top the item - #56

Open
wuhao-ouyang wants to merge 1 commit into
FutureMind:masterfrom
wuhao-ouyang:scrollerposition
Open

Try to use scroll to the top the item#56
wuhao-ouyang wants to merge 1 commit into
FutureMind:masterfrom
wuhao-ouyang:scrollerposition

Conversation

@wuhao-ouyang

Copy link
Copy Markdown

recyclerView .scrollToPosition(int) behaves differently while scrolling up/down
When scrolling up, the labeled item is at top among visible items, but when scrolling down, the item appears at bottom among visible items.

@micHar

micHar commented Apr 25, 2017

Copy link
Copy Markdown
Contributor

This is actually the intended behavior. If I remember correctly this is how it works in Google apps so I wanted to make it consistent.

@wuhao-ouyang

Copy link
Copy Markdown
Author

Thanks for your reply!
I tried on my Nexus 5x launcher, settings->apps and Contacts. All seem to place selected item at top of screen.
Or probably adding a recyclerview scroll hookup to make it configurable.

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

Successfully merging this pull request may close these issues.

2 participants