https://github.com/leoando/android12-splash-screen
https://github.com/leoando/android12-splash-screen
android12 android12-support jetpack-compose splashscreen
Last synced: 10 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/leoando/android12-splash-screen
- Owner: LeoAndo
- Created: 2021-11-16T14:26:23.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2023-03-13T03:47:33.000Z (about 3 years ago)
- Last Synced: 2025-04-24T00:43:35.351Z (about 1 year ago)
- Topics: android12, android12-support, jetpack-compose, splashscreen
- Language: Kotlin
- Homepage:
- Size: 7.57 MB
- Stars: 4
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
Awesome Lists containing this project
README
# Overview
Starting with Android OS 12, the system default splash screen always applies to cold and warm starts for all apps.
See https://developer.android.com/about/versions/12/features/splash-screen#how for how the OS12 splash screen works.
This causes the following issues if you are creating a custom splash screen in your app
- On OS: 12 or later, "System default splash screen" and custom splash screens are displayed.
- The splash screen displayed up to OS: 11 and after OS: 12 are different.
In this repository, we have released a sample application that uses a compatible library and applies the same splash screen to all OS versions.
[日本語版README](https://github.com/LeoAndo/android12-splash-screen/blob/main/readme/README_JP.md)
# development environment

# capture
| Pixel 4 OS12 | Pixel 4 OS8 |
|:---|:---:|
|
|
|
# coding flow
https://github.com/LeoAndo/android12-splash-screen/pulls?q=is%3Apr+label%3AcodingFlow+is%3Aclosed
# java code
https://github.com/LeoAndo/android12-splash-screen/tree/main/BasicAppSample/app/src/javaVersion/java/com/example/basicappsample
# kotlin code
https://github.com/LeoAndo/android12-splash-screen/tree/main/BasicAppSample/app/src/kotlinVersion/java/com/example/basicappsample
# compose code
https://github.com/LeoAndo/android12-splash-screen/tree/main/BasicComposeAppSample
# refs
https://github.com/LeoAndo/android-dev-summit-2021/issues/5#issuecomment-970318757
https://developer.android.com/guide/topics/ui/splash-screen/migrate
https://developer.android.com/about/versions/12/features/splash-screen