Migrating to ViewPager2? Beware This Invisible Layout Bug
This title could be clearer and more informative.Try out Clickbait Shieldfor free (5 uses left this month).
ViewPager2 can render blank pages when migrating from ViewPager due to a layout measurement issue. Unlike the original ViewPager, ViewPager2 relies on RecyclerView and requires a measurable height from its parent layout. If the parent uses wrap_content or weak constraints, ViewPager2 gets assigned 0 height, causing fragments
Sort: