awtk/demos/res/raw/ui/basic.xml

21 lines
1.1 KiB
XML
Raw Normal View History

2018-06-08 07:50:15 +08:00
<window name="main" x="0" y="0" w="320" h="480">
<button name="inc" x="10" y="5" w="25%" h="30" text="Inc"/>
<button name="test" x="center" y="5" w="25%" h="30" text="MemTest"/>
<button name="dec" x="right:10" y="5" w="25%" h="30" text="Dec"/>
<label name="left" x="10" y="40" w="30%" h="30" text="Left"/>
<label name="center" x="center" y="40" w="25%" h="30" text="Center"/>
<label name="right" x="right:10" y="40" w="30%" h="30" text="Right"/>
<progress_bar name="bar1" x="10" y="70" w="240" h="30" value="40"/>
<progress_bar name="bar2" x="280" y="70" w="30" h="118" value="20" vertical="true"/>
<check_button name="c1" x="10" y="110" w="80" h="30" text="Book"/>
<check_button name="c2" x="100" y="110" w="80" h="30" text="Food"/>
<radio_button name="r1" x="10" y="150" w="80" h="30" text="Book"/>
<radio_button name="r2" x="100" y="150" w="80" h="30" text="Food"/>
<radio_button name="r3" x="190" y="150" w="80" h="30" text="Pencil" value="true"/>
<image name="img" image="earth" x="10" y="360" w="100" h="100"/>
<image name="img" image="rgb" x="200" y="360" w="100" h="100"/>
</window>