search 登录 注册
arrow_back返回列表
ID:124129
light_mode
Lv.1 韶华一笑间
edit_note帖子 57
stars积分 14,010
event加入 2012-10-04
安卓交流

[教程]『美化教程』安卓全局透明

schedule发表于 2014-02-03 19:12:00 visibility查看 1,545 chat_bubble回复 131
#1 楼主
反编译framework-res.apk后找到面在framework-res\res\values下找到

styles.xml
搜索:
<style name=“Theme“>
<item name=“colorForeground“>@color/bright_foreground_dark</item>
<item name=“colorBackground“>@color/background_dark</item>
复制代码
修改为:
<style name=“Theme“>
<item name=“colorForeground“>@color/bright_foreground_dark</item>
<item name=“colorBackground“>@color/transparent</item>
复制代码
这样就定义了系统背景透明了
然后
搜索:
<item name=“expandableListPreferredChildIndicatorRight“>?expandableListPreferredItemIndicatorRight</item>
<item name=“windowBackground“>@drawable/screen_background_dark</item>
复制代码
改为:
<item name=“expandableListPreferredChildIndicatorRight“>?expandableListPreferredItemIndicatorRight</item>
<item name=“windowBackground“>@drawable/screen_background_abcdefg</item>
复制代码
这是定义背景图片,你需要添加一个透明图片,建议弄半透明的,免得系统界面有些字看不清!
搜索:
<item name=“textColorPrimaryInverseDisableOnly“>@color/primary_text_light_disable_only</item>
<item name=“windowShowWallpaper“>false</item>
复制代码
把false改为true,这里是显示桌面壁纸,不然背景会是黑的!
搜索:
<style name=“Theme.NoTitleBar“ parent=“@style/Theme“>
<item name=“windowNoTitle“>true</item>
复制代码
在下面一行添加:
<item name=“windowShowWallpaper“>false</item>
复制代码
搜索:
<style name=“Theme.Black“ parent=“@style/Theme“>
<item name=“colorBackground“>@color/black</item>
<item name=“windowBackground“>@color/black</item>
复制代码
改为:
<style name=“Theme.Black“ parent=“@style/Theme“>
<item name=“colorBackground“>@color/black</item>
<item name=“windowBackground“>@drawable/screen_background_abcdefg</item>
<item name=“windowShowWallpaper“>false</item>
复制代码
搜索:
<item name=“progressBarStyleSmallInverse“>@style/Widget.ProgressBar.Small</item>
<item name=“progressBarStyleLargeInverse“>@style/Widget.ProgressBar.Large</item>
<item name=“textColorPrimaryInverseDisableOnly“>@color/primary_text_dark_disable_only</item>
复制代码
在下面一行添加:
<item name=“windowShowWallpaper“>false</item>
复制代码
搜索:
<style name=“Theme.Translucent“ parent=“@style/Theme“>
<item name=“windowBackground“>@color/transparent</item>
<item name=“windowIsTranslucent“>true</item>
<item name=“windowAnimationStyle“>@style/Animation</item>
复制代码
在下面添加:
<item name=“windowShowWallpaper“>false</item>
复制代码
搜索:
<item name=“windowNo*“>true</item>
<item name=“windowDisablePreview“>true</item>
复制代码
在下面添加:
<item name=“windowShowWallpaper“>false</item>
复制代码
搜索:
<item name=“windowContentOverlay“>@null</item>
<item name=“backgroundDimEnabled“>false</item>
复制代码
添加:
<item name=“windowShowWallpaper“>false</item>
复制代码
在\framework\framework-res\res\drawable-hdpi下添加一张图片
screen_background_abcdefg.9.png



ok!保存,回编译,在dist文件夹下找到framework-res.apk,用winrar打开
把resources.arsc拷贝到原framework-res.apk中,
在原版\framework-res\res\drawable-hdpi中添加
screen_background_abcdefg.9.png(建议ps成半透明背景图片)
保存,退出,把修改后的framework-res.apk拷贝到手机系统中覆盖

全部回复 (131)

ID:143850
light_mode
Lv.1 韶华一笑间
2014-05-11 19:49:00 #82
豁然开朗声声
ID:163238
light_mode
Lv.2 独赏二月雪
2014-05-12 10:56:00 #83
。!…。
ID:130222
dark_modedark_modedark_modestar
Lv.1 韶华一笑间
2014-06-09 20:07:00 #84
来咯弄弄弄弄
ID:146166
dark_modedark_modedark_modestarstarstar
Lv.1 韶华一笑间
2014-06-09 21:05:00 #85
faqws
ID:114736
light_modestar
Lv.1 韶华一笑间
2014-06-13 20:44:00 #86
查一查刚吃vvcy
ID:69959
dark_modedark_modedark_modestarstar
Lv.1 韶华一笑间
2014-06-13 22:18:00 #87
好好好了是普通
ID:131468
dark_modedark_modedark_modestarstar
Lv.1 韶华一笑间
2014-07-03 15:30:00 #88
拜拜
ID:161343
light_modestar
Lv.1 韶华一笑间
2014-07-03 20:44:00 #89
古古怪怪
ID:104812
light_modestar
Lv.1 韶华一笑间
2014-07-04 15:54:00 #90
额开机
ID:141956
light_mode
Lv.1 韶华一笑间
2014-07-05 16:49:00 #91
那么得多么
ID:132592
light_modedark_mode
Lv.2 独赏二月雪
2014-07-26 09:38:00 #92
表情开口看看
ID:99606
light_modestarstar
Lv.2 独赏二月雪
2014-07-27 10:05:00 #93
Gmwp
ID:139007
dark_modedark_modedark_modestar
Lv.1 韶华一笑间
2014-08-11 13:30:00 #94
真的
ID:132540
light_modestarstar
Lv.2 独赏二月雪
2014-08-11 15:54:00 #95
嗯嗯,,,,
ID:147601
light_modestarstar
Lv.1 韶华一笑间
2014-08-12 04:55:00 #96
我妹
ID:69685
light_modestarstar
Lv.1 韶华一笑间
2014-08-12 13:39:00 #97
看你
ID:124824
light_modestarstarstar
Lv.1 韶华一笑间
2014-08-13 11:36:00 #98
救苦救难
ID:159841
dark_modedark_modedark_modestarstar
Lv.1 韶华一笑间
2014-08-23 21:03:00 #99
拉开始终于是在
ID:165449
dark_mode
Lv.1 韶华一笑间
2014-08-24 08:26:00 #100
123飘过
ID:76479
light_modedark_modestarstarstar
Lv.1 韶华一笑间
2014-08-25 10:33:00 #101
啦啦啦
登录 后才能回复