Skip to content

Commit 88c94c5

Browse files
committed
Android Launch Screen configurtation
1 parent 5d8e651 commit 88c94c5

File tree

3 files changed

+17
-1
lines changed

3 files changed

+17
-1
lines changed
Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
11
package com.fridayapp;
22

3+
import android.view.View;
34
import com.reactnativenavigation.NavigationActivity;
45

56
public class MainActivity extends NavigationActivity {
6-
7+
@Override
8+
protected void addDefaultSplashLayout() {
9+
View view = getLayoutInflater().inflate(R.layout.layout_splash, null);
10+
setContentView(view);
11+
}
712
}
6.83 KB
Loading
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
3+
android:layout_width="match_parent" android:layout_height="match_parent">
4+
5+
<ImageView
6+
android:layout_width="match_parent"
7+
android:layout_height="wrap_content"
8+
android:layout_centerInParent="true"
9+
android:scaleType="center"
10+
android:src="@drawable/launchscreen" />
11+
</RelativeLayout>

0 commit comments

Comments
 (0)