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

通过StatusBarUtil.setColor无法设置成白色,会显示成深灰色 #220

Closed Leu-Z closed 6 years ago

Leu-Z commented 6 years ago

通过StatusBarUtil.setColor无法设置成白色,会显示成深灰色

1595901624 commented 6 years ago

将透明度设为0

Leu-Z commented 6 years ago

设置成#00FFFFFF,还是灰色的

1595901624 commented 6 years ago

tatusBarUtil.setColor(context, 颜色,0);

Leu-Z commented 6 years ago

谢谢你,可以了, 没仔细看源码

AndMy commented 6 years ago

设置白色后,状态栏字体怎么变暗色

AndMy commented 6 years ago

看到了

1595901624 commented 6 years ago

客气,共同进步 @Leu-Z

thsai commented 6 years ago

请问一下 我设置StatusBarUtil.setColor(this, getResources().getColor(R.color.white), 0);后状态栏是变成白色了 但是字体就看不清了 我接着调 StatusBarUtil.setLightMode(this); 字体是变白了 但是布局延伸到状态栏上去了。。。。你们没有碰到这种情况吗

laobie commented 6 years ago

设置 fitSystemWindow = true