2026年10月30日 · 今日 0 帖 · 会员 6.1万 · 主题 17.4万
登录 · 注册 · 游客,欢迎随便逛逛
返回版块
只看作者:洞房 查看全部
1000
Lv9有为九子能等级图标
勋章勋章勋章勋章勋章
帖子
9.3万
回复
2,089
积分
60.3万
注册
2006-12-06
[安卓交流]

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

[复制链接]
查看 1,546 回复 0
楼主 发表于 | 查看全部
11 人收藏

反编译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拷贝到手机系统中覆盖

登录回复

登录后可以回复这个帖子。旧账号可使用原密码登录。

登录 注册新号
← 返回版块