awtk/demos/assets/default/raw/ui/guage.xml
2019-10-18 03:18:12 -07:00

22 lines
945 B
XML

<window style="dark" anim_hint="htranslate" >
<guage x="c" y="10" w="240" h="240" image="guage_bg" >
<guage_pointer x="c" y="50" w="24" h="140" value="-128" image="guage_pointer"
animation="value(from=-128, to=128, yoyo_times=1000, duration=3000, delay=1000)"/>
</guage>
<guage x="c" y="bottom:60" w="240" h="240" image="guage_bg" >
<guage_pointer x="c" y="50" w="12" h="140" value="-128"
animation="value(from=-128, to=128, yoyo_times=1000, duration=3000, delay=1000)"/>
<guage_pointer x="c" y="50" w="12" h="140" value="-128" image="pointer"
animation="value(from=-128, to=128, yoyo_times=1000, duration=3000)"/>
</guage>
<view x="0" y="bottom:10" w="100%" h="40" children_layout="default(r=1,c=4,s=5,m=5)">
<button name="start" text="Start"/>
<button name="pause" text="Pause"/>
<button name="stop" text="Stop"/>
<button name="close" text="Close"/>
</view>
</window>