Skip to content

feat(android): prepare SDK for Android target SDK 36#14399

Draft
m1ga wants to merge 2 commits into
mainfrom
android36
Draft

feat(android): prepare SDK for Android target SDK 36#14399
m1ga wants to merge 2 commits into
mainfrom
android36

Conversation

@m1ga
Copy link
Copy Markdown
Contributor

@m1ga m1ga commented Feb 28, 2026

(hopefully) fixes #14353

Targeting Android SDK 36 will remove the current opt-out XML for the edge-to-edge stuff and this will break our layouts:

Screenshot_20260227-220449

(Ti 13.1.1.GA with targetSDK 36)

Whats fixed:

This PR will remove the opt-out part from the XML file, adds a new EdgeToEdgeHelper that will set the correct padding and fixes the (current/old) BottomNavigation height calculation. Otherwise the views are slightly behind the bottom navigation again. The experimental:true (new) BottomNavigation using the XML is working fine.

Screenshot_20260227-220530

(this PR)

How to test it

  • add <uses-sdk android:targetSdkVersion="36" /> in the <manifest> node in your tiapp.xml
  • build 13.1.1 and this PR and check the top and bottom of your windows

Some images:

Screenshot_20260228-114547 Screenshot_20260228-114556 Screenshot_20260228-114623 Screenshot_20260228-114639 Screenshot_20260228-114705

Notes:

This will make sure a bottomnavigation will be behind the navigation bar BUT the content will stay above it. So it technically is not using edge-to-edge in order to make existing apps look the same without any changes. It is not using safeArea or allows content behind the bottom navigation. This should be implemented at some point. But this PR will just make sure we have something that is Android SDK 36 ready once there is a requirement by Google!

Removing the current bottom padding for normal windows will make them look like this:
Screenshot_20260227-221432
so you have to make sure to set a proper bottom position (like iOS)

@cb1kenobi
Copy link
Copy Markdown
Member

Wow, excellent work!

@hbugdoll
Copy link
Copy Markdown
Contributor

hbugdoll commented Mar 3, 2026

Very good. I was just about to ask how things were going on with target API level 36...

@hansemannn
Copy link
Copy Markdown
Collaborator

Is the app icon <> title spacing also that way natively? It clips to the app icon

@m1ga
Copy link
Copy Markdown
Contributor Author

m1ga commented Mar 15, 2026

Don't think so, but this is how it looks with the current SDK too if I remember correctly.

Ti also still use Actionbars in some places. We would need to move all those to Toolbars to have a better look in general.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Android: Target SDK 36

4 participants