gyf-dev / gyf-dev/ImmersionBar
大佬 华为mate30 用statusBarView 失效
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 11.5k
- Forks
- 1.9k
- PR merge metrics
- No merged PRs in 30d
Description
同样的写法在华为畅享70 鸿蒙3.0版本的状态栏就没有问题。
华为的华为mate30,鸿蒙4.2版本状态栏就重叠了
代码:
protected void initImmersion() {
View v_state = findViewById(R.id.v_state);
//在BaseActivity里初始化
mImmersionBar = ImmersionBar.with(this)
.statusBarDarkFont(true) //默认状态栏字体颜色为黑色
.keyboardEnable(false, WindowManager.LayoutParams.SOFT_INPUT_STATE_HIDDEN
| WindowManager.LayoutParams.SOFT_INPUT_ADJUST_PAN);
mImmersionBar.statusBarView(v_state);
mImmersionBar.init();
}
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 from the reported initImmersion method and the statusBarView(v_state) path, then reproduce the overlap on Huawei Mate 30 with HarmonyOS 4.2 and compare it with Huawei Enjoy 70 on HarmonyOS 3.0. Done means the status bar no longer overlaps on the Mate 30 while the existing working behavior remains intact.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, java
- Domain
- mobile-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100