0 votes

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

in Engine by (29 points)

1 Answer

0 votes

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:

  3. In each folders create "styles.xml"

  4. values/styles.xml content:

    <?xml version="1.0" encoding="utf-8"?>
        <style name="DefoldActivityTheme" parent="android:Theme.NoTitleBar.Fullscreen">
  5. values-v28/styles.xml content:

    <?xml version="1.0" encoding="utf-8"?>
        <style name="DefoldActivityTheme" parent="android:Theme.NoTitleBar.Fullscreen">
            <item name="android:windowLayoutInDisplayCutoutMode">
  6. Change the attribute in %project%/android/build/AndroidManifest.xml


  7. Now you can compilete and ran app

- https://github.com/godotengine/godot-proposals/issues/321
- https://developer.android.com/guide/topics/display-cutout
- https://forum.defold.com/t/android-status-bar-fullscreen-on-devices-with-notch-solved/64173/20

by (14 points)
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.