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
- Host: GitHub
- URL: https://github.com/kceh/android-splash-screen-demos
- Owner: KCeh
- Created: 2021-03-09T13:39:35.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2024-01-30T16:14:33.000Z (over 2 years ago)
- Last Synced: 2025-03-29T07:43:58.779Z (about 1 year ago)
- Topics: android, kotlin, kotlin-android, splash-screen, splashscreen
- Language: Kotlin
- Homepage:
- Size: 12.3 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.

## 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!).

## 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).