fixed rendering under notches to actually not occur
This commit is contained in:
parent
37a0782134
commit
1b32d05e05
1 changed files with 5 additions and 1 deletions
|
@ -53,7 +53,11 @@ namespace Android {
|
||||||
this.game.GraphicsDeviceManager.PreferredBackBufferHeight = args.Bottom - args.Top;
|
this.game.GraphicsDeviceManager.PreferredBackBufferHeight = args.Bottom - args.Top;
|
||||||
this.game.GraphicsDeviceManager.ApplyChanges();
|
this.game.GraphicsDeviceManager.ApplyChanges();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// don't render under notches
|
||||||
|
if (Build.VERSION.SdkInt >= BuildVersionCodes.P)
|
||||||
|
this.Window.Attributes.LayoutInDisplayCutoutMode = LayoutInDisplayCutoutMode.Never;
|
||||||
|
|
||||||
// total layout that is displayed
|
// total layout that is displayed
|
||||||
this.mainView = new LinearLayout(this) {Orientation = Orientation.Vertical};
|
this.mainView = new LinearLayout(this) {Orientation = Orientation.Vertical};
|
||||||
this.mainView.LayoutParameters = new LinearLayout.LayoutParams(MatchParent, MatchParent);
|
this.mainView.LayoutParameters = new LinearLayout.LayoutParams(MatchParent, MatchParent);
|
||||||
|
|
Loading…
Reference in a new issue