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

布局浸入效果不对 #67

Open
weberlisper opened this issue Apr 12, 2022 · 0 comments
Open

布局浸入效果不对 #67

weberlisper opened this issue Apr 12, 2022 · 0 comments

Comments

@weberlisper
Copy link

如果我使用如下设置,并且根布局设置android:fitsSystemWindows="true",可以实现根布局浸入,但是子View会和根据statusbar设置了padding。

window?.statusBarColor = Color.TRANSPARENT
window?.decorView?.systemUiVisibility = View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN or View.SYSTEM_UI_FLAG_LAYOUT_STABLE

但是如果我使用库来设置,同时设置了根布局android:fitsSystemWindows="true",子View也会浸入到statusbar中,没有合适的padding,请问有什么办法可以解决吗?

statusBarOnly {
    transparent()
}
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