raklos raklos - 1 year ago 139
Android Question

recyclerview inside scroll view affects scroll position

I have the following layout structure


When I arrive at the page, it seems to scroll to the recycler view.
I just want scroll position to be at the top when arriving at the page.

Seems odd, When i switch the order between the linearlayoout and recyclerview inside the scrollview, then the behaviour is correct - as in the scroll position is at the top

Answer Source

This worked for me:


Although a lot of good answers here: How to scroll to top of long ScrollView layout?

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download