Slide 1

Slide 1 text

Let’s build Splash Screen Natively :) Mohit Sharma Developer Advocate, Realm codeWithMohit WELCOME Let’s build Splash Screen with SplashScreen API

Slide 2

Slide 2 text

Old topic !

Slide 3

Slide 3 text

Create Splash Activity with timer. Still show white on launch. Splash background with no setContentView Brand Promotion ? Timer again !! Previously

Slide 4

Slide 4 text

Standardize Impl No more boilerplate code Consistent across all devices and OS* Banding/ launch data Support

Slide 5

Slide 5 text

No content

Slide 6

Slide 6 text

Code

Slide 7

Slide 7 text

Create a theme

Slide 8

Slide 8 text

That's it. Let’s complicate a little

Slide 9

Slide 9 text

Hold off Splash Screen

Slide 10

Slide 10 text

No content

Slide 11

Slide 11 text

Animation while existing

Slide 12

Slide 12 text

Backward Compatibility?

Slide 13

Slide 13 text

Add SplashScreen dependency implementation 'androidx.core:core-splashscreen:1.0.0-alpha02'

Slide 14

Slide 14 text

Add style <!--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>

Slide 15

Slide 15 text

Update Launcher Activity

Slide 16

Slide 16 text

Code

Slide 17

Slide 17 text

No boilerplate code & Standardize Impl No need for separate SplashActivtiy Consistent across all devices and OS* In build support for banding.

Slide 18

Slide 18 text

Only single background color Alpha Version Banding Image not backward compatible Complete screen animation not available

Slide 19

Slide 19 text

Question? codeWithMohit