Join Slack
Communities
Powered by
What is currently the best way to animate adding i...
# compose
z
ziv kesten
02/23/2022, 5:04 PM
What is currently the best way to animate adding items to a column\lazy column?
VID-20220223-WA0011.mp4
a
Andrey Kulikov
02/23/2022, 5:06 PM
with AnimatedVisibility component. we have a demo for something like this -
https://cs.android.com/androidx/platform/frameworks/support/+/androidx-main:compose/[…]/compose/animation/demos/AnimatedVisiblilityLazyColumnDemo.kt
🔥 1
👀 1
a
Arjun Achatz
02/23/2022, 6:25 PM
I thought animateItemPlacement does this ?
Arjun Achatz
02/23/2022, 6:25 PM
Not necessarily this animation
a
Andrey Kulikov
02/23/2022, 6:28 PM
animateItemPlacement is animating item … placement 🙂 I mean its position when it changes. but not additions/removals
☝️ 1
z
ziv kesten
02/23/2022, 6:59 PM
Cool, it looks like the secret souce is MutableTransitionState... I wonder why they haven't implemented internally in the API by now...
4
Views
Open in Slack
Previous
Next