Android Status Bar

#1

The Status bar on my Samsung Galaxy A10 is just behind my front camera. After enabling Immersive mode in my project settings I get a black bar. That is the area of Status bar. Is there a way to set it to full screen.

I see that Playrix do it with their games where it is completely full screen.

notification

0 Likes

#2

Ok, so the area containing the notch and the status bar goes black?

What if you don’t enable immersive mode? What happens then?

1 Like

#3

If immersive mode is not enabled then it still shows the black bar where the notification bar is and the navigation bar at the bottom.

With Immersive mode enabled still the black notification bar but no navigation bar.

0 Likes

#4

I see that notch support was added in the AndroidManifest.xml in Defold Release 1.2.160 but it still does not detect it on my Samsung Galaxy A10.

0 Likes

#5

Are you sure you don’t use “Hide front camera” option on your phone?

0 Likes

#6

The “Hide front camera” is disabled but still there is a black bar when I open the game. Like I said when I play other games it goes fullscreen with no black bar and around the notch.

0 Likes

#7

I investigated this question a bit and I afraid we don’t have this functionality in the engine right now. But this issue might be solved by creating of native extension or connecting style.xml file to the app.

More info here:


1 Like

#8

How would I go about extending the AndroidManifest’s style.xml? Where is this file located?

Should I create new directory in my project like: /res/values/styles.xml and then in my game project set Include Bundle Resources to /res?

0 Likes