Posted by: Ren Shore | on May 11, 2018
Hey LL community!
Does anyone have a script to hide the navbar?
Posted in Lightning Launcher Users: Discussion / Ask here | 3 Comments » Tags: Ren Shore
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);
Hi 👋,
Is this to do with ADB or just using lightning?
Thanks.
just using Lightning
Your email address will not be published. Required fields are marked *
Comment
Name *
Email *
Website
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);
Hi 👋,
Is this to do with ADB or just using lightning?
Thanks.
just using Lightning