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

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

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

スクリーンショット 2022-01-27 13 56 37

# 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