mp
07/14/2021, 11:33 PMAnimatedContent
for screen transitions and I seem to have hit a road block. ContentTransform
is restricted to fades, slides, and size changes, so I don’t see a way to use this for something more complex that uses child elements. Ex: fade the screen background in, then fade the content in. A more extreme example would be a shared element transition. Is the AnimatedContent
API meant to be used for things like this, or is there another more general API that could be used?Luis
07/15/2021, 12:01 AMmp
07/15/2021, 12:28 AMCrossfade
doesn’t seem like a very complex starting point for building my own thing. I’m still curious to hear if there’s something else that I can use as is, either now or coming soon.Albert Chang
07/15/2021, 12:59 AMAnimatedVisibilityScope
in AnimatedContent
and there is a transition
property. You can use that to create custom animations.Colton Idle
07/15/2021, 5:12 AMMarko Novakovic
07/15/2021, 9:40 AMAnimatedContent
is THE api for screen transition animation? or you are just trying to implement it that way and TransitionAnimation
will come before stable release?Albert Chang
07/15/2021, 9:42 AMMarko Novakovic
07/15/2021, 9:43 AMmp
07/15/2021, 12:54 PMtransition
like so? https://developer.android.com/reference/kotlin/androidx/compose/animation/EnterExitStatemp
07/15/2021, 12:58 PM