diff --git a/Android/Activity1.cs b/Android/Activity1.cs index a23127b..445a4b8 100644 --- a/Android/Activity1.cs +++ b/Android/Activity1.cs @@ -53,7 +53,11 @@ namespace Android { this.game.GraphicsDeviceManager.PreferredBackBufferHeight = args.Bottom - args.Top; 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 this.mainView = new LinearLayout(this) {Orientation = Orientation.Vertical}; this.mainView.LayoutParameters = new LinearLayout.LayoutParams(MatchParent, MatchParent);