StatusBarUtil icon indicating copy to clipboard operation
StatusBarUtil copied to clipboard

状态栏透明,底部导航栏黑色,该如何实现

Open cymok opened this issue 7 years ago • 7 comments

我们需求特别变态

cymok avatar Jan 27 '18 09:01 cymok

使用了StatusBarUtil.setTransparent(this);之后 设置这个不起作用activity.getWindow().setNavigationBarColor(color)请问如何才能令这个起作用

cymok avatar Jan 27 '18 11:01 cymok

你可以试试 setTransparentForImageView()

laobie avatar Jan 27 '18 15:01 laobie

试试这样: StatusBarUtil.setColor(activity, ContextCompat.getColor(activity, R.color.transparent), 0);

xtf115 avatar May 09 '18 11:05 xtf115

使用了StatusBarUtil.setTransparent(this);之后 设置这个不起作用activity.getWindow().setNavigationBarColor(color)请问如何才能令这个起作用

如果设置activity.getWindow().setNavigationBarColor(color)没有起作用。是不是你的targetSdkVersion<23。我尝试过在>22以上设置是可以起作用的。

LiqiNew avatar Sep 25 '18 09:09 LiqiNew

你可以试试 setTransparentForImageView()

你好!作者。请问你这个框架可以设置底部导航栏的颜色值吗?不受targetSdkVersion约束。

LiqiNew avatar Sep 25 '18 09:09 LiqiNew

StatusBarUtil.setColorNoTranslucent(activity,getResources().getColor(R.color.transparent));

AttITuder avatar Jun 05 '19 06:06 AttITuder

我的项目中也有这个需求,请问各位都解决了吗?可以方便说一下解决方法吗?

penglei60 avatar Jun 05 '20 06:06 penglei60