Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

华为状态栏颜色改不了,而且很难看的那种 #27

Closed
superzhangbao opened this issue Jul 7, 2017 · 1 comment
Closed

华为状态栏颜色改不了,而且很难看的那种 #27

superzhangbao opened this issue Jul 7, 2017 · 1 comment
Labels

Comments

@superzhangbao
Copy link

你好,我的项目里是toolbar是白色,所以状态栏也是白色,那我就加了一个改状态栏字体颜色为暗色的那个api,小米,魅族都可以,就是华为手机在状态栏那里的效果是灰白的,很难看.请问如何让解决

@gyf-dev
Copy link
Owner

gyf-dev commented Jul 7, 2017

@superzhangbao 6.0以下设备,除了miui和flyme之外,无法修改状态栏字体颜色,因为他们都没有开放相关api提供修改,该方法statusBarDarkFont(true, 0.2f)的意思是,如果当前设备不支持修改状态栏字体为黑色,就会加透明度,以防白色状态栏和状态栏字体颜色相同,导致字体看不清

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants