<Image x="" y="" centerX="" centerY="" src=""> <SizeAnimation delay="" repeat=""> <Size w="" h="" time=""/> </SizeAnimation> </Image>
| 参 数 | 类 型 | 选 项 | 注 释 |
|---|---|---|---|
| delay | 数值 | 选填 | 延迟,以ms毫秒记。延迟delay毫秒后执行动画播放。 |
| repeat | 数值 | 选填 | 动画重复播放次数,N表示重复N次,0表示无限次循环。 |
| w | 数值 | 必填 | 图片的大小宽,正整数。 |
| h | 数值 | 必填 | 图片的大小高,正整数。 |
| time | 数值 | 必填 | [0-~],相对于起始帧的间隔时间(毫秒),不小于0。 |
<?xml version="1.0" encoding="utf-8"?>
<Lockscreen version="1" screenWidth="1080" frameRate="30" vibrate="false" displayDesktop="true">
<!--背景图片-->
<Image src="bg.jpg" />
<!--狮子左眼眼睛位置和图片命名-->
<Image x="269" y="887" src="zuo.png" >
<SizeAnimation repeat="0" >
<Size w="126" h="100" time="0"/>
<Size w="139" h="110" time="600"/>
<!--在0~600ms时,图片大小由“126,100”增至"139,110"。-->
<Size w="126" h="100" time="1200"/>
<!--在600~1200ms时,图片大小由“139,110”增至"126,100"。-->
</SizeAnimation>
</Image>
<Image x="564" y="937" src="you.png" >
<SizeAnimation repeat="0" >
<Size w="100" h="74" time="0"/>
<Size w="139" h="103" time="600"/>
<Size w="100" h="74" time="1200"/>
</SizeAnimation>
</Image>
</Lockscreen>