Skip to content

Commit

Permalink
Update launch_screen.xml
Browse files Browse the repository at this point in the history
original code resulted in portrait to landscape rotation splash-screen image distortion. The rotated to landscape view stretched the original background picture
  • Loading branch information
jonnyxox committed Dec 8, 2017
1 parent ddca267 commit b3840bc
Showing 1 changed file with 16 additions and 5 deletions.
21 changes: 16 additions & 5 deletions examples/android/app/src/main/res/layout/launch_screen.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,18 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout 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>
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="@android:color/black">

<LinearLayout
android:layout_width="350dip"
android:layout_height="450dip"
android:layout_centerInParent="true"
android:background="@drawable/launch_screen"
android:orientation="vertical"
android:padding="30dip"
>
</LinearLayout>
</RelativeLayout>

0 comments on commit b3840bc

Please sign in to comment.