万方方吧 关注:225贴子:5,586
  • 2回复贴,共1

看到一个代码备份个省的找不到

只看楼主收藏回复

话不多说,希望有助于喜欢自己DIY主题的爱好者。
________________________________________________________________________________《《《《《《 锁屏manifest.xml码》》》》》》》
_______________________________________________________________________________
-----图片闪烁,代码如下----
<!--闪烁-->
<Group visibility="not(#unlocker.state)">
<Image x="0" y="860" src="jiesuo.png">
<AlphaAnimation>
<Alpha a="255" time="0"/>
<Alpha a="0" time="2000"/>
<Alpha a="255" time="4000"/>
</AlphaAnimation>
</Image>
</Group>
_______________________________________________________________________________
-----图片移动,代码如下----
<!--飘动插图-->
<Group visibility="not(#unlocker.state)">
<Image x="0" y="815" src="ding.png" align="right" alignV="center">
<PositionAnimation>
<Position x="-900" y="0" time="2000"/>
<Position x="900" y="0" time="4000"/>
<Position x="0" y="0" time="50000"/>
</PositionAnimation>
</Image> </Group>
________________________________________________________________________________-----定义图片连续动画,代码如下----
<Var name="f_id">
<VariableAnimation>
<AniFrame value="1" time="0"/>
<AniFrame value="3" time="100"/>
<AniFrame value="1" time="100"/>
<AniFrame value="1" time="100"/>
</VariableAnimation>
</Var>
<Image x="#screen_width/2" y="1035" align="center" alignV="top" src="f/f.png" srcid="int(#f_id)"/>
________________________________________________________________________________-----双击更换壁纸,代码如下----
<Button x="0" y="0" w="704" h="1624">
<Triggers>
<Trigger action="double">
<VariableCommand name="id" expression="ifelse(ge(#id,40),0,#id+1)" persist="true"/>
</Trigger>
</Triggers>
</Button>
<!-- 预设的壁纸 -->
<Image src="rw/rw_0.png" x="0" y="0" alignV="bottom" visibility="eq(#id,0)"/>
<Image src="rw/rw_1.png" x="0" y="0" alignV="bottom" visibility="eq(#id,1)"/>
<Image src="rw/rw_2.png" x="0" y="0" alignV="bottom" visibility="eq(#id,2)"/>
<Image src="rw/rw_3.png" x="0" y="0" alignV="bottom" visibility="eq(#id,3)"/>
<Image src="rw/rw_4.png" x="0" y="0" alignV="bottom" visibility="eq(#id,4)"/>
<Image src="rw/rw_5.png" x="0" y="0" alignV="bottom" visibility="eq(#id,5)"/>
<Image src="rw/rw_6.png" x="0" y="0" alignV="bottom" visibility="eq(#id,6)"/>
<Image src="rw/rw_7.png" x="0" y="0" alignV="bottom" visibility="eq(#id,7)"/>
<Image src="rw/rw_8.png" x="0" y="0" alignV="bottom" visibility="eq(#id,8)"/>
<Image src="rw/rw_9.png" x="0" y="0" alignV="bottom" visibility="eq(#id,9)"/>
<Image src="rw/rw_10.png" x="0" y="0" alignV="bottom" visibility="eq(#id,10)"/>
<Image src="rw/rw_11.png" x="0" y="0" alignV="bottom" visibility="eq(#id,11)"/>
<Image src="rw/rw_12.png" x="0" y="0" alignV="bottom" visibility="eq(#id,12)"/>
<Image src="rw/rw_13.png" x="0" y="0" alignV="bottom" visibility="eq(#id,13)"/>
<Image src="rw/rw_14.png" x="0" y="0" alignV="bottom" visibility="eq(#id,14)"/>
<Image src="rw/rw_15.png" x="0" y="0" alignV="bottom" visibility="eq(#id,15)"/>
<Image src="rw/rw_15.png" x="0" y="0" alignV="bottom" visibility="eq(#id,16)"/>
<Image src="rw/rw_17.png" x="0" y="0" alignV="bottom" visibility="eq(#id,17)"/>
<Image src="rw/rw_18.png" x="0" y="0" alignV="bottom" visibility="eq(#id,18)"/>
<Image src="rw/rw_19.png" x="0" y="0" alignV="bottom" visibility="eq(#id,19)"/>
<Image src="rw/rw_20.png" x="0" y="0" alignV="bottom" visibility="eq(#id,20)"/>
<Image src="rw/rw_21.png" x="0" y="0" alignV="bottom" visibility="eq(#id,21)"/>
<Image src="rw/rw_22.png" x="0" y="0" alignV="bottom" visibility="eq(#id,22)"/>
<Image src="rw/rw_23.png" x="0" y="0" alignV="bottom" visibility="eq(#id,23)"/>
<Image src="rw/rw_24.png" x="0" y="0" alignV="bottom" visibility="eq(#id,24)"/>
<Image src="rw/rw_25.png" x="0" y="0" alignV="bottom" visibility="eq(#id,25)"/>
<Image src="rw/rw_26.png" x="0" y="0" alignV="bottom" visibility="eq(#id,26)"/>
<Image src="rw/rw_27.png" x="0" y="0" alignV="bottom" visibility="eq(#id,27)"/>
<Image src="rw/rw_28.png" x="0" y="0" alignV="bottom" visibility="eq(#id,28)"/>
<Image src="rw/rw_29.png" x="0" y="0" alignV="bottom" visibility="eq(#id,29)"/>
<Image src="rw/rw_30.png" x="0" y="0" alignV="bottom" visibility="eq(#id,30)"/>
<Image src="rw/rw_31.png" x="0" y="0" alignV="bottom" visibility="eq(#id,31)"/>
<Image src="rw/rw_32.png" x="0" y="0" alignV="bottom" visibility="eq(#id,32)"/>
<Image src="rw/rw_33.png" x="0" y="0" alignV="bottom" visibility="eq(#id,33)"/>
<Image src="rw/rw_34.png" x="0" y="0" alignV="bottom" visibility="eq(#id,34)"/>
<Image src="rw/rw_35.png" x="0" y="0" alignV="bottom" visibility="eq(#id,35)"/>
<Image src="rw/rw_36.png" x="0" y="0" alignV="bottom" visibility="eq(#id,36)"/>
<Image src="rw/rw_37.png" x="0" y="0" alignV="bottom" visibility="eq(#id,37)"/>
<Image src="rw/rw_38.png" x="0" y="0" alignV="bottom" visibility="eq(#id,38)"/>
<Image src="rw/rw_39.png" x="0" y="0" alignV="bottom" visibility="eq(#id,39)"/>
______________________________________________________________________________
-----图片旋转,代码如下----
<Image x="0" y="0" src="zhuan.png"w="900"h="900"centerX="450"centerY="450" visibility


IP属地:河北来自Android客户端1楼2014-03-23 08:03回复
    好东西,收藏了


    2楼2014-03-23 08:21
    回复
      哦 在这里 我就奇怪小米主题吧那个不可能会啊 原来是复制这里的
      在记忆的深处里,自己,早已经不存在了


      IP属地:广东来自Android客户端3楼2014-03-25 09:36
      回复