How to put an application on a full screen in the newer versions of Android?

Viewed 31

I have a old problem to put my app in (almost) full screen mode (short edges) in my Android 11 (and now 12) Samsung cell phone as I've explained here.

My app has this look

My app

And I would like this look

My wish

Today I've discovered that my app, can be configurated in Settings, Display, Full Screen Apps.

Full screen apps

My app is between the listed apps that allows to select between full screen mode and app default. Many apps don't appear on this list. I don't know what criterion Android uses to select the apps where it's posible to change the screen.

So I managed to change the app screen the way I wanted.

The only question is that the system displayed a white background navigation bar, so I had to add to the style setting in Styles.xml the following line:

<item name="android:navigationBarColor">@android:color/black</item>

However, I would love to do it programmatically. But I don't get it, as you can see here. I did a lot of research, a lot of Stackoverflow research, but nothing.

Could anyone try to help me?

1 Answers

Finally, I've found the solution, which can be read as an answer that I wrote here to my original question .

Related