Shakil Karim
05/31/2021, 4:27 PMMichal Klimczak
05/31/2021, 4:38 PMShakil Karim
05/31/2021, 5:52 PMDoris Liu
05/31/2021, 5:59 PMis it the missing piece for Lazy Column/Row animations?This is a more generic container that performs a
ContentTransform
when its content changes. More specifically it'll animate in the new content and animate out the previous content using customizable enter/exit transitions. What I'm particularly excited about is the support for a SizeTransform
(also customizable) to automatically kick off a size animation when the content changes. Aside from these customization support, it is somewhat similar to Crossfade
.
One concept employed in AnimatedContent
that could be helpful for Lazy Column/Row animations is the ability to define enter/exit transitions for children at the parent level. Meanwhile, the children can access an AnimatedVisibilityScope
to add any additional enter/exit animations (e.g. on color, corner radius, etc) local to that child.Colton Idle
05/31/2021, 6:10 PMDoris Liu
05/31/2021, 7:07 PMComposeView
in your fragments. @Ian Lake can probably give you more details when he's back from vacation. 🙂Colton Idle
05/31/2021, 7:09 PMZach Klippenstein (he/him) [MOD]
06/01/2021, 12:46 PMDoris Liu
06/02/2021, 6:41 PM