title: Immersive mode while using keyboard
body: <p>In Xamarin.Forms app in <code>MainActivity.cs</code> I set immersive sticky mode:</p>
  
  <pre><code>    protected override void OnCreate(Bundle bundle)
      {
          TabLayoutResource = Resource.Layout.Tabbar;
          ToolbarResource = Resource.Layout.Toolbar;
          base.OnCreate(bundle);
          Xamarin.Forms.Forms.Init(this, bundle);
          SetFullscreen();
          LoadApplication(new App());
      }
  
      void SetFullscreen()
      {
          var uiOptions = (int)Window.DecorView.SystemUiVisibility;
          uiOptions |= (int)SystemUiFlags.LowProfile;
          uiOptions |= (int)SystemUiFlags.Fullscreen;
          uiOptions |= (int)SystemUiFlags.HideNavigation;
          uiOptions |= (int)SystemUiFlags.ImmersiveSticky;
          Window.DecorView.SystemUiVisibility = (StatusBarVisibility)uiOptions;
          Window.SetFlags(WindowManagerFlags.KeepScreenOn, WindowManagerFlags.KeepScreenOn);
      }
  </code></pre>
  
  <p>When a page with an <code>Entry</code> (input box) and the keyboard comes up, it goes out of immersive mode and all system bars become visible. When keyboard is hidden, all bars stay visible.</p>
  
  <p>Also using <code>Acr.UserDialogs</code> with <code>ShowLoading()</code>.</p>
  
  <p>How to stay in immersive mode all the time? Or how to return to immersive mode when closing the keyboard, and when calling <code>HideLoading()</code> of <code>UserDialogs</code>?</p>