好久没发教程了,嗯,因为个人认为没什么人看。现在都是闲下了,才发一节。我想把我做ROM的故事写完.....嗯。。下面发教程
1.反编framework-res.apk,(必须是原文件、即没被反编过以及没改过图片的,不然无法回编)
2.用我发的Notepad++打开反编后得到的\res\values\styles.xml
3.查找<style name="TextAppearance.Large" parent="@style/TextAppearance">看到下面的代码
<item name="textSize">20.0sp</item> 控制区域全局字体大小
<item name="textStyle">normal</item>
<item name="textColor">#ff0031ff</item>设置菜单字体颜色、弹出选项菜单标题颜色、关机提示各选项说明字体颜色、拨出号码时联系人名称或者号码字体颜色
4.查找<style name="TextAppearance.Large.Inverse" parent="@style/TextAppearance.Large">看到代码
<item name="textColor">#ff000000</item>桌面小部件弹出窗口字体颜色、关机提示字体颜色
<item name="textColorHint">#fff10000</item>
</style>
5.查找<style name="TextAppearance.Medium" parent="@style/TextAppearance">看到代码
<item name="textSize">16.0sp</item> 字体大小,控制区域如下
<item name="textStyle">normal</item>
<item name="textColor">#ff1fff00</item>通话记录联系人字体颜色、上锁后屏幕上部分字体颜色(包括时钟颜色)、部分软件菜单字体颜色
6.查找<style name="TextAppearance.Small" parent="@style/TextAppearance">
<item name="textSize">14.0sp</item>字体大小,控制区域如下
<item name="textStyle">normal</item>
<item name="textColor">#ff900000</item>选项作用说明字体颜色 ;复制、粘贴、删除等弹出提示字体颜色</style>
7.一级菜单、<style name="TextAppearance.Widget.IconMenu.Item"parent="@style/TextAppearance.Small">
<item name="textColor">?textColorPrimary</item></style>
这里的textColor就是一级菜单上字体的颜色?textColorPrimary 白色?textColorPrimaryInverse 黑色
比如我由白色修改为黑色,这里就修改为<style name="TextAppearance.Widget.IconMenu.Item"parent="@style/TextAppearance.Small">
<item name="textColor">?textColorPrimaryInverse</item></style>
二级菜单、<style name="Theme.ExpandedMenu" parent="@style/Theme">
<item name="listViewStyle">@style/Widget.ListView.Menu</item>
<item name="windowAnimationStyle">@style/Animation.OptionsPanel</item> <item name="background">@null</item>
<item name="itemTextAppearance">?textAppearanceLarge</item></style>
这里itemTextAppearance就是二级菜单字体的颜色
?textAppearanceLarge 白色?textAppearanceLargeInverse 黑色
比如我们由原来的白色修改为黑色,就修改为<style name="Theme.ExpandedMenu" parent="@style/Theme">
<item name="listViewStyle">@style/Widget.ListView.Menu</item>
<item name="windowAnimationStyle">@style/Animation.OptionsPanel</item> <item name="background">@null</item>
<item name="itemTextAppearance">?textAppearanceLargeInverse</item></style>
三级菜单、打开\res\values\colors.xml,找到<color name="dim_foreground_light_disabled">#80323232</color>
这里修改为自己需要的颜色代码即可,比如黑色#ff000000,白色#ffffffff
修改你要修改的项目后,按保存,关闭。
1.反编framework-res.apk,(必须是原文件、即没被反编过以及没改过图片的,不然无法回编)
2.用我发的Notepad++打开反编后得到的\res\values\styles.xml
3.查找<style name="TextAppearance.Large" parent="@style/TextAppearance">看到下面的代码
<item name="textSize">20.0sp</item> 控制区域全局字体大小
<item name="textStyle">normal</item>
<item name="textColor">#ff0031ff</item>设置菜单字体颜色、弹出选项菜单标题颜色、关机提示各选项说明字体颜色、拨出号码时联系人名称或者号码字体颜色
4.查找<style name="TextAppearance.Large.Inverse" parent="@style/TextAppearance.Large">看到代码
<item name="textColor">#ff000000</item>桌面小部件弹出窗口字体颜色、关机提示字体颜色
<item name="textColorHint">#fff10000</item>
</style>
5.查找<style name="TextAppearance.Medium" parent="@style/TextAppearance">看到代码
<item name="textSize">16.0sp</item> 字体大小,控制区域如下
<item name="textStyle">normal</item>
<item name="textColor">#ff1fff00</item>通话记录联系人字体颜色、上锁后屏幕上部分字体颜色(包括时钟颜色)、部分软件菜单字体颜色
6.查找<style name="TextAppearance.Small" parent="@style/TextAppearance">
<item name="textSize">14.0sp</item>字体大小,控制区域如下
<item name="textStyle">normal</item>
<item name="textColor">#ff900000</item>选项作用说明字体颜色 ;复制、粘贴、删除等弹出提示字体颜色</style>
7.一级菜单、<style name="TextAppearance.Widget.IconMenu.Item"parent="@style/TextAppearance.Small">
<item name="textColor">?textColorPrimary</item></style>
这里的textColor就是一级菜单上字体的颜色?textColorPrimary 白色?textColorPrimaryInverse 黑色
比如我由白色修改为黑色,这里就修改为<style name="TextAppearance.Widget.IconMenu.Item"parent="@style/TextAppearance.Small">
<item name="textColor">?textColorPrimaryInverse</item></style>
二级菜单、<style name="Theme.ExpandedMenu" parent="@style/Theme">
<item name="listViewStyle">@style/Widget.ListView.Menu</item>
<item name="windowAnimationStyle">@style/Animation.OptionsPanel</item> <item name="background">@null</item>
<item name="itemTextAppearance">?textAppearanceLarge</item></style>
这里itemTextAppearance就是二级菜单字体的颜色
?textAppearanceLarge 白色?textAppearanceLargeInverse 黑色
比如我们由原来的白色修改为黑色,就修改为<style name="Theme.ExpandedMenu" parent="@style/Theme">
<item name="listViewStyle">@style/Widget.ListView.Menu</item>
<item name="windowAnimationStyle">@style/Animation.OptionsPanel</item> <item name="background">@null</item>
<item name="itemTextAppearance">?textAppearanceLargeInverse</item></style>
三级菜单、打开\res\values\colors.xml,找到<color name="dim_foreground_light_disabled">#80323232</color>
这里修改为自己需要的颜色代码即可,比如黑色#ff000000,白色#ffffffff
修改你要修改的项目后,按保存,关闭。