Quantcast
Channel: User Liyun Zhang - MSFT - Stack Overflow
Viewing all articles
Browse latest Browse all 445

Answer by Liyun Zhang - MSFT for Android app not in fullscreen even though the flags are set to be fullscreened

$
0
0

You can try to use the following code to make your app full screen:

public class MainActivity : MauiAppCompatActivity    {        protected override void OnCreate(Bundle? savedInstanceState)        {            base.OnCreate(savedInstanceState);            Window.SetFlags(WindowManagerFlags.LayoutNoLimits, WindowManagerFlags.LayoutNoLimits);            Window.Attributes.LayoutInDisplayCutoutMode = LayoutInDisplayCutoutMode.ShortEdges;            Window.DecorView.SystemUiFlags =                (SystemUiFlags.ImmersiveSticky | SystemUiFlags.HideNavigation |                 SystemUiFlags.Fullscreen | SystemUiFlags.Immersive);        }    }

Viewing all articles
Browse latest Browse all 445

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>