liangjingkanji / statusbar Goto Github PK
View Code? Open in Web Editor NEW[开发必备] Android一行代码配置透明状态栏
Home Page: http://liangjingkanji.github.io/StatusBar/
License: MIT License
[开发必备] Android一行代码配置透明状态栏
Home Page: http://liangjingkanji.github.io/StatusBar/
License: MIT License
requireActivity(). immersive(Color.TRANSPARENT, true)
可见的第一个 fragment设置状态栏颜色为透明, 失效,需要来回切换才生效
我想让状态栏透明,文字黑色,在toolbar上方时候是和toolbar背景色一致的,当toolbar折叠的时候只能看到状态栏的文字,toolbar隐藏,就是我原来做的下面视频中的效果,但是是用的window.addFlags(WindowManager.LayoutParams.FLAG_LAYOUT_NO_LIMITS)还要给toolbar写死顶部边距,用了你的库之后会是后面两张图上的效果,第一个就只是设置了immersive(toolbar),第二个是另外设置了android:statusBarColor和android:windowLightStatusBar的🤔
https://user-images.githubusercontent.com/54784104/148235284-f9af4112-b7b3-4da8-96ff-26e5d9f44a7b.mp4
一般在MainActivity+BottomNavigationView+Fragment的页面结构中,假如首页Fragment的状态栏是白色,我的Fragment中状态栏是渐变色,那么如何在Fragment中使用?
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.