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

Alexander Maryanovsky

06/02/2022, 9:49 AM
How do I animate a new element entering the composition? Like if I have a
Column
with a variable number of items and I want a new item to slide in when it’s added.
AnimatedVisibility
doesn’t seem to be the right solution, because the content is not visible/invisible, it just doesn’t exist before it’s added.
a

Andrei Kovalev

06/02/2022, 10:16 AM
You can check when item becomes visible via
LazyListState's
layoutInfo
+ use
AnimatedVisibility