Skip to content

Commit

Permalink
Merge pull request #297 from ishigamii/master
Browse files Browse the repository at this point in the history
Update README.md to modify the default launch_screen.xml for ratio keeping on Android
  • Loading branch information
crazycodeboy committed Feb 7, 2019
2 parents 490c296 + a47f8fd commit 52689d0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -169,11 +169,11 @@ Create a file called `launch_screen.xml` in `app/src/main/res/layout` (create th
```xml
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical" android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/launch_screen">
</LinearLayout>
android:layout_height="match_parent">
<ImageView android:layout_width="match_parent" android:layout_height="match_parent" android:src="@drawable/launch_screen" android:scaleType="centerCrop" />
</RelativeLayout>
```

Customize your launch screen by creating a `launch_screen.png`-file and placing it in an appropriate `drawable`-folder. Android automatically scales drawable, so you do not necessarily need to provide images for all phone densities.
Expand Down

0 comments on commit 52689d0

Please sign in to comment.