Why navigation system is not fully transparent?
enableEdgeToEdge(
statusBarStyle = SystemBarStyle.auto(
Color.TRANSPARENT,
Color.TRANSPARENT,
) { false },
navigationBarStyle = SystemBarStyle.auto(
lightScrim,
darkScrim,
) { false },
)
setContent {
ArchApp()
}
The code I used from official android sample https://github.com/android/nowinandroid/blob/main/app/src/main/java/com/google/samples/apps/nowinandroid/MainActivity.kt#L123
Theme (the same as in nowinandroid)
<?xml version="1.0" encoding="utf-8"?>
<resources xmlns:tools="http://schemas.android.com/tools">
<!-- Allows us to override night specific attributes in the
values-night folder. -->
<style name="NightAdjusted.Theme.App" parent="android:Theme.Material.Light.NoActionBar" />
<!-- The final theme we use -->
<style name="Theme.App" parent="NightAdjusted.Theme.App" />
<style name="NightAdjusted.Theme.Splash" parent="Theme.SplashScreen">
<item name="android:windowLightStatusBar" tools:targetApi="23">true</item>
<item name="android:windowLightNavigationBar" tools:targetApi="27">true</item>
</style>
<style name="Theme.App.Splash" parent="NightAdjusted.Theme.Splash">
<item name="windowSplashScreenAnimatedIcon">@drawable/ic_splash_logo</item>
<item name="windowSplashScreenBackground">@color/splash_screen_background</item>
<item name="postSplashScreenTheme">@style/Theme.App</item>
</style>
</resources>
Theme Night (the same as in nowinandroid)
<style name="NightAdjusted.Theme.App" parent="android:Theme.Material.NoActionBar" />
<style name="NightAdjusted.Theme.Splash" parent="Theme.SplashScreen">
<item name="android:windowLightStatusBar" tools:targetApi="23">false</item>
<item name="android:windowLightNavigationBar" tools:targetApi="27">false</item>
</style>
It's fully transparent in nowinandroid app