Xamarin.android ToggleSoftInput how to make FullScreen?

I need to show a software keyboard, without losing the full screen mode when the screen is removed the navigation status bar, but something does not work. The same thing happens when you call Dialog or alert - the system controls. How to avoid it ?

here are the pieces of my code
public class MainActivity : global::Xamarin.Forms.Platform.Android.FormsApplicationActivity
 public static Activity MyActivity;
 protected override void OnCreate(Bundle bundle)
 MyActivity = this; //crutch for the implementation of the interface that will show the keyboard
 View decorView = Window.DecorView;
 var uiOptions = (int)decorView.SystemUiVisibility;
 int newUiOptions = (int)uiOptions;

 newUiOptions |= (int)SystemUiFlags.LayoutStable;
 newUiOptions |= (int)SystemUiFlags.LayoutHideNavigation;
 newUiOptions |= (int)SystemUiFlags.LayoutFullscreen;

 newUiOptions |= (int)SystemUiFlags.HideNavigation;
 newUiOptions |= (int)SystemUiFlags.Fullscreen;
 newUiOptions |= (int)SystemUiFlags.ImmersiveSticky;

 decorView.SystemUiVisibility = (StatusBarVisibility)newUiOptions;
 // This puts the app in full-screen mode, where all controls

Then I add the implementation of the interface that shows the keys in Android (and later ios)

public class CMyKeyboardShower: IMyKeyboardShower
 public void ShowKeyboard()
 InputMethodManager inputMethodManager = MainActivity.MyActivity.GetSystemService(Context.InputMethodService) as InputMethodManager;
 inputMethodManager.ToggleSoftInput(ShowFlags.Forced HideSoftInputFlags.ImplicitOnly);
//the keyboard appears and the system returns the display elements

In principle, the same thing happens if you call just dilog

MainActivity.MyActivity.RunOnUiThread(() =>
 var alert = new AlertDialog.Builder(MainActivity.MyActivity);
 alert.SetView(MainActivity.me_act.LayoutInflater.Inflate(Resource.Layout.layout1, null));

I'm looking forward to hint how to intercept/disable the appearance of system elements
Thank you !

There is the idea that it is impossible because the fundamental Android device, but naprimre chrome:
July 2nd 19 at 17:45
0 answer

Find more questions by tags XamarinAndroid