https://kotlinlang.org logo
#compose
Title
# compose
r

raghunandan

07/31/2022, 5:12 AM
[Solved] https://link.medium.com/UQzK9RJr6rb. In the linked blog post how do i get the centered item index as soon as an item is centered??. I was looking at pager code and its based on current page offset the index is incremented or decremented.
item placed at center is height - itemHeight/2. Whenever offset changes and is equal to height - itemHeight / 2 remember that index. This is the current index. If there is a better way to do this let me know!
4 Views