์๋๋ก์ด๋ ์ํ๋ฐ (statusBar) ์์ ๊ธฐ
SplashActivity๋ฅผ ๋ง๋ค ๋ ๊ผญ ํ์ํ ์ํ๋ฐ ์์ ๋ ๋ฐฉ๋ฒ!
์ธ์ด๋ ์ฝํ๋ฆฐ ์ ๋๋ค.
class SplashActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_splash)
// ์ํ๋ฐ ์์ ๊ธฐ
@Suppress("DEPRECATION")
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.R) {
window.insetsController?.hide(WindowInsets.Type.statusBars())
} else {
window.setFlags(
WindowManager.LayoutParams.FLAG_FULLSCREEN,
WindowManager.LayoutParams.FLAG_FULLSCREEN
)
}
}
}