Hi,
After upgrading my samsung to Android 10, I notice this with the navigation bar too. It is now translucent and there is no way to make it default (solid white, similar to other apps like gmail, gmaps). Here is a sample :
I also tested how the setStatusBar will affect it, but it does not affect it (see attached image).
Snippet of code :
local currentStatusBarIndex = 1 local statusBarOptions = { { display.HiddenStatusBar, 'display.HiddenStatusBar' }, { display.DefaultStatusBar, 'display.DefaultStatusBar' }, { display.TranslucentStatusBar, 'display.TranslucentStatusBar' }, { display.DarkStatusBar, 'display.DarkStatusBar' }, { display.LightTransparentStatusBar, 'display.LightTransparentStatusBar' }, { display.DarkTransparentStatusBar, 'display.DarkTransparentStatusBar' }, } local myText = display.newText( 'setStatusBar', display.contentCenterX, display.contentCenterY, native.systemFont, 26 ) myText:setFillColor( 1, 1, 1 ) local function updateBar1() if system.getInfo( "platformName" ) == "Android" then display.setStatusBar( statusBarOptions[currentStatusBarIndex][1] ) currentStatusBarIndex = currentStatusBarIndex + 1 if currentStatusBarIndex \> #statusBarOptions then currentStatusBarIndex = 1 end myText.text = statusBarOptions[currentStatusBarIndex][2] end native.setProperty( "androidSystemUiVisibility", "default" ) end local barTimer = timer.performWithDelay( 3000, updateBar1, 0 ) native.setProperty( "androidSystemUiVisibility", "default" )
.
Is there a way to make the android bottom navigation bar solid-white?
thanks