Hide StatusBar for specific ContentPage

前端 未结 3 528
星月不相逢
星月不相逢 2021-02-03 13:48

I\'m creating an app where I want to hide the statusbar on a specific page. In my example it\'s a ContentPage. I found several samples where the info.plist is used to hide it, b

3条回答
  •  无人共我
    2021-02-03 14:23

    protected override void OnCreate (Bundle bundle)
    {
        base.OnCreate (bundle);
        this.Window.ClearFlags(WindowManagerFlags.Fullscreen);
        SetContentView (Resource.Layout.Main);
    
        ...
    }
    

提交回复
热议问题