Skip to content

大佬 华为mate30 用statusBarView 失效 #582

@lxhtiamo

Description

@lxhtiamo

同样的写法在华为畅享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();
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions