I have
Ok, just found Android scrollable view(Webview, recyclerview…) has auto scroll behavior when height changed(e.g. rotation changing android:configChanges=orientation options).
For example,
a. Rotation portrait, screen shows contents 2~4 and scroll left-top position is “2”. (1 [2 3 4] 5).
b. Rotation changed to landscape, screen can shows only two contents.
c. At this point, auto scroll triggered to set scroll left-top position to “2”. (1 [2 3] 4 5).
I assume step c is android default behavior.. but how can I turn off this “auto scroll”?
Is it possible?
I want to disable the “auto scroll” when scrollable view’s height changed.
I need to set specific scroll position when view height changed but “auto scroll” behavior disturb my purpose.
GLaDOS is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.