-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
device.height和device.width获取问题 #1246
Comments
遇到同样问题。 |
红米K70 同样问题 |
oppo 也是同样问题 |
This works for me console.log(Packages.android.content.res.Resources.getSystem().getDisplayMetrics().widthPixels);
console.log(Packages.android.content.res.Resources.getSystem().getDisplayMetrics().heightPixels); 可以在
|
红米K70设备实际32001440,这段代码多次测试均为30801440。 |
用获取屏幕截图权限,截图后读图片宽高临时用着 |
感谢反馈,此bug将于下个版本修复 #1250 |
7.03就一样问题 |
这可能是状态栏高度没有计算进去 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
device.width,device.height获取为0,旧版本6.6.5可以正常获取
The text was updated successfully, but these errors were encountered: