I'm developing a NativeScript application and recently upgraded my target SDK from 34 to 35 (Android 15 Preview). After this change, I noticed that the app layout started drawing behind the status bar and navigation bar, which was not happening when targeting SDK 34.
Before upgrading, the system bars were respected and the layout was displayed correctly. But with targetSdkVersion 35, UI elements now overlap with the system bars, making them difficult to interact with or see properly.
It looks like Android 15 (API 35) is enforcing edge-to-edge layout behavior more strictly, similar to what started in Android 11+ (API 30+).
What I want to know: Why is this behavior changing when moving from SDK 34 to 35?
How can I prevent my layout from drawing behind the system bars when targeting SDK 35?
Is there a recommended fix in NativeScript (Core) to handle this properly?
Any suggestions or best practices to handle this across Android 11+ and Android 15+ would be really helpful!
I'm using NativeScript Core (not Angular or Vue).