Created
December 7, 2020 19:30
-
-
Save dheysonalves/b1e585e06ef49ee68bade6f24d430d40 to your computer and use it in GitHub Desktop.
splash_screen fill horizontal and vertical
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It was based on the tutorial from: Splash Tutorial
You can generate here