Skip to content

Instantly share code, notes, and snippets.

@Elvis10ten
Last active October 29, 2019 14:58
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save Elvis10ten/da24b6edf8eef3d736787295b5ab33fb to your computer and use it in GitHub Desktop.
Save Elvis10ten/da24b6edf8eef3d736787295b5ab33fb 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