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:

"Edge-to-edge display may not be available for all users.
Starting with Android 15, apps targeting SDK 35 are displayed edge-to-edge by default.
Apps targeting SDK 35 must handle window insets properly to ensure correct display on Android 15 and later.
Alternatively, you can call enableEdgeToEdge() (Kotlin) or EdgeToEdge.enable() (Java) for backward compatibility.
One or more APIs or parameters you are using for edge-to-edge or windowed display have been deprecated in Android 15.
Specifically: LAYOUT_IN_DISPLAY_CUTOUT_MODE_SHORT_EDGES
Found in: androidx.activity.EdgeToEdgeApi28.adjustLayoutInDisplayCutoutMode
Please migrate away from these parameters or APIs."

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
 

mcqueccu

Well-Known Member
Licensed User
Longtime User
Google minimum recommended targetSDK is 35,
B4A version 13.4 Recommends supports 35 and recommends sdk 35 as well, which fixes the edge to edge issue.

For targets SDK 36, B4A will be updated to support it before Google finally enforces it
 
Upvote 0

Zeev Goldstein

Well-Known Member
Licensed User
Longtime User
i also had the same issue
finally i had to recalculate the effective screen height as some uses the nav bar and some not
so i now calculate the screen effective size to know if the nav bar is used or not and then i redraw the relevant screen elements
as i use panels i just had to set the y axle instead of 100% to the effective screen height and that solved my problem
of course sdk 36 is not yet used and i had to stick to 35
 
Upvote 0

mayahandayani

Member
Licensed User
i also had the same issue
my application right now already SDK 35 but in some device with Android Version 16 can't install the app on Play Store.
so when I try using SDK 36 can't effect using edge-to-edge layout on manifest.
hopefully can solved ASAP.
Google minimum recommended targetSDK is 35,
B4A version 13.4 Recommends supports 35 and recommends sdk 35 as well, which fixes the edge to edge issue.

For targets SDK 36, B4A will be updated to support it before Google finally enforces it
 

Attachments

  • 1762151087350.png
    1762151087350.png
    31.3 KB · Views: 20
Upvote 0

mcqueccu

Well-Known Member
Licensed User
Longtime User
i also had the same issue
my application right now already SDK 35 but in some device with Android Version 16 can't install the app on Play Store.
so when I try using SDK 36 can't effect using edge-to-edge layout on manifest.
hopefully can solved ASAP.
Your issue is different. Check or Post your manifest.

Better still start a new thread
 
Upvote 0
Top