How to build Splash Screen Natively, #Android 12

Sponsored · Your Podcast. Everywhere. Effortlessly. Share. Educate. Inspire. Entertain. You do you. We'll handle the rest. →

How to build Splash Screen Natively, #Android 12

Mohit Sharma

May 04, 2022

Annual Pro sale · Save $30

Have presentations of your own?

Share with private links, password protection, and more control over your work.

Transcript

19 slides
  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

More Decks by Mohit Sharma

Other Decks in Programming