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

Alexander Maryanovsky

06/07/2022, 8:05 AM
I have a UI where I’m showing a list of items in a
Column
and if several consecutive items are the same, they are “grouped” into one row. The user can choose to “ungroup” one item from the group, and then it appears in its own row. I’m trying to animate this process by having the ungrouped row slide downwards from the “group” row. I’ve successfully used
AnimatedVisibility
on the row that appears, but this looks bad because only that row is animated - the rest of the rows below it “jump” to position. Is there no animation facility that takes care of animating the entire layout during a transition?
z

Zach Klippenstein (he/him) [MOD]

06/07/2022, 3:30 PM
This would probably be a good use case for LookaheadLayout. One of the samples does something kind of similar
a

Alexander Maryanovsky

06/07/2022, 3:39 PM
Can't wait
3 Views