Status bar and Navbar issue after the targetSdk 35 update on (probably) all Android versions

Tested on Android 15+, Android 13 and Android 9 (= Android 13):
StatusNavBar.aia (2.7 KB)

Screen1:

Screen2:

Android 16:

Android 13:

@Susan_Lane
@ewpatton


You need to change at least slightly PrimaryColor in > Project Properties > Theming to avoid this behavior.

1 Like

Rather, it does not call the primary color to make the bars take on that color, but instead defaults to being transparent and edge to edge

Here, with the extension, say that setting the colors to default removes that default transparency in the status bar and navigation bar and enters the primary color.

Test
Android 15
Samsung S25 Ultra and S24 Ultra


As I mentioned, in order to add color to the bars, you will have to do it via XML or create false bars.

The Status bar and the Navbar should be able to be hidden and displayed individually and separately.

I tested your example project on Android 15 and did not notice this problem.

Hmm, who is your answer aimed at and what project are you talking about? And what problem was not noticed?

I tested your project from the first post. I switch between screen1 and screen2 and I don't see any problem with the bars.

Icons are always visible and the title bar does not turn black.

Companion or APK? Of course, you should test with the APK.

1 Like

I found a way to partially circumvent this and other problems on Android 15+ using an extension:

So we can set navbar color & status bar color with this mthode for android 15+?

See my screenshots there: Android 15+ : Status and Nav Bar Colours - #9 by Anke

where i can get systembar extension?

The SystemBars extension is still in an experimental stage. The Status bar and Navbar can no longer be colored independently of each other since the targetSdkVersion=35 update. My extension uses a workaround/trick to prevent the Navbar from being colored. To do this, the Navbar must be temporarily hidden for a few milliseconds to prevent coloring. However, this requires that the Title bar is hidden (in the Designer). If desired, this should then be created manually via a HA and colored accordingly (if desired).

Post your AIA or send it to me via PM. I’ll test it with your app and report back…

grafik

1 Like

Is this view elevation effect desirable?

I cannot observe this effect on my test devices.

On my android15 it looks good

1 Like

Credit to @Ulrich_Bien's ActionBar and ColorPicker extensions.