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
winlee28 opened this issue Dec 6, 2017 · 1 comment
Open

虚拟导航栏问题 #3

winlee28 opened this issue Dec 6, 2017 · 1 comment

Comments

@winlee28
Copy link

winlee28 commented Dec 6, 2017

//当系统版本为4.4或者4.4以上时可以使用沉浸式状态栏
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) {
//透明状态栏
getWindow().addFlags(WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS);
//透明导航栏
// getWindow().addFlags(WindowManager.LayoutParams.FLAG_TRANSLUCENT_NAVIGATION);
}

注释 getWindow().addFlags(WindowManager.LayoutParams.FLAG_TRANSLUCENT_NAVIGATION); 这行代码 否则 虚拟导航栏会覆盖应用 导致部分功能被遮挡 无法使用

@guzhigang001
Copy link
Owner

嗯嗯,问题解决就好,提的不错,后面的人再做的时候也可以快速解决问题

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

2 participants