It's been a long time since I wrote 、、、 or a note. Do a note on the various processing of the Android mobile app status bar.
Scene One: Need to do full screen, do not see the phone status bar information (phone charge, signal, etc.)
This kind of demand generally uses the more place is the app Splash, welcome launches the page. At this point, you have to write a style like this:
You can then choose one of the following options:
Scene Two: Need full screen, but display status bar phone battery, cell phone signal and other information. The effect is as follows:
Since the market is now mostly down to 19, it is not considered too low, so this is achieved as follows:
Also, don't forget to configure the Noactionbar style in Androimanifest.xml.
Scenario Three: the title bar matches the status bar color. At this point, you need to configure the following in the style:
We can see this way of dealing with some business scenarios, but what if it doesn't work on a phone that's less than 21 versions? Then you need to do the following:
It will then become the following style:
Scene Four: Need to change the status bar text color, battery icon color.
It is important to note that currently only Android native 6.0 or above supports modifying the status bar font.
In addition to this domestic manufacturers Xiaomi, Meizu also opened the way to modify the status bar font:
Android Status Bar Development