Skip to content

Instantly share code, notes, and snippets.

@dheysonalves
Created December 7, 2020 19:30
Show Gist options
  • Save dheysonalves/b1e585e06ef49ee68bade6f24d430d40 to your computer and use it in GitHub Desktop.
Save dheysonalves/b1e585e06ef49ee68bade6f24d430d40 to your computer and use it in GitHub Desktop.
splash_screen fill horizontal and vertical
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android" android:layout_height="match_parent" android:layout_width="match_parent">
<item android:drawable="@color/splashscreen_bg" />
<!-- Set the Background Image-->
<item android:gravity="fill_horizontal|fill_vertical" android:layout_width="match_parent" android:layout_height="match_parent">
<bitmap android:gravity="fill_horizontal|fill_vertical" android:src="@drawable/splash" />
</item>
</layer-list>
@dheysonalves
Copy link
Author

It was based on the tutorial from: Splash Tutorial

You can generate here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment