Quick Links: Download Gideros Studio | Gideros Documentation | Gideros community chat | DONATE
How to hide Android navigation bar? — Gideros Forum

How to hide Android navigation bar?

seppseppseppsepp Member
edited February 2015 in General questions
Hi there,

simple question maybe, but I haven't found an answer for Gideros here. So: How can I hide the Android (bottom) navigation bar? Right now it's visible and covers half of the bottom ads.


Thanks in advance for your help =) !

Sebastian

Comments

  • tkhnomantkhnoman Member
    Accepted Answer
    https://developer.android.com/training/system-ui/immersive.html

    Mine :
    <a href="https://forum.gideros.rocks/profile/Override" rel="nofollow">@Override</a>
    	public void onWindowFocusChanged(boolean hasFocus)
    	{
    		super.onWindowFocusChanged(hasFocus);
     
    	    if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.KITKAT) {
    	        if (hasFocus) {
    	        	getWindow().getDecorView().setSystemUiVisibility(View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN
    	                            | View.SYSTEM_UI_FLAG_HIDE_NAVIGATION
    	                            | View.SYSTEM_UI_FLAG_FULLSCREEN
    	                            | View.SYSTEM_UI_FLAG_IMMERSIVE_STICKY);
    	        }
    	    }
     
    		mHasFocus = hasFocus;
     
    		if (mHasFocus == true && mPlaying == false)
    		{
    			mGLView.onResume();
    			GiderosApplication.getInstance().onResume();
    			mPlaying = true;
    		}
    	}
  • Thanks a lot for your help. It works. Only I had to change minSdkVersion to level 11 in manifest file.
  • This should be in the default exported project imho.

    Likes: antix, bali001

    Coder, video game industry veteran (since the '80s, ❤'s assembler), arrested - never convicted hacker (in the '90s), dad of five, he/him (if that even matters!).
    https://deluxepixel.com
    +1 -1 (+2 / -0 )Share on Facebook
  • antixantix Member
    I agree totally. I really think it will get boring quickly having to edit the exported code every time :(
  • ar2rsawseenar2rsawseen Maintainer
    Please add to github issues :)

    Likes: cokeramirez

    +1 -1 (+1 / -0 )Share on Facebook
Sign In or Register to comment.