Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

display.setStatusBar( display.HiddenStatusBar ) does not works
Started by renato.rolando Mar 26 2020 02:18 PM

2 replies to this topic
setstatusbar

Best Answer renato.rolando , 27 March 2020 - 05:46 AM

Really sorry,

 
I did not understand correctly. I wanted to delete the Android navigation commands.
I found the solution:
 
- Removes bottom bar on Android
if system.getInfo ("androidApiLevel") and system.getInfo ("androidApiLevel") <19 then
     native.setProperty ("androidSystemUiVisibility", "lowProfile")
else
     native.setProperty ("androidSystemUiVisibility", "immersiveSticky")
end

Thanks

[TOPIC CONTROLS]
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

renato.rolando

[GLOBAL: userInfoPane.html]
renato.rolando
  • Observer

  • 6 posts
  • Corona SDK

I use display.setStatusBar( display.HiddenStatusBar ) to hide the statusBar on Android device.

 

It works well on Corona Simulator but on my device (android LG V30) I still have it.

 

I also downloaded Star Explorer, the demo in tutorial, but I still have the status bar.

 

I'm using Corona build 2020.3577.

 

Thank

 

Renato



[TOPIC: post.html]
#2

XeduR @Spyric

[GLOBAL: userInfoPane.html]
XeduR @Spyric
  • Corona Geek

  • 1,246 posts
  • Corona SDK

Could you post a screenshot of this issue? Are you sure that it is the status bar that isn't being hidden and not the Android navigation bar?



[TOPIC: post.html]
#3

renato.rolando

[GLOBAL: userInfoPane.html]
renato.rolando
  • Observer

  • 6 posts
  • Corona SDK

  Best Answer

Really sorry,

 
I did not understand correctly. I wanted to delete the Android navigation commands.
I found the solution:
 
- Removes bottom bar on Android
if system.getInfo ("androidApiLevel") and system.getInfo ("androidApiLevel") <19 then
     native.setProperty ("androidSystemUiVisibility", "lowProfile")
else
     native.setProperty ("androidSystemUiVisibility", "immersiveSticky")
end

Thanks




[topic_controls]
[/topic_controls]