Android Status Bar Development

Source: Internet
Author: User

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:

    • Millet MIUI6

      Https://dev.mi.com/doc/p=4769/index.html

    • Meizu Flyme

      http://open-wiki.flyme.cn/index.php?title= status bar discoloration

Android Status Bar Development

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.