MiSikora
06/24/2024, 4:06 PMLazyListState
? I have a view drawn on top of a LazyRow
and I want to move it with the list scroll. Or maybe there is a better/alternative way to do it?Zach Klippenstein (he/him) [MOD]
06/24/2024, 4:53 PMMiSikora
06/24/2024, 4:55 PMZach Klippenstein (he/him) [MOD]
06/24/2024, 5:04 PMMiSikora
06/24/2024, 5:15 PMZach Klippenstein (he/him) [MOD]
06/24/2024, 6:28 PMZach Klippenstein (he/him) [MOD]
06/24/2024, 6:28 PMfirstItemIndex
Alex Vanyo
06/24/2024, 7:16 PMLazyRow
in this case? Are there going to be elements other than the tick marks that you’re scrolling through?MiSikora
06/24/2024, 7:26 PMtransformable()
modifier so both item count and item width change.Alex Vanyo
06/24/2024, 7:28 PMMiSikora
06/24/2024, 7:31 PMAlex Vanyo
06/24/2024, 7:35 PMLazy
container entirely, and have a component that is scrollable, zoomable, and manually draws the tick marks in that area based on the combination of scroll position and zoom - and then the overlay can be drawn based on the same information.
That might be a bit more setup, but you can avoid fighting with the LazyListState
that wayMiSikora
06/24/2024, 7:38 PMLazyRow
was my first idea for an implementation but it seems like I'm going against the grain so far.
In any case thank you both!