- 浏览: 148400 次
文章分类
最新评论
-
zhufoxmailcn:
有希望了!但原能解决小米二电信与4G卡的短信兼容性问题
android无法自动识别sim卡中短信中心号码(SMSC刷新error)的解决方法 -
dss16694:
hotdll 写道l楼主一不小心泄露了自己的手机号码?那是短信 ...
android无法自动识别sim卡中短信中心号码(SMSC刷新error)的解决方法 -
hotdll:
l楼主一不小心泄露了自己的手机号码?
android无法自动识别sim卡中短信中心号码(SMSC刷新error)的解决方法 -
hotdll:
hotdll 写道我的手机是E10I 分辨率为240*320的 ...
CM7最新联系人代码(追加自动IP拨号、拼音首字母快速检索等功能) -
hotdll:
我的手机是E10I 分辨率为240*320的,miniCM7, ...
CM7最新联系人代码(追加自动IP拨号、拼音首字母快速检索等功能)
以下操作均在SystemUI.apk反编译所得文件的基础上进行。
1.状态栏底色透明:
文本编辑器打开\SystemUI\smali\com\android\systemui\statusbar\StatusBar.smali,查找“const/16 v16, 0x4”,改为“const/16 v16, -0x3”;
2.layout中底色改变:
2.1 状态栏底色修改,\layout\status_bar_tracking.xml修改为如下
<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.statusbar.phone.TrackingView android:orientation="vertical" android:background="#ffffffff" android:paddingLeft="0.0px" android:paddingRight="0.0px" android:paddingBottom="0.0px" android:focusable="true" android:visibility="gone" android:descendantFocusability="afterDescendants"
xmlns:android="http://schemas.android.com/apk/res/android">
<FrameLayout android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="1.0">
<com.android.systemui.statusbar.phone.CarrierLabel android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="center" android:layout_gravity="bottom" android:paddingBottom="20.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content" />
</FrameLayout>
<com.android.systemui.statusbar.phone.CloseDragHandle android:orientation="vertical" android:id="@id/close" android:layout_width="fill_parent" android:layout_height="wrap_content">
<ImageView android:layout_gravity="bottom" android:layout_width="fill_parent" android:layout_height="wrap_content" android:src="@drawable/status_bar_close_on" android:scaleType="fitXY" />
</com.android.systemui.statusbar.phone.CloseDragHandle>
</com.android.systemui.statusbar.phone.TrackingView>
2.2 \layout-land\status_bar_recent_item.xml修改如下:
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout android:paddingLeft="@dimen/status_bar_recents_item_padding" android:paddingRight="@dimen/status_bar_recents_item_padding" android:layout_width="wrap_content" android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android">
<RelativeLayout android:layout_gravity="center_vertical" android:id="@id/recent_item" android:paddingTop="@android:dimen/status_bar_height" android:layout_width="wrap_content" android:layout_height="wrap_content">
<FrameLayout android:id="@id/app_thumbnail" android:background="@drawable/recents_thumbnail_bg" android:visibility="invisible" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="@dimen/status_bar_recents_thumbnail_left_margin" android:layout_marginTop="@dimen/status_bar_recents_thumbnail_top_margin" android:foreground="@drawable/recents_thumbnail_fg" android:layout_alignParentLeft="true" android:layout_alignParentTop="true">
<ImageView android:id="@id/app_thumbnail_image" android:layout_width="@dimen/status_bar_recents_thumbnail_width" android:layout_height="@dimen/status_bar_recents_thumbnail_height" />
</FrameLayout>
<ImageView android:id="@id/app_icon" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="@dimen/status_bar_recents_app_icon_left_margin" android:layout_marginTop="@dimen/status_bar_recents_app_icon_top_margin" android:scaleType="centerInside" android:adjustViewBounds="true" android:maxWidth="@dimen/status_bar_recents_app_icon_max_width" android:maxHeight="@dimen/status_bar_recents_app_icon_max_height" android:layout_alignParentLeft="true" android:layout_alignParentTop="true" />
<TextView android:textSize="@dimen/status_bar_recents_app_label_text_size" android:textColor="@color/status_bar_recents_app_label_color" android:ellipsize="marquee" android:id="@id/app_label" android:fadingEdge="horizontal" android:fadingEdgeLength="@dimen/status_bar_recents_fading_edge_length" android:layout_width="@dimen/status_bar_recents_app_label_width" android:layout_height="wrap_content" android:layout_marginLeft="@dimen/status_bar_recents_app_label_left_margin" android:layout_marginTop="@dimen/status_bar_recents_text_description_padding" android:scrollHorizontally="true" android:singleLine="true" android:layout_below="@id/app_thumbnail" android:layout_alignLeft="@id/app_thumbnail" />
<TextView android:textSize="@dimen/status_bar_recents_app_description_text_size" android:textColor="@color/status_bar_recents_app_label_color" android:ellipsize="marquee" android:id="@id/app_description" android:fadingEdge="horizontal" android:fadingEdgeLength="@dimen/status_bar_recents_fading_edge_length" android:layout_width="@dimen/status_bar_recents_app_label_width" android:layout_height="wrap_content" android:layout_marginTop="@dimen/status_bar_recents_text_description_padding" android:scrollHorizontally="true" android:singleLine="true" android:layout_below="@id/app_label" android:layout_alignLeft="@id/app_thumbnail" />
</RelativeLayout>
</FrameLayout>
3.\values内容的修改
3.1 colors.xml修改如下:
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="status_bar_recents_app_label_color">#ff000000</color>
<color name="notification_list_shadow_top">#80000000</color>
</resources>
3.2drawables.xml修改如下:
<?xml version="1.0" encoding="utf-8"?> <resources> <item type="drawable" name="APKTOOL_DUMMY_00d4">false</item> <item type="drawable" name="APKTOOL_DUMMY_00d5">false</item> <item type="drawable" name="APKTOOL_DUMMY_00d6">false</item> <item type="drawable" name="APKTOOL_DUMMY_00d7">false</item> <item type="drawable" name="APKTOOL_DUMMY_00d8">false</item> <item type="drawable" name="APKTOOL_DUMMY_00d9">false</item> <item type="drawable" name="APKTOOL_DUMMY_00da">false</item> <item type="drawable" name="APKTOOL_DUMMY_00db">false</item> <item type="drawable" name="APKTOOL_DUMMY_00dd">false</item> <item type="drawable" name="APKTOOL_DUMMY_00de">false</item> <item type="drawable" name="APKTOOL_DUMMY_00df">false</item> <item type="drawable" name="APKTOOL_DUMMY_00e0">false</item> <item type="drawable" name="APKTOOL_DUMMY_00e1">false</item> <item type="drawable" name="APKTOOL_DUMMY_00e2">false</item> <item type="drawable" name="APKTOOL_DUMMY_00e3">false</item> <item type="drawable" name="APKTOOL_DUMMY_00e4">false</item> <item type="drawable" name="APKTOOL_DUMMY_00e5">false</item> <item type="drawable" name="notification_number_text_color">#ff000000</item> <item type="drawable" name="notification_item_background_color">#ffffffff</item> <item type="drawable" name="notification_item_background_color_pressed">#ff257390</item> <item type="drawable" name="ticker_background_color">#ffffffff</item> <item type="drawable" name="status_bar_background">#ef3f9bbf</item> <item type="drawable" name="status_bar_recents_background_solid">#b3000000</item> <item type="drawable" name="status_bar_recents_app_thumbnail_background">#88ffffff</item> <item type="drawable" name="status_bar_notification_row_background_color">#7f090909</item> <item type="drawable" name="notification_header_bg">#ffffffff</item> <item type="drawable" name="notification_tracking_bg">#ffffffff</item> <item type="drawable" name="recents_callout_line">#99ffffff</item> <item type="drawable" name="notification_item_background_legacy_color">#ffaaaaaa</item> </resources>
3.3 style修改如下:
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="TextAppearance.StatusBar.Title" parent="@android:style/TextAppearance.StatusBar">
<item name="android:textAppearance">?android:textAppearanceSmall</item>
<item name="android:textStyle">bold</item>
<item name="android:textColor">?android:textColorPrimary</item>
</style>
<style name="TextAppearance.StatusBar.IntruderAlert" parent="@android:style/TextAppearance.StatusBar" />
<style name="TextAppearance.StatusBar.SystemPanel" parent="@android:style/TextAppearance.StatusBar">
<item name="android:textAppearance">?android:textAppearance</item>
<item name="android:textStyle">normal</item>
<item name="android:textColor">#ff808080</item>
</style>
<style name="TextAppearance.StatusBar.TextButton" parent="@android:style/TextAppearance.StatusBar">
<item name="android:textAppearance">?android:textAppearance</item>
<item name="android:textStyle">normal</item>
<item name="android:textColor">#ffffffff</item>
</style>
<style name="TextAppearance.StatusBar.Battery" parent="@android:style/TextAppearance.StatusBar.Icon">
<item name="android:textSize">12.0dip</item>
<item name="android:textStyle">normal</item>
<item name="android:textColor">@android:color/holo_blue_light</item>
</style>
<style name="TextAppearance.StatusBar.Clock" parent="@android:style/TextAppearance.StatusBar.Icon">
<item name="android:textSize">16.0dip</item>
<item name="android:textStyle">normal</item>
<item name="android:textColor">#ffffffff</item>
</style>
<style name="TextAppearance.StatusBar.Date" parent="@android:style/TextAppearance.StatusBar.Icon">
<item name="android:textSize">16.0sp</item>
<item name="android:textStyle">normal</item>
<item name="android:textColor">@android:color/holo_blue_light</item>
</style>
<style name="TextAppearance.StatusBar.Signal" parent="@android:style/TextAppearance.StatusBar.Icon">
<item name="android:textSize">12.0dip</item>
<item name="android:textStyle">normal</item>
<item name="android:textColor">@android:color/holo_blue_light</item>
</style>
<style name="Animation" />
<style name="Animation.ShirtPocketPanel" parent="@style/Animation">
<item name="android:windowEnterAnimation">@android:anim/grow_fade_in_from_bottom</item>
<item name="android:windowExitAnimation">@android:anim/shrink_fade_out_from_bottom</item>
</style>
<style name="Animation.RecentPanel" parent="@style/Animation">
<item name="android:windowEnterAnimation">@android:anim/grow_fade_in_from_bottom</item>
<item name="android:windowExitAnimation">@android:anim/shrink_fade_out_from_bottom</item>
</style>
<style name="Animation.StatusBar" parent="@style/Animation">
<item name="android:windowEnterAnimation">@anim/status_bar_enter</item>
<item name="android:windowExitAnimation">@anim/status_bar_exit</item>
</style>
<style name="Animation.StatusBar.IntruderAlert" parent="@style/Animation.StatusBar">
<item name="android:windowEnterAnimation">@anim/priority_alert_enter</item>
<item name="android:windowExitAnimation">@anim/priority_alert_exit</item>
</style>
<style name="TextAppearance.StatusBar.PhoneTicker" parent="@android:style/TextAppearance.StatusBar.Ticker">
<item name="android:textSize">14.0dip</item>
</style>
<style name="BrightnessPanel">
<item name="android:windowNoTitle">true</item>
<item name="android:windowAnimationStyle">@android:style/Animation.VolumePanel</item>
<item name="android:windowActionBar">false</item>
<item name="android:windowCloseOnTouchOutside">true</item>
</style>
</resources>
3.4 public.xml的修改,根据增加的内容进行修改。
4./drawable的内容将附件覆盖到相应目录。
5.效果图:
发表评论
-
读懂diff
2015-09-10 16:50 606转自http://www.ruanyifeng.com/bl ... -
【转】努比亚手机玩转双系统
2014-08-21 16:16 0转自miui论坛:http://www. ... -
Z7 MAX 原厂ROM内核修改
2014-08-21 16:04 0努比亚的Z7 MAX出厂时预装NUBIA UI,说实话不咋地 ... -
(转)boot.img的结构
2014-08-21 15:58 1010转自CSDN:http://blog.csdn.net/z ... -
android手机霍尔开关的介绍
2014-08-11 15:24 9461转自CSDN:http://blog.csdn.net/wl ... -
(转)Ubuntu11.10(32位)编译android常见错误(30种常见的)
2014-04-01 13:58 0开始正式编译,在源码目录下make即可。 make ... -
Mokee适配教程(从CM10适配)
2013-09-10 11:27 2564转自魔趣论坛,原始链接为: http://bbs.mfu ... -
ubuntu 12.04 android 编译环境搭建
2013-07-21 06:30 980参考:http://source.android. ... -
miui V5收费主题破解
2013-04-14 01:17 0看到有个家伙在淘宝上卖这东西,感觉有点过分,号称历时2个月才 ... -
Scrolling cache关闭
2013-04-14 00:51 0Scrolling cache关闭后,感觉没什么效果吧。可以用 ... -
ubuntu 12.04的代理设置
2013-04-09 15:48 1715ubuntu 12.04的代理设置 ... -
重新打包ubi镜像
2013-03-18 15:51 2266从网上了解到ubi image不能像其他格式的文件系统ima ... -
为android增加重启菜单
2013-03-17 16:06 1937转自:http://blog.csdn.net/zzp16/ ... -
小米更改第一屏
2013-03-12 11:39 914su dd if=/sdcard/emmc_appsboo ... -
远程发送开机指令
2013-02-28 15:26 1657转发一段用java发送远程开机数据包的代码: 另外,在线发 ... -
tesseract3语言训练
2013-01-06 23:26 1169http://blog.wudilabs.org/entry/ ... -
安卓窗口动画修改制作心得,定制属于你自己的特效动画
2012-12-26 13:07 2054转载自:http://www.miui.com/thread- ... -
(转)android系统特效详解和修改方法
2012-12-20 12:03 1510转自安智网:http://bbs.anzhi.com/foru ... -
socket编程
2012-08-01 17:06 1060暂时先贴下地址,省的忘记: http://duguyi ... -
判断是否处于飞行模式
2012-07-27 10:04 1128//是否飞行模式 static boolean ...
评论
3q~
涉及的内容比较多,至少需要修改代码,像我们这样简单替换是没办法弄的,其实最好就像JELLYBEAN中那样,下拉后不显示状态栏。
3q~