RecyclerView is in the middle instead of top after orientation changes from landscape to portrait

I have used recyclerview in a fragment. If activity’s configChanges includes orientation, recycler view appears in the middle of the screen after phone orientation changes from landscape to portrait. However it should be on top always. If configChanges does not include orientation, it always appear on top on orientation changes.

Do you have any idea what it is the reason?


Source: android

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.