gyf-dev / gyf-dev/ImmersionBar
状态栏高度问题
Open
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 11.5k
- Forks
- 1.9k
- PR merge metrics
- No merged PRs in 30d
Description
机型:Google Pixel3 XL
系统:Android Q
使用版本:项目中用的是2.3.3,但实际我运行demo的代码也是有问题的。
场景:开发者选项中选择隐藏刘海屏,其计算的高度不正确。实测demo中,方法一和方法二是没问题的,其余的都是有问题的。 我们目前项目里使用的是方法三。

Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the demo on a Google Pixel 3 XL running Android Q with the display option set to hide the notch. Compare the height results from methods one through three, then inspect the status-bar height calculation used by method three. Done means the calculated height is correct in this configuration and matches the known-good methods.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100