Android 4.2 native ROM status bar display operator

Source: Internet
Author: User

Preface: To adjust the status bar layout, you need to decompile the systemui.apk. Single Card machine modified Status_bar.xml and Signal_cluster_view.xml, dual-SIM machine modified gemini_status_bar.xml and Gemini_signal_cluster_view.xml. My is Lenovo a820 dual-SIM machine
First, the status bar display operator

Open Systemui\res\layout\gemini_status_bar.xml, search android:id= "@id/notification_lights_out" and change this paragraph to
<imageview android:id= "@id/notification_lights_out" android:paddingleft= "2.0dip" android:paddingbottom= "2.0dip "Android:visibility=" Gone "android:layout_width=" @dimen/status_bar_icon_size "android:layout_height=" fill_parent "Android:src=" @drawable/ic_sysbar_lights_out_dot_small "android:scaletype=" center "/>
Search android:id= "@id/status_bar_contents" and change this paragraph to
<linearlayout androidrientation= "Horizontal" android:id= "@id/status_bar_contents" android:paddingLeft= "2.0dip" android:paddingright= "2.0dip" android:layout_width= "fill_parent" android:layout_height= "Fill_parent" >
Search android:id= "@id/notification_icon_area" to change this revision to
<linearlayout androidrientation= "Horizontal" android:id= "@id/notification_icon_area" android:layout_width= " 0.0dip "android:layout_height=" fill_parent "android:layout_weight=" 1.0 ">
In this section, add the following
<com.android.systemui.statusbar.phone.carrierlabelgemini android:textappearance= "@style/ TextAppearance.StatusBar.Expanded.Network "android:gravity=" center_vertical "android:layout_gravity=" Left|center "Android:id=" @id/carrier1 "android:textcolor=" #ffffffff "android:textsize=" 16.0dip "android:paddingleft=" 2.0dip " android:paddingright= "2.0dip" android:layout_width= "wrap_content" android:layout_height= "Fill_parent"/>
<imageview android:layout_gravity= "center" android:id= "@id/carrier_divider" android:layout_width= "wrap_content "Android:layout_height=" wrap_content "android:src=" @drawable/gemini_carrier_divider "/>
<com.android.systemui.statusbar.phone.carrierlabelgemini android:textappearance= "@style/ TextAppearance.StatusBar.Expanded.Network "android:gravity=" center_vertical "android:layout_gravity=" Left|center "Android:id=" @id/carrier2 "android:textcolor=" #ffffffff "android:textsize=" 16.0dip "android:paddingleft=" 2.0dip " android:paddingright= "2.0dip" android:layout_width= "wrap_content" android:layout_height= "Fill_parent"/>

This shows the operator on the left side of the status bar.

Android 4.2 native ROM status bar display operator

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.