简体   繁体   中英

How can my app fully occupy the entire window after hiding the Navigation Bar & the Status Bar?

I need my app to fully occupy the entire window after hiding the Navigation Bar & the Status Bar.

Below is my code where I hide the Status and Navigation Bar.

this.Window.DecorView.SystemUiVisibility = Android.Views.StatusBarVisibility.Hidden;
this.Window.SetFlags(WindowManagerFlags.Fullscreen, WindowManagerFlags.Fullscreen);
this.Window.DecorView.SetFitsSystemWindows(true);

Albeit the navigation buttons are gone, the app still does not occupy the whole window. I'm pretty sure I am missing a step or I might be using the SetFitsSystemWindows method incorrectly.

If anybody can help out or at least point me in a direction where I can resolve this is much appreciated.

Cheers!

我认为您想归档其沉浸式全屏模式的内容,在此链接中,您可以了解有关此功能的更多信息。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM