어플리케이션을 실행시 로고를 보여주고 지정된 시간이 지나면 사라지는 화면
dependencies {
implementation 'androidx.core:core-splashscreen:1.0.1'
}
<style name="Theme.Highbally" parent="Base.Theme.Highbally" />
<style name="AppTheme.Splash" parent="Theme.SplashScreen">
<item name="windowSplashScreenBackground">@color/white</item>
<item name="android:windowSplashScreenAnimatedIcon" tools:targetApi="s">@mipmap/ic_launcher_highbally</item>
<item name="windowSplashScreenAnimationDuration">1</item>
<item name="postSplashScreenTheme">@style/Theme.Highbally</item>
</style>
class LoginMainActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
installSplashScreen()
setContentView(R.layout.activity_login_main)
}
}