Marko Novakovic
08/12/2021, 4:25 PMexpandIn
and shrinkOut
always expand in/shrink to top left corner. setting `expandFrom`/`shrinkTowards` has no effect and default value for those two is Alignment = Alignment.BottomEnd
.Colton Idle
08/12/2021, 4:28 PMMarko Novakovic
08/12/2021, 4:33 PMDoris Liu
08/12/2021, 5:32 PMfillMaxSize()
to AnimatedNavHost
? See discussion here:
https://kotlinlang.slack.com/archives/CJLTWPH7S/p1628536044113100?thread_ts=1628522573.089500&cid=CJLTWPH7SDoris Liu
08/12/2021, 5:38 PMAlignment.BottomEnd
, we'll need to support the content alignment on the AnimatedHost
level to align the incoming/outgoing content to the bottom end when that content is smaller than parent.Marko Novakovic
08/12/2021, 6:11 PMAnimatedNavHost
has modifier.fillMaxSize()
added to itDoris Liu
08/12/2021, 6:20 PMcontentAlignment
.
Out of curiosity, is there a specific effect you are trying to achieve? 🙂Doris Liu
08/12/2021, 6:26 PMcontentAlignment
is support in AnimatedContent
, which is what AnimatedNavHost
uses under the hood. If the visual effect you are going for can't be achieved w/ AnimatedContent, please let us know so we can add support for it.Marko Novakovic
08/12/2021, 6:51 PMMarko Novakovic
08/12/2021, 6:52 PMexpandIn
and shrinkOut
as enterTransition
and exitTransition
and it’s not responding to expandFrom
nor shrinkTowards
contentAlignment
parameter. that’s itMarko Novakovic
08/12/2021, 6:53 PMcontentAlignment
will be fully supported soon or it is fully supported now?Doris Liu
08/12/2021, 7:01 PMexpandFrom
and shrinkTowards
refers to the clipped the content. It defines which part of the content to reveal first/last when clipped. contentAlignment
defines the positioning of the clipped content in parent.
contentAlignment
is supported in the level below AnimatedHost
(i.e. AnimatedContent), but not surfaced in AnimatedHost. That's why I was suggesting trying out AnimatedContent
and see whether it does what you want. If not, we can add support in AnimatedContent and surface that through AnimatedHost.Marko Novakovic
08/12/2021, 7:06 PM