Android 获取底部导航栏和状态栏高度
val bottom = remember { mutableStateOf(0f) } ViewCompat.setOnApplyWindowInsetsListener(LocalView.current){ _, insets -> bottom.value = insets?.getInsets(WindowInsetsCompat.Type.navigationBars())?.bottom?.dip?:0f insets }
*WindowCompat.setDecorFitsSystemWindows(window, false)获取的前提条件
navigationBars()用于导航的任何系统栏
statusBars()用于显示状态的任何系统栏