Hey LL community!
Hey LL community!
Does anyone have a script to hide the navbar?
]]>Does anyone have a script to hide the navbar?
]]>
< ![CDATA[
i think it’s doable, but you should first try to do it from a PC if you have access and tools
]]>
< ![CDATA[
bindClass(“android.view.Window”);
bindClass(“android.view.View”);
var decorView = LL.getContext().getWindow().getDecorView();
// Hide both the navigation bar and the status bar.
// SYSTEM_UI_FLAG_FULLSCREEN is only available on Android 4.1 and higher, but as
// a general rule, you should design your app to hide the status bar whenever you
// hide the navigation bar.
var uiOptions = View.SYSTEM_UI_FLAG_HIDE_NAVIGATION
| View.SYSTEM_UI_FLAG_FULLSCREEN;
decorView.setSystemUiVisibility(uiOptions);
]]>
< ![CDATA[
you should try to also add the immersive flag if you want the bars to keep hiding even after they become visible
]]>
< ![CDATA[
aye but from the sound of it he only wants to hide the navbar not the status.
]]>
< ![CDATA[
Is there any way to get ’em to hide as the app opens? I’m finding myself having to hit the home button again to hide them
Edit: I also put is on Home and Load
]]>
< ![CDATA[
you could try adding the Immersive flag he^ suggested
]]>
< ![CDATA[
Yeah I did with the same result
]]>
< ![CDATA[
bindClass(“android.view.Window”);
bindClass(“android.view.View”);
var decorView = LL.getContext().getWindow().getDecorView();
// Hide both the navigation bar and the status bar.
// SYSTEM_UI_FLAG_FULLSCREEN is only available on Android 4.1 and higher, but as
// a general rule, you should design your app to hide the status bar whenever you
// hide the navigation bar.
var uiOptions = View.SYSTEM_UI_FLAG_HIDE_NAVIGATION
| View.SYSTEM_UI_FLAG_FULLSCREEN|View.SYSTEM_UI_FLAG_IMMERSIVE_STICKY;
decorView.setSystemUiVisibility(uiOptions);
]]>
< ![CDATA[
did you try the sticky flag
]]>
< ![CDATA[
Yeah tried both. Do you think adding a delay would help?
]]>
< ![CDATA[
might do could always try it I gotta get sum kip let me know if it worked.
]]>