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

顶部的toolbar栏上移覆盖掉状态栏了?? #171

Open
oscartorres9 opened this issue Aug 15, 2019 · 0 comments
Open

顶部的toolbar栏上移覆盖掉状态栏了?? #171

oscartorres9 opened this issue Aug 15, 2019 · 0 comments

Comments

@oscartorres9
Copy link

页面A,不透明的顶级页面
页面B,从A打开的子页面
页面C,从B打开的子页面
问题描述:
1、页面A执行状态栏颜色设置 setStatusBarColor(resources.getColor(R.color.colorPrimary,null),0)
2、页面B、C不做任何执行状态栏颜色设置
结果:页面B、C的顶部toolbar栏上移覆盖掉状态栏了,非常怪异

另一种操作方法:
1、页面A执行状态栏颜色设置 setStatusBarColor(resources.getColor(R.color.colorPrimary,null),0)
2、页面B、C不做也执行状态栏颜色设置 setStatusBarColor(resources.getColor(R.color.colorPrimary,null),0)
结果:页面B、C的顶部toolbar栏没有上移覆盖掉状态栏了,但是滑动返回关闭页面的时候,状态栏有没有办法一起滑动,还是很怪异

想要的效果是:页面B、C的状态栏不被覆盖,滑动返回的时候,他们的状态栏也一起滑动
有人可以解答一下吗,纠结好久了。。。

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