设置灯光导航栏使其不可见 [英] Setting a light navigation bar makes it invisible

查看:177
本文介绍了设置灯光导航栏使其不可见的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我将以下各项设置为具有浅色的导航栏:

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应用程序:

Gmail app showing the wanted result:

推荐答案

设置LightNavigationBar,意味着您的按钮将适合浅色主题(对于浅色背景,它们将为黑色)-但您可能需要更改导航栏背景.这是在您的活动中这样做的方法:

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

希望它会有所帮助:)

这篇关于设置灯光导航栏使其不可见的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆