本帖隐藏的内容状态栏时间居中1.反编译systemui.apk 2.找到systemui\res\layout\status_bar.xml 3.查找: 1.xmlns:android="http://schemas./apk/res/android"> 4.下方添加: <com.android.systemui.statusbar.Clock android:textAppearance="@android:style/TextAppearance.StatusBar.Icon" android:gravity="left|center" android:paddingRight="6.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_gravity="center_horizontal" android:singleLine="true" /> 5.回编译systemUI文件夹 6.提取回编译好的status_bar.xml 覆盖到原来的apk里面 第二:状态栏显示运营商 1.还是上一个教程的那个地方——\res\layout\status_bar.xml 2.查找:<LinearLayout androidrientation="horizontal" android:id="@id/icons" android:layout_width="fill_parent" android:layout_height="fill_parent"> 3.在下面添加代码: <com.android.systemui.statusbar.CarrierLabel android:textAppearance="@android:style/TextAppearance.StatusBar.Icon" android:gravity="left|center" android:paddingLeft="6.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" /> 4.回编译systemUI文件夹 5.提取回编译好的status_bar.xml 覆盖到原来的apk里面 ------------------------------------------------------------------------------------------ 1、反编译SystemUI.apk 2、在反编译后的目录下找到:\res\layout\status_bar.xml 3、打开 status_bar.xml 4、找到这句: <com.android.systemui.statusbar.Clock android:textAppearance="@android:style/TextAppearance.StatusBar.Icon" android:gravity="left|center" android:paddingRight="4.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" /> 复制代码5.替换代码为: <DigitalClock android:textSize="14.0dip" android:textStyle="bold" android:textColor="#ffffffff" android:gravity="center_vertical" android:id="@+id/digitalClock" android:paddingRight="4.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" /><br /> 之后回编译,把xml文件和resource.arsc替换会apk里,大家都懂得 顺便一说: android:textSize="14.0dip" 字体大小 android:textStyle="bold" 字体显示为 粗体 android:textColor="#ffffffff" 字体颜色 -------------------------------------------------------------------------------------- 透明下拉栏 1.提取你的systemui.apk,反编 2.找到\res\layout\status_bar_tracking.xml文件,搜索“View android:background”,将其等号后面改成 "@drawable/status_bar_background" 3.回编systemui.apk 4.将新apk中的status_bar_tracking.xml文件替换到老apk中 这样,你的下拉栏就变成了status_bar_background.png这张图片了,修改一张透明的status_bar_background.png扔进systemui.apk中替换原文件就好了。 在用压缩方式打开替换好的APK、直接把res拖到桌面,打开drawable-hdpi, quickpanel_quick_settings_background.png这个和quickpanel_title_background.9.png这个还有title_bar_portrait.9.png这个要改成透明或半透明都可以 不一定名称都一样但是方法都一样,你们进去了就知道 statusbar_background.9.png这个是状态栏 直接该透明就OK 记得你改的图片大小要一样{重要} 透明状态栏 2.3.6看 其他无视 同样是修改systemui.apk。 1.反编后找到smali\com\android\systemui\statusbar\StatusBarService.smali文件 2.找到 new-instance v0, Landroid/view/WindowManager$LayoutParams; const/4 v1, -0x1 const/16 v3, 0x7d0 const/16 v4, 0x48 const/4 v5, 0x2 修改为 new-instance v0, Landroid/view/WindowManager$LayoutParams; const/4 v1, -0x1 const/16 v3, 0x7d0 const/16 v4, 0x48 const/4 v5, -0x3 3.回编 4.替换classes.dex 5.修改一张statusbar_background.9.png图片,处理成半透明,替换 全局背景教程 提取完后打开“framework-res.apk\res\values\ 在用笔记本打开styles.xml文件 按“Ctrl+F”打开查找,在“找内容”查上写入 <item name="windowBackground">@drawable/screen_background_dark</item> 把找到的那句改成下面这句 <item name="windowBackground">@drawable/wjj_qjbg</item> 继续查找 <style name="Widget.ListView" parent="@style/Widget.AbsListView"> 得到下面这段 <style name="Widget.ListView" parent="@style/Widget.AbsListView"> <item name="listSelector">@drawable/list_selector_background</item> <item name="cacheColorHint">?colorBackgroundCacheHint</item> ----这句 <item name="divider">@drawable/divider_horizontal_dark_opaque</item> </style> 将上面那句<item name="cacheColorHint">?colorBackgroundCacheHint</item>换成 <item name="cacheColorHint">@color/transparent</item> 第三步: 把一张480*800的图片命名为:“wjj_qjbg”记得是PNG格式不然就悲催了 放入framework-res.apk\res\drawable-hdpi 然后封包 接下来就要用压缩方式打开之前没改过的framework-res.apk。在用压缩方式打开我们改过的framework-res.apk把我们改过的APK里的res拖到没改过的framework-res.apk里直接点确定 在把resources.arsc拖到没改过的APK里 直接点确定 图 时间居中 反编译完SystemUI.apk找到res\layout\status_bar.xml 打开status_bar.xml(内容不一定会完全一样,但方法一样,安卓通用) 找到以下代码:(搜索,快一些) <com.android.systemui.statusbar.Clock android:textAppearance="@android:style/TextAppearance.StatusBar.Icon" android:gravity="left|center" android:paddingRight="4.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" /> 把以上的代码全部删除 再次找到这一句: xmlns:android="http://schemas./apk/res/android"> 在这句的下面添加如下代码 <com.android.systemui.statusbar.Clock android:layout_gravity="center_horizontal" android:paddingTop="4.0dip" android:textAppearance="@android:style/TextAppearance.StatusBar.Icon" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" /> 最后,重编译,替换status_bar.xml后再替换到手机,重启!ok 再最后! 如果时间没有垂直居中的话请调整这句: android:paddingTop="4.0dip" 离顶部的距离 时间显示到秒且居中(前5步和上面一样) 找到res\layout\status_bar.xml 2.打开status_bar.xml(内容不一定会完全一样,但方法一样,安卓通用) 3.找到以下代码:(搜索,快一些) <com.android.systemui.statusbar.Clock android:textAppearance="@android:style/TextAppearance.StatusBar.Icon" android:gravity="left|center" android:paddingRight="4.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" /> 把以上的代码全部删除 再次找到这一句: xmlns:android="http://schemas./apk/res/android"> 在这句的下面添加如下代码 ! <DigitalClock android:textAppearance="@android:style/TextAppearance.StatusBar.Icon" android:layout_gravity="center_horizontal" android:id="@+id/digitalClock" android:paddingTop="4.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" /> 最后,重编译,替换status_bar.xml后再替换到手机,重启!ok! 再最后! 如果时间没有垂直居中的话请调整这句: android:paddingTop="4.0dip" 离顶部的距离 图 下拉栏的一,二级字体颜色自定义 反编译framework-res.apk,找到res/value/style.xml, 搜索 ">?textColorPrimaryInverse 替换为android:textColor="#ff228b22" 下拉栏二级字体颜色 反编译framework-res.apk,找到res/value/style.xml 搜索:<item name="textColor">#ff6b6b6b</item> 改成你需要的颜色。 textColor后的八位代码是颜色属性,前两位表示透明度(ff不透明,00完全透明) 后六位的颜色可以百度到“颜色代码”(ffffff为全白,000000为全黑) 上面那张图的二级字体颜色是228b22 --------------------------------------------------------------------------------- 状态栏下拉通知颜色及大小修改教程 首先反编译framework-res.apk 找到values/styles.xml 搜索: 本帖隐藏的内容 <style name="TextAppearance.StatusBar.EventContent.Title" parent="@style/TextAppearance.StatusBar.EventContent"> 复制代码 修改下三行: <item name="textSize">16.0sp</item> <item name="textStyle">bold</item> <item name="textColor">?textColorPrimaryInverse</item> 第一行是字体大小,数字越大字体越大 第二行是样式,比如bold就是粗体 第三行是颜色,把?textColorPrimaryInverse修改为颜色 比如:#ffffffff——这个随便 |
|