Closed Jesse205 closed 4 months ago
Situations to Consider
FLAG_TRANSLUCENT_STATUS
is fully transparent (LogFox's minsdk is 24, so this situation can be disregarded)isNavigationBarContrastEnforced
is enabled, the small white bar will also be given a semi-transparent backgroundisNavigationBarContrastEnforced
is enabled, the small white bar will not be given a semi-transparent background, but the navigation bar will be given a semi-transparent white/black background (which does not match the window background and looks particularly ugly)navigationBarColor
and statusBarColor
have been deprecated, and apps will always be displayed in EdgeToEdge mode.layoutInDisplayCutoutMode
to maintain consistency with Android 15FLAG_TRANSLUCENT_STATUS
as much as possible (as old Xiaomi devices may not be able to see clearly)要考虑的情况
FLAG_TRANSLUCENT_STATUS
的背景为完全透明(LogFox的minsdk为24,所以可以不考虑这个情况)isNavigationBarContrastEnforced
,小白条也会被添加半透明背景isNavigationBarContrastEnforced
,小白条不会被添加半透明背景,但导航栏会被添加一个白色\黑色的半透明背景 (并非匹配窗口背景,特别丑)navigationBarColor
、statusBarColor
已被弃用,应用始终会以EdgeToEdge方式显示。layoutInDisplayCutoutMode
,与Android15保持一致FLAG_TRANSLUCENT_STATUS
(小米旧设备会看不清)
The navigation bar in the BottomSheet is not clear. I previously submitted a PR to fix this issue. On the dev branch, logfox uses the
ComponentActivity.enableEdgeToEdge
recommended by Google, but it does not take into account the situation in the BottomSheet