无论如何让我在 Android 上的 Xamarin Forms 应用程序进入全屏或沉浸式模式?
我尝试了以下方法,状态栏上的所有控件都被隐藏了,但状态栏本身仍然显示。任何帮助,请
var newUiOptions = (int)SystemUiFlags.LayoutStable;
newUiOptions |= (int)SystemUiFlags.LayoutHideNavigation;
newUiOptions |= (int)SystemUiFlags.LayoutFullscreen;
newUiOptions |= (int)SystemUiFlags.HideNavigation;
newUiOptions |= (int)SystemUiFlags.Fullscreen;
newUiOptions |= (int)SystemUiFlags.Immersive;
//newUiOptions |= (int)SystemUiFlags.ImmersiveSticky;
decorView.SystemUiVisibility = (StatusBarVisibility)newUiOptions;
导航栏是隐藏的,但不是状态栏。