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

48 lines
1.6 KiB
XML
Raw Normal View History

2018-10-26 07:25:22 +08:00
<window anim_hint="htranslate">
2018-08-29 17:25:43 +08:00
<app_bar x="0" y="0" w="100%" h="30" >
<label x="0" y="0" w="100%" h="100%" text="Basic Controls" />
</app_bar>
2018-06-08 07:50:15 +08:00
2018-08-29 17:25:43 +08:00
<row x="0" y="40" w="100%" h="30" layout="r:1 c:3 xm:2 s:10">
<button name="inc_value" text="Inc"/>
<button name="close" text="Close"/>
<button name="dec_value" text="Dec"/>
</row>
2018-06-08 07:50:15 +08:00
2018-08-29 17:25:43 +08:00
<row x="0" y="80" w="100%" h="30" layout="r:1 c:3 xm:2 s:10">
2018-12-05 16:23:49 +08:00
<label style="left" name="left" text="Left"/>
<label style="center" name="center" text="Center"/>
<label style="right" name="right" text="Right"/>
2018-08-29 17:25:43 +08:00
</row>
<progress_bar name="bar1" x="10" y="128" w="240" h="30" value="40"/>
<progress_bar name="bar2" x="280" y="128" w="30" h="118" value="20" vertical="true"/>
<column x="20" y="160" w="50%" h="60" layout="r:2 c:1 ym:2 s:10" >
<check_button name="c1" text="Book"/>
<check_button name="c2" text="Food"/>
</column>
<column x="20" y="230" w="50%" h="90" layout="r:3 c:1 ym:2 s:10" >
<radio_button name="r1" text="Book"/>
<radio_button name="r2" text="Food"/>
<radio_button name="r3" text="Pencil" value="true"/>
</column>
2018-11-08 09:32:54 +08:00
<row x="20" y="bottom:60" w="100" h="30" layout="r:1 c:4">
<radio_button style="left"/>
<radio_button style="middle"/>
<radio_button style="right"/>
2018-11-07 18:17:07 +08:00
<check_button style="mute"/>
2018-11-08 09:32:54 +08:00
</grid>
<grid x="20" y="bottom:10" w="80%" h="40" layout="r:1 c:5 xm:2 s:10">
2018-08-29 17:25:43 +08:00
<image draw_type="icon" image="earth"/>
<image draw_type="icon" image="rgba" />
<image draw_type="icon" image="rgb" />
<image draw_type="icon" image="message"/>
<image draw_type="icon" image="red_btn_n"/>
</grid>
2018-06-08 07:50:15 +08:00
</window>