How can I hide or show the status bar on Android ?
thanks. [import]uid: 21680 topic_id: 15056 reply_id: 315056[/import]
How can I hide or show the status bar on Android ?
thanks. [import]uid: 21680 topic_id: 15056 reply_id: 315056[/import]
hi~
I need to see the status bar,how can I do ?
thanks a lot !! [import]uid: 21680 topic_id: 15056 reply_id: 55830[/import]
Hey Jason,
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;
[lua]display.setStatusBar(display.HiddenStatusBar)[/lua]
Peach
[import]uid: 52491 topic_id: 15056 reply_id: 55862[/import]
hi, peach,
display.setStatusBar(display.HiddenStatusBar)
that will hide the status bar.
I need to see the bar.
I try all paras of setStatusBar,but not work.
display.DefaultStatusBar
display.TranslucentStatusBar
display.DarkStatusBar
can you tell me how to show the status bar on android ?
thanks. [import]uid: 21680 topic_id: 15056 reply_id: 57558[/import]
Jason,
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. [import]uid: 32256 topic_id: 15056 reply_id: 60195[/import]
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?
[import]uid: 97524 topic_id: 15056 reply_id: 74212[/import]
dax,
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.
http://developer.android.com/reference/android/view/View.html#SYSTEM_UI_FLAG_HIDE_NAVIGATION
Bottom line, its not a bug. It’s an Android limitation that we’re stuck with. [import]uid: 32256 topic_id: 15056 reply_id: 74248[/import]
Joshua,
How can I invoke the lights out mode? I am building an app for a gallery floor and it cannot have any system buttons.
Thanks! [import]uid: 6310 topic_id: 15056 reply_id: 102901[/import]
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. [import]uid: 32256 topic_id: 15056 reply_id: 102938[/import]