Android:BottomSheetDialogFragment导航栏颜色
在我的Android:BottomSheetDialogFragment导航栏颜色,android,kotlin,material-design,Android,Kotlin,Material Design,在我的BottomSheetDialogFragment中,我想获得systemWindowInsetBottom。 为此,我得到了底部sheet+方法的根FrameLayout,如下所示: ViewCompat.setOnApplyWindowInsetsListener(root) { view, insets -> } 问题是:如果我在对话框主题中使用true,我会得到insets.systemWindowInsetBottom的正确值,但是系统底部的导航栏是透明的,我可以看到底
BottomSheetDialogFragment
中,我想获得systemWindowInsetBottom
。
为此,我得到了底部sheet+方法的根FrameLayout
,如下所示:
ViewCompat.setOnApplyWindowInsetsListener(root) { view, insets ->
}
问题是:如果我在对话框主题中使用true
,我会得到insets.systemWindowInsetBottom
的正确值,但是系统底部的导航栏是透明的,我可以看到底部工作表下面的片段
我找不到任何方法将颜色更改为不透明。
设置FLAG\u将绘制系统条形图\u背景
到对话框的窗口+navigationBarColor
不起作用
如果我使用false
-navigationBarColor就像一个符咒,但是插入。SystemWindowInsertBottom
始终为零(0)
问题是-如何将导航栏的windowIsFloating
设置为true
或如何获取
insets.systemwindowinsertbottom
带有windowIsFloating
设置为false。
如果能得到一些解释就太好了
p.S.设置视图。系统(用户界面)标志(布局)稳定
|视图。系统(用户界面)标志(布局)隐藏(导航)
到对话框的窗口装饰视图允许在窗口浮动
设置为false的情况下对导航栏上色