Toggle navigation
Toggle navigation
This project
Loading...
Sign in
신기성
/
WELLO
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Commits
Issue Boards
Authored by
soonmyeong2
2019-10-22 20:35:07 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
30b0bbe88af9e0297ed8a0c1a9e1b42f6469fd02
30b0bbe8
1 parent
45ea988d
make splash screen
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
41 additions
and
3 deletions
vip/app/src/main/AndroidManifest.xml
vip/app/src/main/java/com/example/vip/MainActivity.kt
vip/app/src/main/java/com/example/vip/SplashActivity.kt
vip/app/src/main/res/drawable/background_splash.xml
vip/app/src/main/res/drawable/splash_main.png
vip/app/src/main/res/values/styles.xml
vip/app/src/main/AndroidManifest.xml
View file @
30b0bbe
...
...
@@ -2,6 +2,8 @@
<manifest
xmlns:android=
"http://schemas.android.com/apk/res/android"
package=
"com.example.vip"
>
<uses-permission
android:name=
"android.permission.INTERNET"
/>
<application
android:allowBackup=
"true"
android:icon=
"@mipmap/ic_launcher"
...
...
@@ -9,13 +11,16 @@
android:roundIcon=
"@mipmap/ic_launcher_round"
android:supportsRtl=
"true"
android:theme=
"@style/AppTheme"
>
<activity
android:name=
".
MainActivity
"
>
<activity
android:name=
".
SplashActivity"
android:theme=
"@style/SplashTheme
"
>
<intent-filter>
<action
android:name=
"android.intent.action.MAIN"
/>
<category
android:name=
"android.intent.category.LAUNCHER"
/>
</intent-filter>
</activity>
<activity
android:name=
".MainActivity"
>
</activity>
</application>
</manifest>
\ No newline at end of file
...
...
vip/app/src/main/java/com/example/vip/MainActivity.kt
View file @
30b0bbe
...
...
@@ -9,7 +9,6 @@ import kotlinx.android.synthetic.main.activity_main.*
class
MainActivity
:
AppCompatActivity
()
{
private
val
RC_SIGN_IN
=
9001
private
val
firebaseAuth
=
FirebaseAuth
.
getInstance
()
// EmailCreate
...
...
@@ -55,4 +54,3 @@ class MainActivity : AppCompatActivity() {
}
}
}
...
...
vip/app/src/main/java/com/example/vip/SplashActivity.kt
0 → 100644
View file @
30b0bbe
package
com.example.vip
import
android.content.Intent
import
android.os.Bundle
import
android.os.Handler
import
android.os.SystemClock
import
androidx.appcompat.app.AppCompatActivity
class
SplashActivity
:
AppCompatActivity
()
{
override
fun
onCreate
(
savedInstanceState
:
Bundle
?)
{
super
.
onCreate
(
savedInstanceState
)
val
intent
=
Intent
(
this
,
MainActivity
::
class
.
java
)
startActivity
(
intent
)
finish
()
}
}
\ No newline at end of file
vip/app/src/main/res/drawable/background_splash.xml
0 → 100644
View file @
30b0bbe
<?xml version="1.0" encoding="utf-8"?>
<layer-list
xmlns:android=
"http://schemas.android.com/apk/res/android"
>
<!-- 배경 -->
<item
android:drawable=
"@color/colorPrimary"
/>
<!-- 로고 -->
<item>
<bitmap
android:gravity=
"center"
android:src=
"@drawable/splash_main"
/>
</item>
</layer-list>
vip/app/src/main/res/drawable/splash_main.png
0 → 100644
View file @
30b0bbe
24.5 KB
vip/app/src/main/res/values/styles.xml
View file @
30b0bbe
...
...
@@ -8,4 +8,9 @@
<item
name=
"colorAccent"
>
@color/colorAccent
</item>
</style>
<!-- Splash screen -->
<style
name=
"SplashTheme"
parent=
"Theme.AppCompat.NoActionBar"
>
<item
name=
"android:windowBackground"
>
@drawable/background_splash
</item>
</style>
</resources>
...
...
Please
register
or
login
to post a comment