Android status bar customization and status bar Image Sequence Modification

Source: Internet
Author: User

Http://blog.csdn.net/litton_van/article/details/6311900

Everyone knows the importance of customization in Android development, because through customization, you can create products with different business trips to meet the needs of more consumers,
Mobile phones like HTC have all passed in-depth secondary development. Today I will share my status bar customization.
If you don't talk nonsense, simply:

The background, text color, and Icon display sequence are changed.
2. Key code
A) Position of the Code in the system
The status bar code is located at: Frameworks/base/services/Java/COM/Android/Server/status.
Among them, the statusbarpolicy class is mainly responsible for receiving Action Actions, and some other core operations are all in the statusbarservice class.
B) code example:



In Alps/frameworks/base/RES/values/config. XML, you need to adjust the config_statusbaricons order, from top to bottom, and the corresponding status bar from left to right.
Note: In the status bar layout of ICS, the signal icon and power icon are arranged in the same linearlayout. Therefore, to adjust the order of the two icons, you need to modify the order of their declarations in status_bar.xml.

Related Article

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.