Upgrade to Pro — share decks privately, control downloads, hide ads and more …

How to build Splash Screen Natively, #Android 12

How to build Splash Screen Natively, #Android 12

Mohit Sharma

May 04, 2022
Tweet

More Decks by Mohit Sharma

Other Decks in Programming

Transcript

  1. Let’s build Splash Screen Natively :) Mohit Sharma Developer Advocate,

    Realm codeWithMohit WELCOME Let’s build Splash Screen with SplashScreen API
  2. Create Splash Activity with timer. Still show white on launch.

    Splash background with no setContentView Brand Promotion ? Timer again !! Previously
  3. Add style <style name="SplashActivity" parent="Theme.SplashScreen"> <!--Customize your theme here. splash

    screen background color--> <item name="windowSplashScreenBackground">#FFFFFF</item> <item name="windowSplashScreenIconBackgroundColor">#000000</item> <item name="windowSplashScreenAnimatedIcon">@drawable/ic_realm_logo_250</item> <item name="postSplashScreenTheme">@style/Theme.RealmSplashScreen.NoActionBar</item> </style>
  4. No boilerplate code & Standardize Impl No need for separate

    SplashActivtiy Consistent across all devices and OS* In build support for banding.
  5. Only single background color Alpha Version Banding Image not backward

    compatible Complete screen animation not available