Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

华为荣耀V20 状态栏消失 #140

Open
timonRoom opened this issue Sep 27, 2020 · 5 comments
Open

华为荣耀V20 状态栏消失 #140

timonRoom opened this issue Sep 27, 2020 · 5 comments

Comments

@timonRoom
Copy link

显示图片后,返回原来页面,状态栏变成黑色 并且无内容显示
demo也是一样

@yanpengqing
Copy link

我也遇到这个问题 图片预览之后返回 原来的界面的状态栏消失了

@799837663
Copy link

需要重新设置一下状态栏

@yanpengqing
Copy link

需要重新设置一下状态栏

你好,能详细说下怎么处理吗?什么时候在哪里设置状态栏?

@799837663
Copy link

/**
 * 查看图片
 */
Transferee transferee;

public Transferee getTransferee() {
    if (transferee == null) {
        transferee = Transferee.getDefault(getActivity());
    }
    //调出图片查看器的之后,状态栏会改变成白色。监听查看器,关闭后恢复黑色状态栏
    transferee.setOnTransfereeStateChangeListener(new Transferee.OnTransfereeStateChangeListener() {
        @Override
        public void onShow() {

        }

        @Override
        public void onDismiss() {

//这个状态栏框架 * Github地址:https://github.com/Ye-Miao
StatusBarUtil.setColor(getActivity(), Color.parseColor("#ffffff"));
StatusBarUtil.setDarkMode(getActivity());
}
});
return transferee;
}

@799837663
Copy link

需要重新设置一下状态栏

你好,能详细说下怎么处理吗?什么时候在哪里设置状态栏?

/**
 * 查看图片
 */
Transferee transferee;

public Transferee getTransferee() {
    if (transferee == null) {
        transferee = Transferee.getDefault(getActivity());
    }
    //调出图片查看器的之后,状态栏会改变成白色。监听查看器,关闭后恢复黑色状态栏
    transferee.setOnTransfereeStateChangeListener(new Transferee.OnTransfereeStateChangeListener() {
        @Override
        public void onShow() {

        }

        @Override
        public void onDismiss() {
            StatusBarUtil.setColor(getActivity(), Color.parseColor("#ffffff"));
            StatusBarUtil.setDarkMode(getActivity());
        }
    });
    return transferee;
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants