Comments (11)
你的代码就是设置导航栏啊,如果要设置状态栏,你应该使用 UltimateBarX.STATUS_BAR
from ultimatebarx.
我的意思是我只设置状态栏代码,导航栏也会出现,我为了不让出现,让导航栏透明化,这才看不出来。华为nova6安卓10
from ultimatebarx.
可以上截图吗,把设置前和设置后的截图都放出来
from ultimatebarx.
from ultimatebarx.
这个应该是判断导航栏是否存在的方法有错,感谢反馈,改天我找个华为手机调试一下
from ultimatebarx.
好的,我能力有限只能看懂java的,要不我就改了。
from ultimatebarx.
koltin 其实挺简单的,也是趋势,可以学习一下
判断导航栏是否存在的方法在 Activity.kt 里面的 navigationBarExist
方法,欢迎提 pr
from ultimatebarx.
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.
from ultimatebarx.
from ultimatebarx.
感谢大家的反馈,最新的 0.2.3 版本已经解决了全面屏手机误出导航栏的问题,欢迎升级体验
@flyskys @samgsmg
from ultimatebarx.
Related Issues (20)
- 0.7.1版本引用失败?
- #
- kotlin.UninitializedPropertyAccessException
- 更新依赖androidx.appcompat:appcompat至1.3.0及以上会出现Fragment显示为空白
- 偶现崩溃 lateinit property context has not been initialized HOT 7
- 状态栏灰色背景怎么去掉? HOT 1
- 只能在onCreateVIew 生命周期之后使用?
- k40 pro miui 12.5.8 新增隐藏手势线标识,如下方法不能完全判断是否开启了手势提示线 HOT 1
- 请问支持flutter吗 HOT 2
- 有没有办法实现Android5.0的状态栏的深色文字图标呢?
- 在github直接搜索状态栏,找不到我们这个库啊,这是什么操作,老哥
- 多进程初始化崩溃 HOT 2
- 布局浸入效果不对
- 沉浸式状态栏,偶现底部多了一块空白区域 HOT 4
- bug: ViewPager2+Fragment不能及时更新状态栏字体颜色
- 无法隐藏导航栏
- 横屏导航栏位置问题
- java完全支持吗
- 是不维护了吗
- anr报错
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ultimatebarx.