Android ViewPager2 causes ScrollView to automatically scroll to the top issue

description

ViewPager2+Fragment structure, the Fragment layout ScrollView has a Banner carousel control. When the top of the ScrollView slides out of the screen, the top of the ScrollView returns to the 0 position when the carousel switches.

Solution

There seems to be no good solution, many Banner libraries in this structure will cause the ScrollView automatic sliding problem. The problem of replacing ViewPager2 with ViewPager disappears.

Guess you like

Origin blog.csdn.net/MoLiao2046/article/details/109672166