An open API service indexing awesome lists of open source software.

https://github.com/kceh/android-splash-screen-demos

Demo apps showing different possible splash screen implementations on Android
https://github.com/kceh/android-splash-screen-demos

android kotlin kotlin-android splash-screen splashscreen

Last synced: 25 days ago
JSON representation

Demo apps showing different possible splash screen implementations on Android

Awesome Lists containing this project

README

          

# Android Splash Screen Demos

Note: all listed ways are legacy implementations before Android 12 (S). Android 12 offers [SplashScreen API](https://developer.android.com/about/versions/12/features/splash-screen) to implement splash screen.

## Simple Splash Screen
Uses theme (styles.xml) to show static splash screen. Simple but effective way.


Splash demo gif

## Animated Splash Screen with Handler
This approach uses Handler with fixed timeout and animations to make splash screen fancier. Runnable makes sure to route user to next activity. Also you can skip initial blank screen by using same theme trick which is shown in previous example. Problems (memory leaks etc.) with this approach are mainly due to usage of Handler (which is deprecated!).


Splash demo2 gif

## Animated Splash Screen with Coroutine
Solves problems with Handler by using Kotlin Coroutines. Also uses theme to impove splash screen (initial blank screen is replaced by background).


Splash demo3 gif