Giter VIP home page Giter VIP logo

Comments (8)

Zackratos avatar Zackratos commented on June 7, 2024

什么手机,用的哪个版本

from ultimatebarx.

yyj001 avatar yyj001 commented on June 7, 2024

一加7 pro, 刚刚换了0.7.1版本,试了一下还是有遮罩

from ultimatebarx.

yyj001 avatar yyj001 commented on June 7, 2024

UltimateBarX.statusBar(this) .transparent() .color(Color.TRANSPARENT) .colorRes(Color.TRANSPARENT) .light(true) .apply()

from ultimatebarx.

Zackratos avatar Zackratos commented on June 7, 2024

这个跟 issues5 应该不是同一个问题, issues5 说的是导航栏有遮罩,而你的是状态栏,我感觉应该是你用了其他的状态栏的库的方法或者是代码里加了

window.addFlags(WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS)

上面的代码在 Android 5.0 以上会导致状态栏有遮罩

from ultimatebarx.

Zackratos avatar Zackratos commented on June 7, 2024

issues5 的遮罩是 Android 10 以上才有的,你也可以换个低版本的手机看一下是不是还有遮罩,如果还有,就说明不是同一个问题

from ultimatebarx.

yyj001 avatar yyj001 commented on June 7, 2024

Android 8的手机上测没有遮罩😂,我可以再研究一下

from ultimatebarx.

yyj001 avatar yyj001 commented on June 7, 2024

问题是由于在style添加了 <item name="android:windowTranslucentStatus">true</item> 引起

from ultimatebarx.

Zackratos avatar Zackratos commented on June 7, 2024

问题是由于在style添加了 <item name="android:windowTranslucentStatus">true</item> 引起

不应该啊,我会重新给他设为 false,我再看一样

from ultimatebarx.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.