Butter.Flock
02/04/2022, 11:51 AMPager
in Compose that wraps its content (so the pager has the height of the largest child). I used Horizontal Pager from Accompanist, however since it is based on LazyList
only the current item is measured and used for height calculation. If now the children have different heights this causes the content below the pager to jump around see video.
So far my ideas:
• Forcing the LazyList
to measure/draw also items that are not visible (this is possible for RecyclerView), so far I could not find anything in the implementation source code to enable this behaviour. But maybe one of you has an idea?
• Using Row
instead of LazyList
. I have an PoC for this, but it resulted in a lot of code since I had to implement Snapper for normal Rows and currently it is still a little bit buggy.
I’m happy for every hint on this topic 🙂cb
02/04/2022, 2:46 PMButter.Flock
02/04/2022, 4:24 PMColton Idle
02/07/2022, 5:52 PMChristoph Wiesner
04/07/2022, 7:59 AMButter.Flock
04/07/2022, 8:38 AMChristoph Wiesner
04/07/2022, 9:46 AMColton Idle
04/07/2022, 1:36 PMChristoph Wiesner
04/08/2022, 5:33 AMColton Idle
04/08/2022, 3:22 PM