This animation implements 360-degree view of panoramic images when a user changes the view manually or through a sensor.
An example is the theme A Thousand Miles of Rivers and Mountains VR.Spring. You can search for it in HUAWEI Themes to experience the effect.
<?xml version="1.0" encoding="utf-8"?>
<Lockscreen version="1" frameRate="30" displayDesktop="true" screenWidth="1080">
<Var name="w" expression="#screen_width" persist="true" const="true" />
<Var name="h" expression="#screen_height" persist="true" const="true" />
<Var name="pop" expression="0" const="false" />
<Var name="touchtype_chun" expression="1"/>
<!-- Parsing of the spherical panoramic image-->
<VR src="ball.jpg" imageType="SPHERICAL" touchType="#touchtype_chun" />
<!-- Button for switching the panoramic view change mode-->
<Image x="#w-174" y="#h-224" src="btn.png" srcid="#touchtype_chun" visibility="eq(#pop,0)"/>
<Button x="#w-174" y="#h-224" w="125" h="125" visibility="eq(#pop,0)">
<Trigger action="up">
<VariableCommand name="touchtype_chun" expression="1-#touchtype_chun"/>
</Trigger>
</Button>
<!-- Slide up to unlock the screen.-->
<Button y="#h/3" x="0" h="#h*2/3" w="#w">
<Triggers>
<Trigger action="up">
<ExternCommand condition="gt(#touch_begin_y-#touch_y,400)" command="unlock"/>
</Trigger>
</Triggers>
</Button>
</Lockscreen>