Comments (8)
我自己Fork 0.6.1 了一下,然后把设置状态栏部分代码里所有相关默认设置虚拟工具栏的代码注释掉的话就正常了
from ultimatebarx.
Activity 的底部会被遮盖吗
from ultimatebarx.
不会
from ultimatebarx.
可以把你的 demo 放在你 fork 的项目里面吗,我看一下
from ultimatebarx.
我开了一个Demo UxDemo
from ultimatebarx.
找到原因了,因为我给 Activity
的 contentView
设置了 bottomPadding
,高度为导航栏的高度,然后 BasePopup 在底部弹出 PopupWindow
的时候,就是以 contentView
为基准的,所以就出现了你看到的问题,理论上来说,可以通过把 bottomPadding
改为 bottomMargin
或者把 contentView
改为 decorView
的方法来解决,但是如果为了解决跟其他框架的冲突而修改原来的逻辑不太合适,我再想一下有没有其他的方法解决这个问题吧
from ultimatebarx.
好的,谢谢大神解答
from ultimatebarx.
@op123355569 如果你只需要设置状态栏而不需要设置导航栏的话,更新到 0.8.0 版本,使用 statusBarOnly
方法替换 statusBar
方法可以彻底解决这个问题
出现这个问题的原因可以看 issues44 里面我的解释
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.