반응형
dependencies {
val activity_version = activity_version
// Java language implementation
implementation("androidx.activity:activity:$activity_version")
// Kotlin
implementation("androidx.activity:activity-ktx:$activity_version")
}
override fun onCreate(savedInstanceState: Bundle?) {
enableEdgeToEdge()
super.onCreate(savedInstanceState)
...
}
override fun initViews(savedInstanceState: Bundle?) {
WindowCompat.setDecorFitsSystemWindows(window, false)
}
https://developer.android.com/develop/ui/views/layout/edge-to-edge?hl=ko
반응형