set navigation bar color

add note to edge-to-edge enforcement on android 15
This commit is contained in:
Anthony Calosa
2024-11-18 12:41:58 +08:00
parent f48cf951db
commit a1d1e2b335
2 changed files with 6 additions and 0 deletions

View File

@@ -3,5 +3,6 @@
<style name="NormalTheme" parent="@android:style/Theme.NoTitleBar.Fullscreen">
<item name="android:windowNoTitle">true</item>
<item name="android:windowOptOutEdgeToEdgeEnforcement">true</item>
<item name="android:navigationBarColor">#131313</item>
</style>
</resources>

View File

@@ -11,6 +11,11 @@
</style>
<style name="NormalTheme" parent="@android:style/Theme.NoTitleBar.Fullscreen">
<item name="android:windowNoTitle">true</item>
<!-- windowOptOutEdgeToEdgeEnforcement -> Flag indicating whether this window would opt-out the
edge-to-edge enforcement. If this is false, the edge-to-edge enforcement will be applied to the window if it
belongs to an app targeting Android 15 and above. If this is true, the edge-to-edge enforcement
won't be applied. However, this attribute will be deprecated and disabled in a future SDK level. -->
<item name="android:windowOptOutEdgeToEdgeEnforcement">true</item>
<item name="android:navigationBarColor">#131313</item>
</style>
</resources>