soonmyeong2

make splash screen

...@@ -2,6 +2,8 @@ ...@@ -2,6 +2,8 @@
2 <manifest xmlns:android="http://schemas.android.com/apk/res/android" 2 <manifest xmlns:android="http://schemas.android.com/apk/res/android"
3 package="com.example.vip"> 3 package="com.example.vip">
4 4
5 + <uses-permission android:name="android.permission.INTERNET" />
6 +
5 <application 7 <application
6 android:allowBackup="true" 8 android:allowBackup="true"
7 android:icon="@mipmap/ic_launcher" 9 android:icon="@mipmap/ic_launcher"
...@@ -9,13 +11,16 @@ ...@@ -9,13 +11,16 @@
9 android:roundIcon="@mipmap/ic_launcher_round" 11 android:roundIcon="@mipmap/ic_launcher_round"
10 android:supportsRtl="true" 12 android:supportsRtl="true"
11 android:theme="@style/AppTheme"> 13 android:theme="@style/AppTheme">
12 - <activity android:name=".MainActivity"> 14 + <activity android:name=".SplashActivity" android:theme="@style/SplashTheme">
13 <intent-filter> 15 <intent-filter>
14 <action android:name="android.intent.action.MAIN" /> 16 <action android:name="android.intent.action.MAIN" />
15 17
16 <category android:name="android.intent.category.LAUNCHER" /> 18 <category android:name="android.intent.category.LAUNCHER" />
17 </intent-filter> 19 </intent-filter>
18 </activity> 20 </activity>
21 + <activity android:name=".MainActivity">
22 +
23 + </activity>
19 </application> 24 </application>
20 25
21 </manifest> 26 </manifest>
...\ No newline at end of file ...\ No newline at end of file
......
...@@ -9,7 +9,6 @@ import kotlinx.android.synthetic.main.activity_main.* ...@@ -9,7 +9,6 @@ import kotlinx.android.synthetic.main.activity_main.*
9 9
10 class MainActivity : AppCompatActivity() { 10 class MainActivity : AppCompatActivity() {
11 11
12 - private val RC_SIGN_IN = 9001
13 private val firebaseAuth = FirebaseAuth.getInstance() 12 private val firebaseAuth = FirebaseAuth.getInstance()
14 13
15 // EmailCreate 14 // EmailCreate
...@@ -55,4 +54,3 @@ class MainActivity : AppCompatActivity() { ...@@ -55,4 +54,3 @@ class MainActivity : AppCompatActivity() {
55 } 54 }
56 } 55 }
57 } 56 }
58 -
......
1 +package com.example.vip
2 +
3 +import android.content.Intent
4 +import android.os.Bundle
5 +import android.os.Handler
6 +import android.os.SystemClock
7 +import androidx.appcompat.app.AppCompatActivity
8 +
9 +class SplashActivity : AppCompatActivity() {
10 + override fun onCreate(savedInstanceState: Bundle?) {
11 + super.onCreate(savedInstanceState)
12 +
13 +
14 + val intent = Intent(this, MainActivity::class.java)
15 + startActivity(intent)
16 + finish()
17 + }
18 +}
...\ No newline at end of file ...\ No newline at end of file
1 +<?xml version="1.0" encoding="utf-8"?>
2 +<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
3 + <!-- 배경 -->
4 + <item
5 + android:drawable="@color/colorPrimary"/>
6 + <!-- 로고 -->
7 + <item>
8 + <bitmap
9 + android:gravity="center"
10 + android:src="@drawable/splash_main"/>
11 + </item>
12 +</layer-list>
...@@ -8,4 +8,9 @@ ...@@ -8,4 +8,9 @@
8 <item name="colorAccent">@color/colorAccent</item> 8 <item name="colorAccent">@color/colorAccent</item>
9 </style> 9 </style>
10 10
11 + <!-- Splash screen -->
12 + <style name="SplashTheme" parent="Theme.AppCompat.NoActionBar">
13 + <item name="android:windowBackground">@drawable/background_splash</item>
14 + </style>
15 +
11 </resources> 16 </resources>
......