Kevin Worth
02/19/2025, 4:21 PMKevin Worth
02/19/2025, 4:22 PMLazyRow
which gets scrolled off screen and back on again, and it should not animate a second time when it’s scrolled back on screen.Jonathan
02/19/2025, 4:31 PMKevin Worth
02/19/2025, 4:34 PMJonathan
02/19/2025, 4:34 PMJonathan
02/19/2025, 4:36 PMKevin Worth
02/19/2025, 4:36 PMAnimatedVisibility
has the same problem, or not (though I’ve determined AnimatedVisibility
is a non-starter for me, given the number of floats I need to animate in this custom animation).Jonathan
02/19/2025, 4:38 PMJonathan
02/19/2025, 4:40 PMRow
above, do you mean LazyRow
? From my understanding, child Composables
in a Row
w/ a scroll modifier shouldn’t exit composition. They will in LazyRow
.Jonathan
02/19/2025, 4:41 PMRow
in a LazyColumn
and the entire Row as well as it’s children (the one you’re animating) is leaving composition when scrolled off screen.Kevin Worth
02/19/2025, 4:44 PMLazyRow
. That’s my bad (and corrected).Jonathan
02/19/2025, 5:18 PMKevin Worth
02/19/2025, 6:01 PMKevin Worth
02/19/2025, 9:21 PMrememberSaveable
worked like a charm (and was way easier/lightweight than I expected). Thanks again!