GithubHelp home page GithubHelp logo

android12-splash-screen's Introduction

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.