alpha(渐隐):
<image x="328" y="170" w="64" h="50" src=" arrow.png" visible ="!system.charge.show and system.music_visible eq 0 and system.unlocker_state eq 0">
<animationset interval="800" delay="300">
<animation type="alpha" interpolator="linear" duration="1000" fromAlpha="0" toAlpha="1"/>
</animationset>
</image>
fromAlpha
属性为动画起始时透明度
toAlpha
属性为动画结束时透明度
0.0 表示完全透明
1.0 表示完全不透明
以上值取 0.0-1.0 之间的 float 数据类型
的数字
duration 为动画持续时间,ms 单位
注:visible 要根据实际情况调整,示例表示“非充电”“音乐播放器不可见”“名称定为 unlocker 的锁屏没有触发”的时候。
rotate(旋转):
<image x="100" y="620" w="76" h="84" src="leaves.png" visible ="!system.charge.show and system.music_visible eq 0 and system.unlocker_state eq 0">
<animationset interval="0" >
<animation type="rotate" interpolator="linear" duration="200" fromDegrees="0"toDegrees="49" pivotX="76" pivotY="0"/>
</animationset>
</image>
fromDegrees
为动画起始时物件的角度
toDegrees
属性为动画结束时物件旋
转的角度 可以大于 360 度
说明
当角度为负数——表示逆时针旋转
当角度为正数——表示顺时针旋转