移动叔叔
标题:
【华为3x教程】修改华为自带主题风格----锁屏界面
[打印本页]
作者:
wasser
时间:
2014-1-26 17:16
标题:
【华为3x教程】修改华为自带主题风格----锁屏界面
本帖最后由 wasser 于 2014-1-27 11:26 编辑
最近手机刚出,刷机包不多,没事闲的,大家可以修改一下默认主题(其他主题通用)的样式 比如锁屏界面的文字颜色、去掉紧急呼叫、修改锁屏运营商、修改时钟样式等等)
本文以默认主题---旅程为例子 大家自行修改吧:
root后进入到system/themes目录,这个目录就是手机内安装的主题,找到journey.hwt 这个文件就是中文么叫“旅程”的主题
华为的主题文件都是以hwt结尾的 至于制作主题 以后再说 更简单
hwt文件 实际就是个zip文件 用winrar打开 journey.hwt
[attach]344142[/attach]
看到了吧 没什么好说的了 很简单了 想修改什么就修改什么吧
以锁屏界面为例 打开unlock文件夹 drawable-hdpi这个文件夹里面是存放着 锁屏界面使用到的图片 主要是时钟样式 自己看着改成自己的吧
layout-hdpi这个文件夹下面有一个xml文件 就是锁屏的配置文件了 下面主要看一下这个配置文件都写了什么吧 哈哈
<?xml version="1.0" encoding="utf-8"?>
<layout>
<static>
<text x="30" y="80" w="660" h="54" align="center" size="14" color="#000000" src="system.carrier"/>
<text x="30" y="130" w="660" h="54" align="center" size="14" color="#000000" src="system.carrier2"/>
<image x="160" y="180" w="92" h="140" src="'number_'+system.time.hour1+'.png'"/>
<image x="254" y="180" w="92" h="140" src="'number_'+system.time.hour2+'.png'"/>
<image x="346" y="180" w="20" h="140" src="colon.png"/>
<image x="368" y="180" w="92" h="140" src="'number_'+system.time.min1+'.png'"/>
<image x="462" y="180" w="92" h="140" src="'number_'+system.time.min2+'.png'"/>
<image x="304" y="440" w="62" h="62" src="call.png" visible="system.call.count gt 0"/>
<image x="304" y="510" w="62" h="62" src="message.png" visible="system.message.count gt 0"/>
<text x="555" y="275" w="72" h="62" visible="system.time.showampm" size="14" color="#ff000000" src="system.time.ampm"/>
<text x="30" y="330" w="660" h="54" align="center" size="14" color="#000000" src="system.date"/>
<text x="30" y="380" w="660" h="54" align="center" size="14" color="#000000" src="system.charge.text" visible="system.charge.show"/>
<text x="376" y="448" w="660" h="54" align="left" size="18" color="#000000" src="(system.call.count gt 99) ? '99+' : system.call.count" visible="system.call.count gt 0"/>
<text x="376" y="518" w="660" h="54" align="left" size="18" color="#000000" src="(system.message.count gt 99) ? '99+' : system.message.count" visible="system.message.count gt 0"/>
<text x="175" y="380" w="370" h="54" align="center" size="14" color="#000000" src="system.ownerinfo.text" visible="!system.charge.show and system.ownerinfo.show"/>
<text x="0" y="1210" w="720" h="42" align="center" size="16" color="#ffffff" src="system.unlocktip"/>
</static>
<emergency x="0" y="1080" w="720" h="128" align="center"/>
</layout>
复制代码
好吧 大家知道怎么修改了吧 ? 还不知道?
找到:
<emergency x="0" y="1080" w="720" h="128" align="center"/>
复制代码
这句话的意思就是“紧急呼叫” 想不想留着 你自己看着办吧 我反正删除了~
下面这两行是 运营商名字:
<text x="30" y="80" w="660" h="54" align="center" size="14" color="#000000" src="system.carrier"/>
<text x="30" y="130" w="660" h="54" align="center" size="14" color="#000000" src="system.carrier2"/>
复制代码
对应的就是卡1和卡2的运营商 想不想显示 你自己看着办 反正我删除了~~~
下面这几行就是对应的 时钟图片了
<image x="160" y="180" w="92" h="140" src="'number_'+system.time.hour1+'.png'"/>
<image x="254" y="180" w="92" h="140" src="'number_'+system.time.hour2+'.png'"/>
<image x="346" y="180" w="20" h="140" src="colon.png"/>
<image x="368" y="180" w="92" h="140" src="'number_'+system.time.min1+'.png'"/>
<image x="462" y="180" w="92" h="140" src="'number_'+system.time.min2+'.png'"/>
复制代码
自己弄图片吧。
剩下的代码 就是未接来电 未读信息 在锁屏状态下的样子了 大家看着办。
这个教程就是教大家修改别人的主题 记得要注意备份主题后再修改。
最后,修改完后 把journey.hwt复制回system/themes内 覆盖原文件 一定记得把权限修改一下 rw-r-r-
大家在修改主题的时候 记得先将主题换成其他的 修改完复制回去后 在换回来
下一个教程和大家讨论 制作主题 比修改还要简单
去除 删除照片的声音 教程
http://bbs.ydss.cn/thread-389454-1-1.html
欢迎光临 移动叔叔 (http://bbs.ydss.cn/)
Powered by Discuz! X3.2