How to hide the bottom bar of the android (back, home) in the form of Hasarin?

How can I hide the bottom panel of the android (back button, home button) forever in xamarin form? I tried some code, but it hid it temporarily. When I touch the screen, it shows again. But I want to completely hide it.

+4
source share
1 answer

I am grateful that I was late to the party with this answer, but I thought that I would abandon it here for everyone who had a hot time that I was trying to understand.

My Droid MainActivity now looks like this:

protected override void OnCreate(Bundle bundle)
    {
        base.OnCreate(bundle);
        global::Xamarin.Forms.Forms.Init(this, bundle);

        //====================================
        int 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;
        //====================================

        LoadApplication(new Pages.App());
    }

- . override OnStart OnResume, OnCreate, , .

"Immersive", "ImmersiveSticky" , , , ( , ) . "ImmersiveSticky" - .

+6

Source: https://habr.com/ru/post/1653131/


All Articles