全局半透明附带半透明壁纸
操作方法
- 01
反编译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="windowNoDisplay">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(下面已经提供了半透明图片,不喜欢的可以自己PS)ok!保存,回编译,在dist文件夹下找到framework-res.apk,用winrar打开,把resources.arsc拷贝到原framework-res.apk中,在原版\framework-res\res\drawable-hdpi中添加screen_background_abcdefg保存,退出,把修改后的framework-res.apk拷贝到手机系统中覆盖,重启完成!建议: 最好不要更改图片名字screen_background_abcdefg,否则透明化失败,最后无限重启。 最好用notepad++来编辑以上内容,下面已提供下载。 因为有些framework-res.apk可能被修改过,所以有可能导致无法全局透明。(找到原始未被修改的有可能解决) 详情请见安智论坛,转载请注明出处