Skip to content

Instantly share code, notes, and snippets.

Avatar

Valery Namolem

View GitHub Profile
View MainActivity.kt
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setTheme(R.style.AppTheme)
val systemUiVisibility = View.SYSTEM_UI_FLAG_LAYOUT_STABLE or View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN or View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION
window.decorView.systemUiVisibility = systemUiVisibility
setContentView(R.layout.activity_main)
someBottomView.doOnApplyWindowInsets { view, windowInsets, initialPadding ->
You can’t perform that action at this time.