安卓4.2原生rom状态栏显示运营商
来源:互联网 发布:iphone软件连不上网络 编辑:程序博客网 时间:2024/05/18 00:00
前言:要调整状态栏布局,需反编译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" />
这样状态栏左侧就显示运营商了。
- 安卓4.2原生rom状态栏显示运营商
- 安卓ROM结构
- MTK 7.0 下拉状态栏左上角添加运营商显示
- 安卓 显示在状态栏的ProgressBar 的实现
- 安卓原生开发图文混排显示
- DEFY/DEFY+ 直刷CM最简单方法 ROM(moto 4.0原生输入法 安卓4.1.1能用)
- 安卓状态栏+kitkat
- 安卓隐藏状态栏
- # 安卓透明状态栏
- Unity获取安卓手机运营商信息
- Google 原生ROM下载
- 安卓自定义状态栏颜色
- 安卓沉浸式状态栏
- 安卓自定义状态栏颜色
- 安卓沉浸式状态栏
- 安卓获得状态栏高度
- 安卓沉浸式状态栏
- 安卓状态栏颜色改变
- eclipse中JSP开发环境的配置
- 提取所有mtk机型的线刷包
- ubuntu14.04使用reaver跑pin码
- 通知栏快捷按钮自定义教程以及快捷面板提取的思路-转自魔趣论坛-lonyii2
- 安卓隐藏软件图标
- 安卓4.2原生rom状态栏显示运营商
- cocos2dx+lua中cc.EventListenerMouse:create()的bug
- Notepad++ Java开发环境配置
- ubuntu下文件压缩/解压缩命令总结
- 进程状态
- Android xml资源文件中@、@android:type、@*、?、@+含义和区别
- myEclipse8.* 手动安装ADT插件[转]
- 修改安卓虚拟机系统镜像
- 令用EclipseJ2EE创建的Dynamic Web project目录结构与用MyEclipse创建的Web project一样