Android fullscreen issue

Hi, I’m using lime to create an android app and I’ve noticed that be default it seems to crop the window to the “safe area” so the window doesn’t go over any cutout/notch areas. I can’t see a way of turning this off - I want to be able to show the app fullscreen. The Lime window.onResize event is just passing in a smaller area that the device screen size.

The weird thing is that I have another app which uses openfl and that is able to show the app full screen just fine - but that’s just using Lime under the hood… so I don’t know how its doing it. I assumed it was the window.fullscreen tag in the xml, but I have enabled this and it doesn’t do anything on Android it seems.

Any help would be appreciated,

Thanks,
Greg

Lime 8.3.0 added an option to project.xml to configure how your Android app fills a screen with cutouts/notches. From CHANGELOG.md:

Added layoutInDisplayCutoutMode to <config:android>, which may be set to default, always, never, or shortEdges.

So you might add <config:android layoutInDisplayCutoutMode="always"/> to your project.xml.

More information from Android Developers documentation:

Note: I have read that Android SDK 35 running on a device with Android 15 or newer will force “always” and the other values will be ignored. On older devices, the other values may still work, though. Old devices might all have different meanings for “default” too.

ah amazing - thanks!