Skip to content

Commit b3840bc

Browse files
authored
Update launch_screen.xml
original code resulted in portrait to landscape rotation splash-screen image distortion. The rotated to landscape view stretched the original background picture
1 parent ddca267 commit b3840bc

File tree

1 file changed

+16
-5
lines changed

1 file changed

+16
-5
lines changed
Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,18 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
3-
android:orientation="vertical" android:layout_width="match_parent"
4-
android:layout_height="match_parent"
5-
android:background="@drawable/launch_screen">
62

7-
</LinearLayout>
3+
<RelativeLayout
4+
xmlns:android="http://schemas.android.com/apk/res/android"
5+
android:layout_width="fill_parent"
6+
android:layout_height="fill_parent"
7+
android:background="@android:color/black">
8+
9+
<LinearLayout
10+
android:layout_width="350dip"
11+
android:layout_height="450dip"
12+
android:layout_centerInParent="true"
13+
android:background="@drawable/launch_screen"
14+
android:orientation="vertical"
15+
android:padding="30dip"
16+
>
17+
</LinearLayout>
18+
</RelativeLayout>

0 commit comments

Comments
 (0)