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

结合ImmersionBar设置透明沉浸式状态栏,侧滑返回过程中即将显示的页面状态栏变成白色 #175

Open
Ximano opened this issue Jan 4, 2019 · 0 comments

Comments

@Ximano
Copy link

Ximano commented Jan 4, 2019

ImmersionBar.setTitleBar(this, common_toolbar)这种方法自定义的透明状态栏,(目的是:透明titleBar下层设置RealtimeBlurView实现毛玻璃效果),侧滑返回过程中,titlebar和statusBar都为白,效果特别不好。我尝试在activity生命周期中onResume方法中动态的改变titleBar的颜色避免这种情况,但是效果很是不好。
目前思路是:在滑动返回结束的回调中,获取当前任务栈中最新的activity,然后改变他的titleBar的颜色,但是这个方法调用之后override fun onSwipeBackLayoutExecuted() {mSwipeBackHelper?.swipeBackward(),当前ac还是在栈顶,还在想办法中。大佬看有什么办法不?非常感谢~

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

1 participant