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

RecyclerView used in Home Tab does not retain its last scrolled position #2

Open
kaushiknsanji opened this issue Jul 26, 2021 · 0 comments
Assignees
Labels
help wanted Extra attention is needed

Comments

@kaushiknsanji
Copy link
Owner

Whenever the user rotates the device, RecyclerView should ideally restore the last scrolled position. This currently is not working properly in the Home Tab screen. Sometimes it does work, and sometimes it does not. When the device is rotated while viewing an Item that is small enough on the screen size, it mostly restores correctly, but it fails when the Item seen is large enough for the screen size. This causes a jump when the last scrolled position is being restored.

From RecyclerView version 1.2, it is said that it internally uses stateRestorationPolicy on the Adapter for this usecase. For the Home Tab screen RecyclerView, this is left at the default setting of ALLOW which should ideally work. Like I stated earlier, it works in certain cases while it fails in other cases. Have tested with other available stateRestorationPolicy settings, and it behaves the same way.

@kaushiknsanji kaushiknsanji added the help wanted Extra attention is needed label Jul 26, 2021
@kaushiknsanji kaushiknsanji self-assigned this Jul 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant