Day164 — Splash Screen API

I tried out the new Splash Screen API.

The splash screen icon uses the same specifications as Adaptive icons

Enter and Exit animation can be customized.

An animated icon can be used in the format of “Animated Vector Drawable XML”

How to add libarary

build.gradle

android {
compileSdkVersion 31
...
}
dependencies {
...
implementation 'androidx.core:core-splashscreen:1.0.0'
}
Splash Screen
MainActivity

You can check out the whole project on my github repository.

https://github.com/jacky-ttt/CodingEveryday/tree/master/Day164-SplashScreenApi

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store