首页»版块 兴趣街区 爱主题 锁屏代码详解【主题教程持续更新请关注】

锁屏代码详解【主题教程持续更新请关注】

  [复制帖子标题和链接]

733222

   发表于 2016-9-17 21:34:54 属地未知 来自:浏览器
锁屏代码全部来源于本人下载收费主题学习得来,请大家尊重劳动成果,全程代码是用PS打开主题预览图在再用x,y,w,h定位所得
代码如下
<?xml version="1.0" encoding="utf-8"?>
<layout frameRate="30" version="3.0" screenwidth="1080">

<!--小时十位-->   
        <image x="300" y="540" w="100" h="160" src="´number_´+system.time.hour1+´.png´"/>
<!--小时个位-->
        <image x="400" y="535" w="100" h="160" src="´number_´+system.time.hour2+´.png´"/>
<!--时间点-->
        <image x="500" y="535" w="46" h="160" src="colon.png"/>
<!--分钟十位-->
        <image x="546" y="525" w="100" h="160" src="´number_´+system.time.min1+´.png´"/>
<!--分钟个位-->
        <image x="646" y="520" w="100" h="160" src="´number_´+system.time.min2+´.png´"/>
<!--上午,下午位置与颜色-->       
    <text x="750" y="610" w="180" h="75" visible="system.time.showampm" align="left" size="16" color="#FF5e4f13" src="system.time.ampm"/>
<!--日期位置-->
        <text x="0" y="800" w="1080" h="80" align="center" size="16" color="#FF231d06" src="system.date"/>
<!--文字显示-->
    <emergency x="0" y="150" w="1080" h="94"/>
<!--充电文字显示位置与颜色-->   
        <text x="0" y="1550" w="1080" h="70" align="center" size="14" color="#231d06" src="system.charge.text" visible="system.charge.show and system.music_visible eq 0"/>
<!--个性签名位置与颜色-->   
        <text x="0" y="1550" w="1080" h="60" align="center" size="14" color="#FF231d06" src="system.ownerinfo.text" ellipsize="marquee" visible="!system.charge.show and system.ownerinfo.show"/>
<!--锁屏字位置与颜色-->   
        <text x="0" y="1780" w="1080" h="60" align="center" size="14" color="#231d06" src="system.unlocktip"/>  
<!--信息与来电位置与颜色-->
    <text x="0" y="960" w="1080" h="80" align="center" size="16" color="#faed59" src="system.message.text" visible="system.message.count gt 0"/>
    <text x="0" y="1050" w="1080" h="80" align="center" size="16" color="#faed59" src="system.call.text" visible="system.call.count gt 0"/>
       

</layout>
在主题目录unlock\layout-hdpi下修改
附上文件地址:http://pan.baidu.com/s/1jHUuxGq密码q262
请大家多少支持!授人予鱼,不如授人予渔
我还有很多教程和工具,保证让你们的制作简单起来,请多多关注!

好了不多说了,研究动态锁屏去了(ps:哭晕在代码中{:8_223:}

评论22
荣耀粉丝11855736  LV9  发表于 2016-9-18 09:57 属地未知 来自:浏览器
这个值得收藏
荣耀粉丝11855736  LV9  发表于 2016-9-18 11:12 属地未知 来自:浏览器
<!--个性签名位置与颜色-->   
        <text x="0" y="1550" w="1080" h="60" align="center" size="14" color="#FF231d06" src="system.ownerinfo.text" ellipsize="marquee" visible="!system.charge.show and system.ownerinfo.show"/>
X Y W H 各代表什么位置?
   发表于 2016-9-18 11:42 属地未知 来自:荣耀8
尤素虎 发表于 2016-9-18 11:12
X Y W H 各代表什么位置?

x像素宽,y像素高,w图片宽,h图片高
荣耀粉丝11855736  LV9  发表于 2016-9-19 12:24 属地未知 来自:浏览器
潇湘晨语cy 发表于 2016-9-18 12:04
x,y代表坐标,wH代表显示图片的区域大小。

谢谢
荣耀粉丝11855736  LV9  发表于 2016-9-19 12:24 属地未知 来自:浏览器
凌风ing 发表于 2016-9-18 11:42
x像素宽,y像素高,w图片宽,h图片高

谢谢
荣耀粉丝7182585 玩机达人  发表于 2016-9-19 12:48 属地未知 来自:浏览器
雷疯!
荣耀粉丝11855736  LV9  发表于 2016-9-29 20:20 属地未知 来自:浏览器
凌风ing 发表于 2016-9-18 11:42
x像素宽,y像素高,w图片宽,h图片高

应用无效啊?楼主
小依จ  LV8  发表于 2016-9-29 21:31 属地未知 来自:荣耀X2
谢谢楼主
卿尘云曦  LV8  发表于 2017-10-22 08:57 属地未知 来自:荣耀8
蟹蟹
您需要登录后才可以评论 登录 | 立即注册
简体中文 - China
快速回复 返回顶部 返回列表