Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Shared element transition in Jetpack compose

I wanted to animate my image logo from Screen A to Screen B. In XML based layouts it was possible using windowContentTransitions & transitionName. So I wanted to ask is something similar available in Jetpack Compose?

I have already seen this https://github.com/mobnetic/compose-shared-element

But, Is there something in-built functionality similar to the XML?

like image 900
Mayur Gajra Avatar asked Jul 03 '26 18:07

Mayur Gajra


2 Answers

Not supported yet by compose. See this conversation on kotlin-lang: https://kotlinlang.slack.com/archives/CJLTWPH7S/p1616517641495500?thread_ts=1616516302.494300&cid=CJLTWPH7S

like image 58
Róbert Nagy Avatar answered Jul 05 '26 06:07

Róbert Nagy


It has been impelemented recently. It is in alpha stage now though, but you can look at it:

https://developer.android.com/develop/ui/compose/animation/shared-elements

like image 21
S. U. Avatar answered Jul 05 '26 08:07

S. U.



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!