Change theme
Help
Press space for more information.
Show links for this issue (Shortcut: i, l)
Copy issue ID
Previous Issue (Shortcut: k)
Next Issue (Shortcut: j)
Sign in to use full features.
Vote: I am impacted
Notification menu
Refresh (Shortcut: Shift+r)
Go home (Shortcut: u)
Pending code changes (auto-populated)
View issue level access limits(Press Alt + Right arrow for more information)
Unintended behavior
View staffing
Description
implementation("androidx.core:core-splashscreen:1.0.1")
Here^s the code I use:
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
installSplashScreen()
splashScreen.setOnExitAnimationListener {
val slideUp = ObjectAnimator.ofFloat(
it,
View.TRANSLATION_Y,
0f,
-it.height.toFloat())
slideUp.interpolator = AnticipateInterpolator()
slideUp.duration = 500L
// Call SplashScreenView.remove at the end of your custom animation.
slideUp.doOnEnd { _ -> it.remove() }
slideUp.start()
}
....