laobie / StatusBarUtil

A util for setting status bar style on Android App.
http://t.cn/Rq746Kb
Apache License 2.0
8.82k stars 1.72k forks source link

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

Open cymok opened 6 years ago

cymok commented 6 years ago

我们需求特别变态

cymok commented 6 years ago

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

laobie commented 6 years ago

你可以试试 setTransparentForImageView()

xtf115 commented 6 years ago

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

LiqiNew commented 5 years ago

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

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

LiqiNew commented 5 years ago

你可以试试 setTransparentForImageView()

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

AttITuder commented 5 years ago

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

penglei60 commented 4 years ago

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