Skip to content

LeoAndo/android12-splash-screen

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

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

Releases

No releases published

Sponsor this project

 

Packages

No packages published