Parcourir la source

[스플래시][New] 화면 표시 방식 theme -> layout
- theme 는 하단 네비바 영역을 컨트롤 할 수 없다.

hyodong.min il y a 6 ans
Parent
commit
0a8c4b0907

+ 1 - 2
app/src/main/AndroidManifest.xml

@@ -28,8 +28,7 @@
     <!-- Splash -->
     <activity
       android:name=".lifeplus.activity.SplashActivity"
-      android:screenOrientation="portrait"
-      android:theme="@style/SplashTheme">
+      android:screenOrientation="portrait">
       <intent-filter>
         <action android:name="android.intent.action.MAIN"/>
 

+ 7 - 3
app/src/main/java/kr/co/zumo/app/lifeplus/activity/SplashActivity.java

@@ -13,6 +13,7 @@ import kr.co.zumo.app.R;
 import kr.co.zumo.app.lifeplus.application.App;
 import kr.co.zumo.app.lifeplus.model.SuperModelInit;
 import kr.co.zumo.app.lifeplus.model.module.APIModuleHelper;
+import kr.co.zumo.app.lifeplus.view.custom.FullScreenWithKeyBoardLayout;
 
 /**
  * Splash 화면
@@ -32,12 +33,15 @@ public class SplashActivity extends ActivityBaseSetup implements ISplashContract
 
   @Override
   protected void setup() {
-
-    SuperModelInit.instant(App.getInstance().getContext());
-
     // for visible loading...
     rootView.setVisibility(View.VISIBLE);
 
+    setContentView(R.layout.activity_splash);
+
+    FullScreenWithKeyBoardLayout.assistActivity(this, () -> {});
+
+    SuperModelInit.instant(App.getInstance().getContext());
+
     Log.d("APP# SplashActivity | setup", "|" + "========== setup..............");
 
     presenter = new SplashPresenter(new SplashModel(), this);

+ 24 - 0
app/src/main/res/layout/activity_splash.xml

@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="utf-8"?>
+
+<FrameLayout
+  xmlns:android="http://schemas.android.com/apk/res/android"
+  xmlns:app="http://schemas.android.com/apk/res-auto"
+  android:layout_width="match_parent"
+  android:layout_height="match_parent"
+  >
+
+  <ImageView
+    android:layout_width="wrap_content"
+    android:layout_height="wrap_content"
+    android:layout_gravity="center"
+    app:srcCompat="@drawable/splash_zumo_logo"
+    />
+
+  <ImageView
+    android:layout_width="wrap_content"
+    android:layout_height="wrap_content"
+    android:layout_gravity="center|bottom"
+    android:layout_marginBottom="45dp"
+    app:srcCompat="@drawable/logo_lifeplus"
+    />
+</FrameLayout>