Skip to content

Instantly share code, notes, and snippets.

@molidev8
Last active May 30, 2022 14:39
Show Gist options
  • Save molidev8/2c544a0ddee41287bae685d9f8362a3d to your computer and use it in GitHub Desktop.
Save molidev8/2c544a0ddee41287bae685d9f8362a3d to your computer and use it in GitHub Desktop.
A sample of the XML configuration to implement an animated splash screen with the core-splashscreen API on Android.
<?xml version="1.0" encoding="utf-8"?>
<resources xmlns:tools="http://schemas.android.com/tools">
<style name="Theme.AppSplash" parent="Theme.SplashScreen">
<item name="windowSplashScreenBackground">@color/white</item>
<item name="windowSplashScreenAnimatedIcon">@drawable/icon_animated</item>
<item name="windowSplashScreenAnimationDuration">1000</item>
<item name="postSplashScreenTheme">@style/Theme.SplashAPISample</item>
<item name="android:windowSplashScreenBrandingImage">@drawable/branding</item>
<!-- Status bar and Nav bar configs -->
<item name="android:statusBarColor" tools:targetApi="l">@color/white</item>
<item name="android:navigationBarColor">@color/white</item>
<item name="android:windowLightStatusBar">true</item>
</style>
</resources>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment