how to avoid camera notch on the whole game screen? #1966
-
same as the title .. by default the whole screen appearing full including camera hole (notch) area. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
You need to only draw within the safe area, which you can get via |
Beta Was this translation helpful? Give feedback.
-
yes use the vars. They map out your visible screen size no matter how much overhang there is from your set resolution size. |
Beta Was this translation helpful? Give feedback.
Ok I found it's being controlled from java codes and not from manifest.xml.
I changed WindowManager.LayoutParams.LAYOUT_IN_DISPLAY_CUTOUT_MODE_SHORT_EDGES to
WindowManager.LayoutParams.LAYOUT_IN_DISPLAY_CUTOUT_MODE_NEVER;
And it worked.