View recent posts | Search forum topics
How can I hide or show the status bar on Android ?
I need to see the status bar,how can I do ?
thanks a lot !!
Sorry this wasn't answered sooner, I think it may have been buried!
First up, you should try to post Android questions in the Android section ;) (Works much better!)
Second up, an answer!
It's the exact same as iOS;
that will hide the status bar.
I need to see the bar.
I try all paras of setStatusBar,but not work.
can you tell me how to show the status bar on android ?
We "just" added display.setStatusBar() support to Android in build 633, which will be made available soon. Android only supports one kind of statusbar meaning "default", "translucent", and "dark" all show the same kind of statusbar on Android.
is display.setStatusBar(display.HiddenStatusBar) still not working on Android v3+
noticed it in the docs
only want to use it if its consistent across all Android versions?
Android 3.x does not have a status bar. The bar at the bottom of screen is what they call a "system bar" on Android 3.x and as far as I know, there is no way to get rid of it on 3.x. You can put it into "lights out" mode where it hides the buttons, but the black bar will still be there eating up screen space. That said, it looks like Android 4.x (API Level 14) added the ability to remove the system bar. See the following Android documentation for more details via the link below.
Bottom line, its not a bug. It's an Android limitation that we're stuck with.
How can I invoke the lights out mode? I am building an app for a gallery floor and it cannot have any system buttons.
Corona does not support "lights out mode". We can add it as a feature request though. That said, my understanding is that lights out mode does not hide the buttons; it dims them... which I suppose would be perfect for a media/gallery app like yours.