Conversation
|
Wow, excellent work! |
|
Very good. I was just about to ask how things were going on with target API level 36... |
|
Is the app icon <> title spacing also that way natively? It clips to the app icon |
|
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. |
|
I've added some more tasks to look at in the first post of the issue: |
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
|
Warning Review the following alerts detected in dependencies. According to your organization's Security Policy, it is recommended to resolve "Warn" alerts. Learn more about Socket for GitHub.
|
| description: | | ||
| Starting with Android 16 (target SDK 36), the status bar is always transparent as part of | ||
| edge-to-edge enforcement, and `statusBarColor` is ignored by the system. On Android 16+, | ||
| the status bar area will show the window's `backgroundColor` instead. Use `backgroundColor` | ||
| to control the color behind the status bar on Android 16+. |
There was a problem hiding this comment.
Should we deprecate it already, as it's still usable, but not encouraged to be set anymore? It probably depends on the app's target SDK level to decide, but looking at how Android itself deprecates, it may make sense.
There was a problem hiding this comment.
It still works on an Android 11 phone so it's just for Anrdoid 16+ where the edge-to-edge design is used that it won't work. We could add a warning log that if you use statusBarColor and your phone is Android 16+ it will show that you have to set a backgroundColor. On the other hand: you would see that on your device too if you test it (it's black/transparent or has your backgroundColor already).


(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:
(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
EdgeToEdgeHelperthat will set the correct padding and fixes the (current/old) BottomNavigation height calculation. Otherwise the views are slightly behind the bottom navigation again. Theexperimental:true(new) BottomNavigation using the XML is working fine.(this PR)
How to test it
<uses-sdk android:targetSdkVersion="36" />in the<manifest>node in your tiapp.xmlSome images:
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:

so you have to make sure to set a proper bottom position (like iOS)