Osanosa
Osanosa

Reputation: 47

Jetpack Compose animation when launching another activity

I'm making a launcher app in compose and for animation I do

onClick = {
                val centerX = position.x.toInt() + 24 // Half of 48.dp
                val centerY = position.y.toInt() + 24 // Half of 48.dp
                val options =
                    ActivityOptions.makeScaleUpAnimation(activity?.window?.decorView, centerX, centerY, 0, 0)
                context.startActivity(intent, options.toBundle())
            }

this does a scale up animation from correct coordinates, but there's no icon animation. Is there a way in jetpack compose to launch another app with an icon animation?

Upvotes: 0

Views: 20

Answers (0)

Related Questions