mgrazianodecastro
04/03/2023, 6:08 PMStylianos Gakis
04/03/2023, 9:46 PMmgrazianodecastro
04/03/2023, 10:09 PMLookaheadLayout
. But it's tricky for me to figure it out a way of coordinating the first and last one. Like so:
State: [A,B,C] -> [D,A,B]
B moves to C, A moves to B, C animates out, D animates in. The animations needs to happen at the same time (using AnimatedVisibility
I managed to do one after another).
There's also another thing I want to try, using movableContent, but I was curious to see the possibilities beforeDoris Liu
04/03/2023, 11:30 PMusingGlad you are trying outI managed to do one after anotherAnimatedVisibility
LookaheadLayout
. I'd love to see a video of this to help me understand what you meant.
If you provided key
to the items in your list, you won't need movableContent.mgrazianodecastro
04/03/2023, 11:33 PMmgrazianodecastro
04/04/2023, 6:15 AMDoris Liu
04/04/2023, 5:31 PMAnimatedVisibility
unfortunately can't hook into the lookahead system until the lookahead APIs are stable. Though I do have a demo that solves a very similar problem as what you have here with a slightly modified AnimatedVisibility: https://cs.android.com/androidx/platform/frameworks/support/+/androidx-main:compose/[…]mos/lookahead/LookaheadWithDisappearingMoveableContentDemo.ktDoris Liu
04/04/2023, 5:42 PMmgrazianodecastro
04/04/2023, 11:12 PM