How to hide security zone on Android? For better full screen display effects.

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By qq715152910

How to hide security zone on Android?
For better full screen display effects.

I also encountered the same problem, multiple attempts to modify the '‘AndroidManifest.xml’ but none worked …
No matter how to adapt and adjust the zoom level,
Safe area always shows nothing…enter image description here

:bust_in_silhouette: Reply From: zenb

Hello, english is not my first language, so sorry for any mistakes.

  1. In godot install the android assembly template (Project> Install Template …)
  2. In the folder %project%/android/build create folder “res” with hierarchy:
>     res:
>     ----values
>     ----values-v28
  1. In each folders create “styles.xml”
  2. values/styles.xml content:
<?xml version="1.0" encoding="utf-8"?>
<resources>
    <style name="DefoldActivityTheme" parent="android:Theme.NoTitleBar.Fullscreen">
    </style>
</resources>
  1. values-v28/styles.xml content:
>     <?xml version="1.0" encoding="utf-8"?>
>     <resources>
>         <style name="DefoldActivityTheme" parent="android:Theme.NoTitleBar.Fullscreen">
>             <item name="android:windowLayoutInDisplayCutoutMode">
>                 shortEdges
>             </item>
>         </style>
>     </resources>
  1. Change the attribute in %project%/android/build/AndroidManifest.xml
> `android:theme="@style/DefoldActivityTheme"`
  1. Now you can compilete and ran app

Resources::