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

Android 9 以上要透明导航栏无解吗? #5

Closed
leanderli opened this issue Sep 28, 2020 · 8 comments
Closed

Android 9 以上要透明导航栏无解吗? #5

leanderli opened this issue Sep 28, 2020 · 8 comments

Comments

@leanderli
Copy link

我试了你的方法,跟我配置还是一样,导航栏始终无法透明,android 9/10/11 都是

@Zackratos
Copy link
Owner

具体的手机型号呢

@leanderli
Copy link
Author

具体的手机型号呢

Android Q Android Studio模拟器,我自己的三星S10也是。不知道是不是我自己设置的window flag哪里有影响 我先再单独测试测试

@Zackratos
Copy link
Owner

你是怎么调用的,代码发出来我看一下

@leanderli
Copy link
Author

你是怎么调用的,代码发出来我看一下

QQ截图20200930170222

@Zackratos
Copy link
Owner

好像确实无解,我试了一下,新版的系统都会有灰色的遮罩

@Attect
Copy link

Attect commented Feb 23, 2021

styles或themes中设置

<item name="android:enforceStatusBarContrast" tools:targetApi="q">false</item>
<item name="android:enforceNavigationBarContrast" tools:targetApi="q">false</item>

@Zackratos
Copy link
Owner

styles或themes中设置

<item name="android:enforceStatusBarContrast" tools:targetApi="q">false</item>
<item name="android:enforceNavigationBarContrast" tools:targetApi="q">false</item>

厉害了,亲测有效,下个版本修复这个问题

@Zackratos
Copy link
Owner

@leanderli 问题解决,尝试一下最新版本

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

3 participants