Add this line to build.gradle.kts(Module::App)
// Splash screen implementation("androidx.core:core-splashscreen:1.0.0")
Add this code to MainActivity.kts
// 스플래시 스크린 딜레이 시작 var keepSplashOnScreen = true val delay = 1500L installSplashScreen().setKeepOnScreenCondition { keepSplashOnScreen } Handler(Looper.getMainLooper()).postDelayed({ keepSplashOnScreen = false }, delay) // 스플래시 스크린 딜레이 끝.
themes.xml is like this
<?xml version="1.0" encoding="utf-8"?> <resources> <style name="Theme.Memorize.MySplash" parent="Theme.SplashScreen"> <item name="windowSplashScreenAnimatedIcon">@drawable/seodanggae_launcher_foreground</item> <item name="postSplashScreenTheme">@style/Theme.Memorize</item> </style> <style name="Theme.Memorize" parent="android:Theme.Material.Light.NoActionBar" /> </resources>