Przeglądaj źródła

Fix initial window size and fullscreen toggle behaviour across APIs

Anthony 1 miesiąc temu
rodzic
commit
8fd4bf5d83

+ 5 - 2
android-project/app/src/main/res/values/styles.xml

@@ -1,7 +1,10 @@
 <?xml version="1.0" encoding="utf-8"?>
 <resources>
     <!-- Base application theme. -->
-    <style name="AppTheme" parent="android:Theme.NoTitleBar.Fullscreen">
-        <!-- Customize your theme here. -->
+    <style name="AppTheme" parent="android:Theme.NoTitleBar">
+    <!-- Allow drawing under status & nav bars -->
+    <item name="android:windowDrawsSystemBarBackgrounds">true</item>
+    <item name="android:statusBarColor">@android:color/transparent</item>
+    <item name="android:navigationBarColor">@android:color/transparent</item>
     </style>
 </resources>