Hi,
As you know with Android, there are the navigation buttons at the bottom of the screen.
How can I hide them or remove them?
Hi,
As you know with Android, there are the navigation buttons at the bottom of the screen.
How can I hide them or remove them?
Hi, I added the following to main.lua :
native.setProperty( "androidSystemUiVisibility", "immersiveSticky" )
But nothing happens. is there anything else I should do?
Hi mohammadalshwaf,
Use code below from Sticker-Knight-Platformer/main.lua
-- Removes status bar on iOS -- https://docs.coronalabs.com/api/library/display/setStatusBar.html display.setStatusBar( display.HiddenStatusBar ) -- 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
@Rob Miracle: Do you want to hide the navbar for the entire app? Then put them at the top of your main.lua. If you only want to hide them during your scene, then put them in scene:show() to hide them and turn them back on again in scene:hide().
Read more:
Have a nice day:)
ldurniat
Hi, thanks a lot. it worked.
Hi, I added the following to main.lua :
native.setProperty( "androidSystemUiVisibility", "immersiveSticky" )
But nothing happens. is there anything else I should do?
Hi mohammadalshwaf,
Use code below from Sticker-Knight-Platformer/main.lua
-- Removes status bar on iOS -- https://docs.coronalabs.com/api/library/display/setStatusBar.html display.setStatusBar( display.HiddenStatusBar ) -- 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
@Rob Miracle: Do you want to hide the navbar for the entire app? Then put them at the top of your main.lua. If you only want to hide them during your scene, then put them in scene:show() to hide them and turn them back on again in scene:hide().
Read more:
Have a nice day:)
ldurniat
Hi, thanks a lot. it worked.