We recently migrated from ViewPager to ViewPager2. Everything was pretty straight forward but we've noticed that randomly, when switching pages, the page being scrolled resizes down and stays that size until you interact with the page.
We have no customization on the viewpager2:
<androidx.viewpager2.widget.ViewPager2
android:id="@+id/viewPager"
android:layout_width="match_parent"
android:layout_height="match_parent"/>
We're also setting no page transitions after instantiating.
The content that's resizing is a PhotoView (https://github.com/chrisbanes/PhotoView). Nothing inside the photoview has changed
Has anyone else run into this before?
Here's a simple visual: