Added in API level 31

SplashScreenView


class SplashScreenView : FrameLayout
kotlin.Any
   ↳ android.view.View
   ↳ android.view.ViewGroup
   ↳ android.widget.FrameLayout
   ↳ android.window.SplashScreenView

The view which allows an activity to customize its splash screen exit animation.

Activities will receive this view as a parameter of SplashScreen.OnExitAnimationListener.onSplashScreenExit if they set SplashScreen.setOnExitAnimationListener. When this callback is called, this view will be on top of the activity.

This view is composed of a view containing the splashscreen icon (see windowSplashscreenAnimatedIcon) and a background. Developers can use getIconView to get this view and replace the drawable or add animation to it. The background of this view is filled with a single color, which can be edited during the animation by View.setBackground or View.setBackgroundColor.

Summary

Inherited XML attributes
Inherited constants
Public methods
Duration?

Returns the duration of the icon animation if icon is animatable.

Instant?

If the replaced icon is animatable, return the animation start time based on system clock.

View?

Get the view containing the Splash Screen icon and its background.

Unit

Remove this view and release its resource.

Unit
setAlpha(alpha: Float)

Sets the opacity of the view to a value from 0 to 1, where 0 means the view is completely transparent and 1 means the view is completely opaque.

Protected methods
Unit

Unit
onLayout(changed: Boolean, l: Int, t: Int, r: Int, b: Int)

Called from layout when this view should assign a size and position to each of its children.

Inherited functions