-
I am trying to use **StatusBarUtil** to get grey words and white background effect in the statusbar.
The code I use is:
```
protected void setStatusBar() {
int color = getResources().getCo…
jhwsx updated
5 years ago
-
#### Project Information
* Repository---------------:[Here](https://github.com/Ye-Miao/StatusBarUtil)
* Project Name------------: [StatusBarUtil](https://github.com/Ye-Miao/StatusBarUtil/releases)…
-
1.5.1修改后怎么使用的?我是mainactivity+4fragment,里面有一个fragment顶部是图片。
由于状态栏底色是白的所以想把字体什么的设成黑色的。
使用:
StatusBarUtil.setTranslucentForImageViewInFragment(MainActivity.this, 0, null);
StatusBarUtil.setLightMode(…
-
`03-08 18:45:18.574 4474 4474 I zygote : Rejecting re-init on previously-failed class java.lang.Class: java.lang.NoClassDefFoundError: Failed resolution of: Landroid/view/View$OnUnhandledKeyEventLi…
-
我用了 StatusBarUtil.setTranslucentForImageViewInFragment这个,之后能不能再动态的去修改状态栏的颜色跟透明度,
效果就是图片延伸到状态栏,滑动recycleview的时候 动态的修改状态栏的颜色跟透明度
-
StatusBarUtil.setTranslucentForDrawerLayout,同时android:fitsSystemWindows="true",toolbar会上移一部分,会被状态栏挡住
-
显示图片后,返回原来页面,状态栏变成黑色 并且无内容显示
demo也是一样
-
-
自己踩的坑,贴出来给需要的兄弟参考
一般配合BGASwipeBackLayout 我们会使用这个方法设置statusbar颜色
```
public void setStatusBarColor(@ColorInt int color, @IntRange(from = 0, to = 255) int statusBarAlpha) {
StatusBarUtil.…
ghost updated
6 years ago
-
大大,你好!
1.下载的 demo 中 Set For ImageView 没问题,状态栏透明。
2.在自己项目中,完全按照 demo sample 中代码操作。
外层LinearLayout,里面 ImageView,下面LinearLayout,然后在 Activity中调用StatusBarUtil.setTransparentForImageView(this, mViewNee…