Your First Kotlin Android App: Polishing the App

Aug 22 2023 · Kotlin 1.8.20, Android 13, Android Studio Flamingo | 2022.2.1

Part 3: Finish the App

23. Add a Custom Splash Screen

Episode complete

Play next episode

Next
About this episode
Leave a rating/review
See forum comments
Cinema mode Mark complete Download course materials
Previous episode: 22. Setup App Icon & Display Name Next episode: 24. Run the App on a Real Device

Get immediate access to this and 4,000+ other videos and books.

Take your career further with a Kodeco Personal Plan. With unlimited access to over 40+ books and 4,000+ professional videos in a single subscription, it's simply the best investment you can make in your development career.

Learn more Already a subscriber? Sign in.

Notes: 23. Add a Custom Splash Screen

At 05:19, update the theme of the starter <activity> node instead of the <application> node for it to work on Android versions prior to Android 12. There seems to be a bug with the core-splashscreen library that makes the splash screen not to show up for older Android devices like those running from SDK 24 and up if you update the <application> theme just like I did.

Check out the comments section of this episode for the full gist :]

Heads up... You’re accessing parts of this content for free, with some sections shown as obfuscated text.

Heads up... You’re accessing parts of this content for free, with some sections shown as obfuscated text.

Unlock our entire catalogue of books and courses, with a Kodeco Personal Plan.

Unlock now

It’s time to add a custom splash screen for Bullseye. A splash screen is a screen that is displayed before the app is fully loaded. This will make your app’s launch appear to be faster.

implementation 'androidx.core:core-splashscreen:1.0.1'
<!--    Splash Screen Theme-->
<style name="Theme.CustomSplashScreenTheme" parent="Theme.SplashScreen">

</style>
  <item name="windowSplashScreenBackground">@color/white</item>
  <item name="windowSplashScreenAnimatedIcon">@drawable/splash_icon</item>
  <item name="postSplashScreenTheme">@style/Theme.Bullseye</item>
android:theme="@style/Theme.CustomSplashScreenTheme"
installSplashScreen()