Forum Libraries, Components, and Plugins
We are excited to announce that the Xamarin Forums are moving to the new Microsoft Q&A experience. Q&A is the home for technical questions and answers at across all products at Microsoft now including Xamarin!

We encourage you to head over to Microsoft Q&A for .NET for posting new questions and get involved today.

Hiding the navigation bar on Android

Is there a way to hide the navigation bar on Android though CocosSharp? I'd like the application to be truly full screen.



  • RamiTabbaraRamiTabbara AUMember, Xamarin Team Xamurai

    Hi Vance,

    Yep, within your MainActivity you could do something like the following

        public class MainActivity : AndroidGameActivity
            protected override void OnCreate(Bundle bundle)
                View decorView = Window.DecorView;
                var uiOptions = (int)decorView.SystemUiVisibility;
                var newUiOptions = (int)uiOptions;
                newUiOptions |= (int)SystemUiFlags.LowProfile;
                newUiOptions |= (int)SystemUiFlags.Fullscreen;
                newUiOptions |= (int)SystemUiFlags.HideNavigation;
                newUiOptions |= (int)SystemUiFlags.Immersive;
                decorView.SystemUiVisibility = (StatusBarVisibility)newUiOptions;
                var application = new CCApplication();
                application.ApplicationDelegate = new GameAppDelegate();

    Just keep in mind that Immersive mode is only supported on Android 4.4 (KitKat) and later.

  • VanceSoudersVanceSouders USUniversity


    Thanks! That's exactly what I was looking for.


Sign In or Register to comment.