We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
模拟器
Android 9.0
3.0.1
1.1.1
在9.0的模拟器下,我将刘海设置出来后。使用getStatusbarHeight获取状态栏高度错误。查看源码发现在initStatusBarHeight方法有判断如果获取的状态高度大于2倍25dp的话,则返回默认高度的25dp。(刘海屏手机状态栏高度普遍大于2倍,且没有统一规范。)建议暂时去除该判断。
The text was updated successfully, but these errors were encountered:
remove the 50dp limit while calling getStatusbarHeight(Context). #258
3107098
我暂时去掉了。不过适配刘海屏推荐还是用 fitSystemWindows 那一套。
Sorry, something went wrong.
No branches or pull requests
运行环境
模拟器
Android 9.0
3.0.1
1.1.1
具体问题描述
在9.0的模拟器下,我将刘海设置出来后。使用getStatusbarHeight获取状态栏高度错误。查看源码发现在initStatusBarHeight方法有判断如果获取的状态高度大于2倍25dp的话,则返回默认高度的25dp。(刘海屏手机状态栏高度普遍大于2倍,且没有统一规范。)建议暂时去除该判断。
The text was updated successfully, but these errors were encountered: