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

当状态栏隐藏了,标题栏显示的不正确 #3

Open
skyfouk opened this issue Jan 24, 2019 · 0 comments
Open

当状态栏隐藏了,标题栏显示的不正确 #3

skyfouk opened this issue Jan 24, 2019 · 0 comments

Comments

@skyfouk
Copy link

skyfouk commented Jan 24, 2019

当activity设置状态栏隐藏,会导致标题栏顶部空出来一部分高度,高度恰好是状态栏高度。
设置状态栏隐藏代码:
mRootView.setSystemUiVisibility(View.SYSTEM_UI_FLAG_LOW_PROFILE
| View.SYSTEM_UI_FLAG_FULLSCREEN
| View.SYSTEM_UI_FLAG_LAYOUT_STABLE
| View.SYSTEM_UI_FLAG_IMMERSIVE_STICKY
| View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION
| View.SYSTEM_UI_FLAG_HIDE_NAVIGATION);

建议:增加隐藏状态栏公共方法,设置当前mStatusBarHeight为0.

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