Questions tagged [android-cutout]

10 questions
4
votes
2 answers

How can I color the cutout/notch area in non-full screen landscape mode

Here are two images taken in landscape mode. One is full screen mode and the other is normal mode. The issue I am trying to solve is how to color the left white area you see in the normal view. I'd like the color to be the same as the rest of the…
Java42
  • 587
  • 5
  • 13
4
votes
3 answers

Get the height of "notch" so contents won't be cut off

How can I get the height of recent android phones' notch, preferably in pixels? I have an implementation where an image MUST be at the top in full screen. With the addition of a notch to recently released phones, this image will be cut out by the…
3
votes
1 answer

How can I color the cutout/notch area with background color in non-full screen landscape mode in android jetpack compose

In landscape mode in Night mode cutout area is rendered white, how can I set the black(background) color to it? My app is not in fullscreen/immersive mode. I want to color white color cutout strip in black(background) color. Edit : The problem is…
3
votes
1 answer

Activity not extended below the cutout in landscape

In my activity I use the following code to turn on / off fullscreen. And by fullscreen I mean hiding / showing the status bar. The problem takes place on devices that has a Cutout (Where there's a camera) and the Status bar is visible and in…
Ashraf Alshahawy
  • 1,139
  • 1
  • 14
  • 38
2
votes
2 answers

React Native landscape mode - display over notch

I've started learning react native, and I created some simple landscape application, my issue is that the app doesn't display past the notch, which I'd want it to. I managed to solve it on portrait mode with: