Search code examples
androidxamarin.androidandroid-navigation-bar

Setting a light navigation bar makes it invisible


I have set the following to have a light navigation bar:

Window.DecorView.SystemUiVisibility = (StatusBarVisibility)SystemUiFlags.LightNavigationBar;

However, in my app, the navigation bar became invisible:

enter image description here

Gmail app showing the wanted result:

enter image description here


Solution

  • Setting LightNavigationBar, means that your buttons will fit a light theme (so they will be black, for a light background) - but you might want to change the navigationbar background as well. Here is how to do so in your activity:

    Window.SetNavigationBarColor(Color.Green);
    

    Hope it helps :)