Skip to content

Commit aa2c531

Browse files
committed
feat: Splash Activity 추가
1 parent 5bf18bf commit aa2c531

File tree

4 files changed

+31
-0
lines changed

4 files changed

+31
-0
lines changed

presentation/build.gradle

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,4 +74,7 @@ dependencies {
7474

7575
// LiveData
7676
implementation 'androidx.lifecycle:lifecycle-livedata-ktx:2.5.1'
77+
78+
// Lottie
79+
implementation 'com.airbnb.android:lottie:3.6.1'
7780
}

presentation/src/main/AndroidManifest.xml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,19 @@
2020
android:theme="@style/Theme.PlzStop"
2121
android:usesCleartextTraffic="true"
2222
tools:targetApi="31">
23+
<activity
24+
android:name=".SplashActivity"
25+
android:exported="false">
26+
<meta-data
27+
android:name="android.app.lib_name"
28+
android:value="" />
29+
</activity>
30+
2331
<provider
2432
android:name="androidx.startup.InitializationProvider"
2533
android:authorities="${applicationId}.androidx-startup"
2634
tools:node="remove" />
35+
2736
<activity
2837
android:name=".MainActivity"
2938
android:exported="true">
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
package com.stop
2+
3+
import androidx.appcompat.app.AppCompatActivity
4+
import android.os.Bundle
5+
6+
class SplashActivity : AppCompatActivity() {
7+
override fun onCreate(savedInstanceState: Bundle?) {
8+
super.onCreate(savedInstanceState)
9+
setContentView(R.layout.activity_splash)
10+
}
11+
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<androidx.constraintlayout.widget.ConstraintLayout
3+
xmlns:android="http://schemas.android.com/apk/res/android"
4+
xmlns:tools="http://schemas.android.com/tools"
5+
android:layout_width="match_parent"
6+
android:layout_height="match_parent"
7+
tools:context=".SplashActivity">
8+
</androidx.constraintlayout.widget.ConstraintLayout>

0 commit comments

Comments
 (0)