Android Question Android 16 edge-to-edge layout issue (action bar shifted down, status bar icons missing) after targeting SDK 36

kkkpe

Active Member
Licensed User
Longtime User
Hi everyone,
after updating my app to target SDK 36 (as required by Google Play), I noticed a serious UI issue on Android 16 devices:
  • The ActionBar is shifted down, not aligned with the top of the screen.
  • The status bar icons disappear (battery, time, etc.).
To prevent a broken layout for users, I temporarily republished the app with target SDK 35, where the issue does not occur.
After that, Google Play’s review team sent me this message:


So, it seems that Android 15+ changes the default behavior of edge-to-edge rendering, and the old parameter LAYOUT_IN_DISPLAY_CUTOUT_MODE_SHORT_EDGES is now deprecated.

I would like to ask:
  1. How can we correctly handle edge-to-edge layout in B4A when targeting SDK 36 (Android 15/16)?
  2. Is there a recommended workaround to prevent the ActionBar from being pushed down and status bar icons from disappearing?
  3. Can we apply a fix using JavaObject / Reflection, or do we need to wait for a library update that handles EdgeToEdge.enable() internally?
Thanks in advance for any help or clarification.

Antonio Pellegrino
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…