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.