Join Slack
Powered by
How can we make animations in lazycolumn or lazyro...
# compose
v
Vikas Singh
10/02/2020, 5:51 AM
How can we make animations in lazycolumn or lazyrow using compose ? Is there anything like itemAnimator used in recycler view
a
Andrey Kulikov
10/02/2020, 1:37 PM
hey. no, we don't have it properly support yet. but there is a demo showing how it could be done for items shrinking:
https://cs.android.com/androidx/platform/frameworks/support/+/androidx-master-dev:compose/animation/animation/integration-tests/animation-demos/src/main/java/androidx/compose/animation/demos/AnimatedVisiblilityLazyColumnDemo.kt;l=45?q=AnimatedVisibilityLazyColumnDemo&sq=&ss=androidx
v
Vikas Singh
10/02/2020, 1:38 PM
thanks
v
Vinay Gaba
10/02/2020, 4:29 PM
Example with comments if that helps -
https://github.com/vinaygaba/Learn-Jetpack-Compose-By-Example/blob/master/app/src/main/java/com/example/jetpackcompose/animation/ListAnimationActivity.kt
v
Vikas Singh
10/02/2020, 6:21 PM
thank you
Open in Slack
Previous
Next