In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
This article mainly explains "what is the implementation process of Android immersive status bar". Interested friends may wish to take a look. The method introduced in this paper is simple, fast and practical. Next let the editor to take you to learn "Android immersive status bar implementation process is how" it!
Android- immersive status bar
Our journey is the stars and the sea, not the dust on earth.
Remove the title bar
First of all, remove the ActionBar that comes with Android under the corresponding topic, and just add NoActionBar under the corresponding topic.
Effect.
Introduce dependent implementation 'com.jaeger.statusbarutil:library:1.5.1' immersion status bar color
Immersive status bar, can not only achieve color immersion, but also can achieve picture immersion.
The state of color immersion is not set:
Logic code:
StatusBarUtil.setColor (MainActivity.this,getResources () .getColor (R.color.teal_200), 0)
Layout file
Immersion status bar picture
The effect before immersion
The effect after immersion
Layout code
Put the picture to be immersed in the ImageView component
The other components are placed in a layout
Replace with a setTransparentForImageView method
Logic code
StatusBarUtil.setTransparentForImageView (this,findViewById (R.id.constraintLayout))
StatusBarUtil official website
At this point, I believe that everyone on the "Android immersive status bar implementation process is how" have a deeper understanding, might as well to the actual operation of it! Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.