Giter VIP home page Giter VIP logo

Comments (11)

Zackratos avatar Zackratos commented on May 27, 2024

你的代码就是设置导航栏啊,如果要设置状态栏,你应该使用 UltimateBarX.STATUS_BAR

from ultimatebarx.

flyskys avatar flyskys commented on May 27, 2024

我的意思是我只设置状态栏代码,导航栏也会出现,我为了不让出现,让导航栏透明化,这才看不出来。华为nova6安卓10

from ultimatebarx.

Zackratos avatar Zackratos commented on May 27, 2024

可以上截图吗,把设置前和设置后的截图都放出来

from ultimatebarx.

flyskys avatar flyskys commented on May 27, 2024

image
image
就写了设置状态栏,下面黑色就是导航栏

from ultimatebarx.

Zackratos avatar Zackratos commented on May 27, 2024

这个应该是判断导航栏是否存在的方法有错,感谢反馈,改天我找个华为手机调试一下

from ultimatebarx.

flyskys avatar flyskys commented on May 27, 2024

好的,我能力有限只能看懂java的,要不我就改了。

from ultimatebarx.

Zackratos avatar Zackratos commented on May 27, 2024

koltin 其实挺简单的,也是趋势,可以学习一下
判断导航栏是否存在的方法在 Activity.kt 里面的 navigationBarExist 方法,欢迎提 pr

from ultimatebarx.

samgsmg avatar samgsmg commented on May 27, 2024

navigationBarExist 这个方法,对穿孔屏不适用。
三星Note10 + 上
realDisplayMetrics.heightPixels=3040
displayMetrics.heightPixels=2927
差的高度是statusBar的高度 (竖屏时)
横屏时 realDisplayMetrics.widthPixels=3040
displayMetrics.widthPixels=2927
statusBar高度又是 90.
在三星上手机设置用手势导航时 getNavigatorBarHeight =0 ,
其实也是设置了高度为0的 NavigationBar View.

在华为手机上
穿空屏 realDisplayMetrics.heightPixels=2280
displayMetrics.heightPixels=2190
statusBarHeight=89
设置手势导航 系统不显示导航栏,但getNavigationBarHeight !=0 是实际navigationBar的高度
所以会出现不设置navigatorBar下边还是有一块黑色区域问题。

另外,定制navigationBar时,总是在屏幕下方显示定制的navigationBar ,但在手机横屏时,系统的导航栏位置不会放在屏幕的底部(跟竖屏时位置一样).
所以,创建navigationBarView的方法会有些问题。

from ultimatebarx.

flyskys avatar flyskys commented on May 27, 2024

from ultimatebarx.

flyskys avatar flyskys commented on May 27, 2024

from ultimatebarx.

Zackratos avatar Zackratos commented on May 27, 2024

感谢大家的反馈,最新的 0.2.3 版本已经解决了全面屏手机误出导航栏的问题,欢迎升级体验
@flyskys @samgsmg

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.