XFAndroidFullScreenWebView
XFAndroidFullScreenWebView copied to clipboard
Hiding top bar
Hello Friends
I want to hide that bar on the top. Could it be done?

On FullScreenEnabledWebViewRenderer.cs
`private void OnEnterFullscreenRequested( object sender, EnterFullScreenRequestedEventArgs eventArgs) { if (_webView.EnterFullScreenCommand != null && _webView.EnterFullScreenCommand.CanExecute(null)) { _webView.EnterFullScreenCommand.Execute(eventArgs.View.ToView());
var activity = Context.GetActivity();
int uiOptions = (int)activity.Window.DecorView.SystemUiVisibility;
uiOptions |= (int)SystemUiFlags.LowProfile;
uiOptions |= (int)SystemUiFlags.Fullscreen;
uiOptions |= (int)SystemUiFlags.HideNavigation;
uiOptions |= (int)SystemUiFlags.ImmersiveSticky;
activity.Window.DecorView.SystemUiVisibility =
(StatusBarVisibility)uiOptions;
}
}`
and this is how to restore them
activity.Window.DecorView.SystemUiVisibility = StatusBarVisibility.Visible;