"Systemui" Modify the drop-down status bar color

Source: Internet
Author: User

You need to change the background color of the drop-down status bar.
In this area of code path Frameworks/base/packages/systemui

The ID of the control can be obtained through ANDROIDSDK's own tool uiautomatorviewer

The ID of the top status bar is header
Looking for a control with the header ID in Frameworks/base/packages/systemui

Defined in the Status_bar_expanded_header.xml file under the Res/layout folder

A custom control that inherits from Relativelayout, background to the Drawable folder.
NOTIFICATION_HEADER_BG, this file implements the effect of water ripple, the root node is ripple

Color for long, timely water ripple
The System_secondary_color in item is a separate color,


The color matches the original color, so modifying the color of the system_second_color can change the color of the top status bar, and when there are no subnodes under ripple, it becomes transparent, and the color defined in color appears when you click on a long time

Modify the color you want to define


The top color is modified

The Quick Settings area below
ID is Quick_settings_container
There are definitions in the Res/layout/qs_panel.xml file

The color of the Qspanel is set to full transparency, so the background color of Qscontainer is displayed.
View Qs_background_primary

Inset the distance from the image to the top of the embedded image resource Insettop
Shape defines the color and the degree of Four Corners

Make changes to System_primary_color
E5 represents transparency by hexadecimal calculation of 90% of the value of transparency, FF is opaque
Comparison of modified results

"Systemui" Modify the drop-down status bar color

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.