▲ 4 r/androiddev
Jetpack Compose HorizontalPager jumps when page have different heights
My screen has several HorizontalPagers. They are synchronized manually using currentPage and currentPageOffsetFraction.
The issue is with a pink section. Some pages have it, so I reserve 92.dp. Others don’t, so I use 0.dp. When I swipe from a page no pink to a page with it, I see a jump. The layout suddenly reserves the 92.dp space while the swipe settles. I tried using `settledPage`, it didn't help.
Is this expected with HorizontalPager? Is there a way to fix this?
u/JinuRumi_shipper — 10 days ago