标签:android style io ar color sp on div bs
前言:要调整状态栏布局,需反编译systemui.apk。单卡机修改status_bar.xml和signal_cluster_view.xml,双卡机修改gemini_status_bar.xml和gemini_signal_cluster_view.xml。我的是联想a820双卡机
一、状态栏显示运营商
打开systemui\res\layout\gemini_status_bar.xml,搜索android:id="@id/notification_lights_out",将这段改为
<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" />
搜索android:id="@id/status_bar_contents",将这段改为
<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">
搜索android:id="@id/notification_icon_area",将这段修改为
<LinearLayout androidrientation="horizontal" android:id="@id/notification_icon_area" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_weight="1.0">
在这段下面加入
<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" />
这样状态栏左侧就显示运营商了。
标签:android style io ar color sp on div bs
原文地址:http://www.cnblogs.com/qq190771752/p/4116490.html