-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Fragment中有图片,想要设置沉浸状态栏的颜色为黑色 #255
Comments
同样遇到了这个问题 请问你怎么解决的 |
StatusBarUtil.setLightMode(this);该方法里少了个View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN flag, |
|
1.5.1修改后怎么使用的?我是mainactivity+4fragment,里面有一个fragment顶部是图片。
由于状态栏底色是白的所以想把字体什么的设成黑色的。
使用:
StatusBarUtil.setTranslucentForImageViewInFragment(MainActivity.this, 0, null);
StatusBarUtil.setLightMode(this);
但是没有效果,状态栏的字体是黑的,但是沉浸式效果不见了。
The text was updated successfully, but these errors were encountered: