Skip to content

Instantly share code, notes, and snippets.

@JoDeveloper
Forked from Elvis10ten/launch_screen.xml
Created October 29, 2019 14:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JoDeveloper/3e6d42c4591bcabb8eeb643a00f450ec to your computer and use it in GitHub Desktop.
Save JoDeveloper/3e6d42c4591bcabb8eeb643a00f450ec to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="utf-8"?>
<!-- The android:opacity=”opaque” line — this is critical in preventing a flash of black as your theme transitions. -->
<layer-list xmlns:android="http://schemas.android.com/apk/res/android" android:opacity="opaque">
<!-- The background color, preferably the same as your normal theme -->
<item android:drawable="@android:color/white"/>
<!-- Your product logo - 144dp color version of your app icon -->
<item>
<bitmap
android:src="@drawable/product_logo_144dp"
android:gravity="center"/>
</item>
</layer-list>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment