gyf-dev / gyf-dev/ImmersionBar
Pixel 5 沉浸式的兼容有问题
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 11.5k
- Forks
- 1.9k
- PR merge metrics
- No merged PRs in 30d
Description


如图,Demo跑起来之后顶部的bar适配有问题。
我们的项目用的ViewPager2+Fragment的方式写的主页,顶部的沉浸式在 Pixel 5 上适配也有问题。
通过各种api获取的高度也不准。
换成在布局里写 fitsSystemWindows=true 则会遇到第一tab有沉浸式,后面几个tab不会触发fitsSystemWindows的问题。
很奇怪的是,我们有3部同一型号的 Pixel 5 手机,最新版系统的两个都有这个问题,剩下一台root后的手机没这个问题。
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
Start with the reported Demo and the ViewPager2+Fragment home-page setup, then reproduce the immersive top-bar behavior on Pixel 5 devices. Compare system-height APIs with fitsSystemWindows across the first and later tabs; done means the top bar is correctly adapted on every tab.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100