Setting a light navigation bar makes it invisible

删除回忆录丶 提交于 2019-12-11 04:28:13

问题


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:

Gmail app showing the wanted result:


回答1:


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 :)



来源:https://stackoverflow.com/questions/49382054/setting-a-light-navigation-bar-makes-it-invisible

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!