此项目已停止维护
不要再 star 了!
不要再 star 了!
不要再 star 了!
请使用我的新项目
🔥🔥🔥UltimateBarX🔥🔥🔥
状态栏和导航栏彻底解藕,功能更强大
[停止维护]Transparent statusbar and navigationbar
Home Page: https://www.jianshu.com/p/3324428e6fc8
License: Apache License 2.0
此项目已停止维护
不要再 star 了!
不要再 star 了!
不要再 star 了!
请使用我的新项目
🔥🔥🔥UltimateBarX🔥🔥🔥
状态栏和导航栏彻底解藕,功能更强大
我想实现的效果是沉浸状态栏,不应用到导航栏,让布局在虚拟按键上方显示。我使用
UltimateBar.Companion.with(this) .applyNavigation(false) // 是否应用到导航栏 .create() .immersionBar()
运行后虚拟按键挡住了布局。
如题
状态栏和虚拟键盘是白色的
状态栏设置为白色时字体颜色也是白色,看不到状态栏的文字,可以加个设置状态栏深色字体的属性
请问加了toolbar的话 怎么适配呢 按照你文档说的 设置全透明的话 toolbar就被定上去了
如题,在加入fitsSystemWindows=true以后,沉浸式导航栏又失效。
比如有些应用首页顶部因为有广告banner 状态栏需要全透明,但是导航栏不需要,您的这个好像只能一起配置
项目没用到kotlin,就不能用?
这个工具类好像不支持fragment里图片沉浸式
现在耦合在一起
Hi, Thanks for your great library.
I have one trouble when use your library.
I want to hide the status bar and navigation bar at first.(works great now)
Second, The app user can expand them by dragging from the edge of screen, at this time, I want to make the status bar and navigation bar which have transparent background and transparent foreground, so that I can make the user do not realize the status bar and navigation bar even though it expanded.
I used your code for hiding status bar and navigation bar.
But It did not have transparent background(have grey transparent background and white foreground) and I could not change them.
I was testing using Android 8.0.1/tablet(landscape)
Hope to get your kind reply.
Thanks.
Can this lib support landscape?
如题......
It doesn't change color when we work with DataBining:
DataBindingUtil.setContentView(this@Activity, R.layout.activity)
UltimateBar.newImmersionBuilder(),pro7无效果
状态栏为白色时,如何改变状态栏字体颜色为黑色
楼主还在维护吗?我有个应用使用了 android:Theme.Holo 的主题,用了楼主的库,设置导航栏全透明,但效果是半透明的。折腾了挺久,也不能使 android:Theme.Holo 主题的Activity为全透明导航栏。楼主可以给个建议吗?
在一个有导航和状态栏的手机上,需求是将状态栏的文字设为黑色,但当我调用工具让文字变黑后
UltimateBar.Companion.with(getActivity())
.statusDark(true)// 状态栏灰色模式(Android 6.0+),默认 flase
.create()
.transparentBar();
发现导航栏的背景变黑了,我查找后发现核心方法 setBar 对导航栏的默认处理是 window.navigationBarColor = Color.BLACK。
现在只能重写这个类来解决了。
小米9会自动根据背景色决定导航栏的颜色,所以就出现了这个问题。
这个工具很好用,建议当使用者不调用导航栏方法时,不对导航栏做任何处理。
场景: 横屏视频播放时候 点击显示沉浸式透明状态栏 再次点击 隐藏所有
在隐藏/显示 切换时候 再次显示 状态栏消失了
5.0 6.0 试过没出现过
我在BaseActivity中统一使用
UltimateBar.Companion.with(this) .statusDrawable(drawableBar) // Android 6.0 以下状态栏灰色模式时状态栏颜色 .statusDrawable2(drawableBar) .statusDark(true) // 状态栏灰色模式(Android 6.0+),默认 flase .applyNavigation(true) // 应用到导航栏,默认 flase .navigationDrawable(drawableBar) // Android 8.0 以下导航栏灰色模式时导航栏颜色 .navigationDrawable2(drawableBar) .navigationDark(true) // 导航栏灰色模式(Android 8.0+),默认 false .create() .drawableBar();
DrawableBar 为白色背景,在6.0以下如何将图标和字体变为灰色,否则看不见啊,6.0以上则没这个问题,
对于含有DrawaLayout的 为什么DecorView添加状态栏和导航栏的时候要addView(View,index)
需要在每个activity中的xml配置,比较繁琐,不加的标题栏就会顶上去,能否有方法不加?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.