gyf-dev / gyf-dev/ImmersionBar
Android11在3.2.2版本中隐藏导航栏存在的问题
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 11.5k
- Forks
- 1.9k
- PR merge metrics
- No merged PRs in 30d
Description
Android11,虚拟导航栏
在3.2.2版本中
activity隐藏导航栏后通过
getWindow().setBackgroundDrawable(new ColorDrawable(color))
设置背景颜色后
手动上滑手机底部显示虚拟导航栏,导航栏取消隐藏并将布局往上顶,会出现虚拟导航栏部分背景黑色与设置颜色不同
Android11在3.0.0版本中无此问题
Android12在3.2.2版本中也无此问题
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 this on Android 11 with version 3.2.2: hide the navigation bar, set the activity background with getWindow().setBackgroundDrawable(new ColorDrawable(color)), then swipe up from the bottom. Compare the behavior with version 3.0.0 and Android 12; the issue is done when the navigation bar background matches the configured color and no incorrect layout shift remains.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, java
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100