laobie / StatusBarUtil

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

播放器全屏播放时无法隐藏status bar #91

Closed coofeeing closed 7 years ago

coofeeing commented 7 years ago

播放器全屏播放时无法隐藏status bar,可不可以提供个方法,隐藏呢?

laobie commented 7 years ago

这个应该是全屏或者添加一些 Flag 去实现的

coofeeing commented 7 years ago

已经设置了flag,标题栏已经隐藏,但是顶部还有个”条”不能隐藏

coofeeing commented 7 years ago

我使用的是setColorForDrawerLayout这个方法,使用其他方法则没这个问题

laobie commented 7 years ago

能截个图不?

laobie commented 7 years ago

直接复制 这里粘贴就行,或者外链 markdown 图片写法

laobie commented 7 years ago

image

laobie commented 7 years ago

@gdmec07140541

  1. 那个多出来的彩色条隐藏的可以加上
  2. 至于你说的向上滑动不出现应该不是这个库导致的
Xiaohy61 commented 7 years ago

那个色彩怎么隐藏的,那个滑动我去掉这个库就没那个问题了

laobie commented 7 years ago

@gdmec07140541 那个隐藏等我加上方法,滑动的可能是你用的 support 包版本和我库中的不一致导致的 我用的比较新,你自己排查下

Xiaohy61 commented 7 years ago

好的,谢谢

laobie commented 7 years ago

@gdmec07140541 你是什么手机,系统版本多少呢,用的哪个方法?

Xiaohy61 commented 7 years ago

酷派大神2,android4.4,用的是 StatusBarUtil.setColor(this, color, statusBarAlpha);这方法

laobie commented 7 years ago

@gdmec07140541 @coofeeing

1.3.5 新增 hideFakeStatusBarView 方法,测试反馈下效果

Xiaohy61 commented 7 years ago

完美解决

laobie commented 7 years ago

@gdmec07140541 image

coofeeing commented 7 years ago

使用hideFakeStatusBarView 这个方法应该可以解决,我试试~

laobie commented 7 years ago

@coofeeing 测试可以了告诉我下

coofeeing commented 7 years ago

@laobie 好的!