Skip to content

Commit

Permalink
feat: create SplashActivity
Browse files Browse the repository at this point in the history
*change launch activity
  • Loading branch information
ksw4015 committed Sep 24, 2024
1 parent 6bcc846 commit bb5b8b6
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 4 deletions.
5 changes: 2 additions & 3 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,9 @@
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/Theme.VisitKorea"
tools:targetApi="31">
android:theme="@style/Theme.VisitKorea">
<activity
android:name=".presentation.main.MainActivity"
android:name=".presentation.splash.SplashActivity"
android:exported="true"
android:label="@string/app_name"
android:theme="@style/Theme.VisitKorea">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ import kr.ksw.visitkorea.presentation.ui.theme.VisitKoreaTheme
class MainActivity : ComponentActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
enableEdgeToEdge()
setContent {
VisitKoreaTheme {
Scaffold(modifier = Modifier.fillMaxSize()) { innerPadding ->
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
package kr.ksw.visitkorea.presentation.splash

import android.os.Bundle
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.material3.Surface
import androidx.compose.material3.Text
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import androidx.compose.ui.unit.sp
import kr.ksw.visitkorea.presentation.ui.theme.VisitKoreaTheme

class SplashActivity : ComponentActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContent {
VisitKoreaTheme {
Surface {
Column(
modifier = Modifier.fillMaxSize(),
verticalArrangement = Arrangement.Center,
horizontalAlignment = Alignment.CenterHorizontally
) {
Text(
text = "Splash Screen",
fontSize = 24.sp
)
}
}
}
}
}
}

0 comments on commit bb5b8b6

Please sign in to comment.