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

刘海屏获取状态栏高度问题 #258

Closed
4 tasks done
simplezhli opened this issue Apr 28, 2018 · 1 comment
Closed
4 tasks done

刘海屏获取状态栏高度问题 #258

simplezhli opened this issue Apr 28, 2018 · 1 comment

Comments

@simplezhli
Copy link

simplezhli commented Apr 28, 2018

运行环境

  • 设备型号:如:模拟器
  • 设备系统版本:如 Android 9.0
  • Gradle 版本:如 3.0.1
  • QMUI Android 版本:1.1.1

具体问题描述

在9.0的模拟器下,我将刘海设置出来后。使用getStatusbarHeight获取状态栏高度错误。查看源码发现在initStatusBarHeight方法有判断如果获取的状态高度大于2倍25dp的话,则返回默认高度的25dp。(刘海屏手机状态栏高度普遍大于2倍,且没有统一规范。)建议暂时去除该判断。

@cgspine
Copy link
Collaborator

cgspine commented May 3, 2018

我暂时去掉了。不过适配刘海屏推荐还是用 fitSystemWindows 那一套。

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

No branches or pull requests

2 participants