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

72 lines
3.9 KiB
XML
Raw Normal View History

2018-07-05 17:27:17 +08:00
<window anim_hint="htranslate" >
2018-07-09 18:17:21 +08:00
<list_view x="0" y="0" w="100%" h="-50" item_height="36" auto_hide_scroll_bar="true">
2018-07-05 17:27:17 +08:00
<scroll_view name="view" x="0" y="0" w="-12" h="100%">
2019-01-03 14:45:23 +08:00
<list_item style="empty" children_layout="default(r=1,c=0,ym=1)">
2018-07-05 17:27:17 +08:00
<label w="30%" text="Age"/>
2018-10-26 11:19:38 +08:00
<edit w="70%" right_margin="16" tips="uint(0-150) auto_fix" input_type="uint" min="0" max="150" step="1" auto_fix="true" style="number">
2018-07-17 11:27:14 +08:00
<button name="inc" repeat="300" style="spinbox_up" x="right" y="0" w="15" h="50%" />
<button name="dec" repeat="300" style="spinbox_down" x="right" y="bottom" w="15" h="50%" />
2018-07-05 17:27:17 +08:00
</edit>
</list_item>
2019-01-03 14:45:23 +08:00
<list_item style="empty" children_layout="default(r=1,c=0,ym=1)">
2018-07-05 17:27:17 +08:00
<label w="30%" text="Weight"/>
2018-10-26 11:19:38 +08:00
<edit w="70%" right_margin="16" tips="ufloat(10-150) auto_fix" input_type="ufloat" min="10" max="150" step="0.1" auto_fix="true" style="number">
2018-07-17 11:27:14 +08:00
<button name="inc" repeat="300" style="spinbox_up" x="right" y="0" w="15" h="50%" />
<button name="dec" repeat="300" style="spinbox_down" x="right" y="bottom" w="15" h="50%" />
2018-07-05 17:27:17 +08:00
</edit>
</list_item>
2019-01-03 14:45:23 +08:00
<list_item style="empty" children_layout="default(r=1,c=0,ym=1)">
2018-07-05 17:27:17 +08:00
<label w="30%" text="Age"/>
<edit w="70%" right_margin="16" tips="uint(0-150)" input_type="uint" min="0" max="150" step="1">
2018-07-17 11:27:14 +08:00
<button name="inc" repeat="300" style="spinbox_up" x="right" y="0" w="15" h="50%" />
<button name="dec" repeat="300" style="spinbox_down" x="right" y="bottom" w="15" h="50%" />
2018-07-05 17:27:17 +08:00
</edit>
</list_item>
2019-01-03 14:45:23 +08:00
<list_item style="empty" children_layout="default(r=1,c=0,ym=1)">
2018-07-05 17:27:17 +08:00
<label w="30%" text="Weight"/>
<edit w="70%" right_margin="16" tips="ufloat(10-150)" input_type="ufloat" min="10" max="150" step="0.1">
2018-07-17 11:27:14 +08:00
<button name="inc" repeat="300" style="spinbox_up" x="right" y="0" w="15" h="50%" />
<button name="dec" repeat="300" style="spinbox_down" x="right" y="bottom" w="15" h="50%" />
2018-07-05 17:27:17 +08:00
</edit>
</list_item>
2018-06-29 17:22:57 +08:00
2019-01-03 14:45:23 +08:00
<list_item style="empty" children_layout="default(r=1,c=0,ym=1)">
2018-07-05 17:27:17 +08:00
<label w="30%" text="Age"/>
<edit w="70%" left_margin="34" right_margin="34" tips="uint(0-150)" input_type="uint" min="0" max="150" step="1" auto_fix="true">
2018-07-17 11:27:14 +08:00
<button name="dec" repeat="300" style="spinbox_left" x="0" y="0" w="30" h="100%" />
<button name="inc" repeat="300" style="spinbox_right" x="right" y="bottom" w="30" h="100%" />
2018-07-05 17:27:17 +08:00
</edit>
</list_item>
2019-01-03 14:45:23 +08:00
<list_item style="empty" children_layout="default(r=1,c=0,ym=1)">
2018-07-05 17:27:17 +08:00
<label w="30%" text="Weight"/>
2019-01-03 14:45:23 +08:00
<edit w="70%" right_margin="30" input_type="password">
<check_button style="password_visible" name="visible" x="right" y="0" w="24" h="100%" />
2018-07-05 17:27:17 +08:00
</edit>
</list_item>
2019-01-03 14:45:23 +08:00
<list_item style="empty" children_layout="default(r=1,c=0,ym=1)">
2018-07-05 17:27:17 +08:00
<label w="30%" text="Text"/>
<edit w="70%" left_margin="34" tips="searth" min="0" max="150" step="0.1">
2018-07-11 17:37:08 +08:00
<image draw_type="icon" image="find" x="0" y="0" w="30" h="100%" />
2018-07-05 17:27:17 +08:00
</edit>
</list_item>
2019-01-03 14:45:23 +08:00
<list_item style="empty" children_layout="default(r=1,c=0,ym=1)">
2018-07-05 17:27:17 +08:00
<label w="30%" text="Text"/>
2018-10-30 14:47:49 +08:00
<edit style="dark" w="70%" right_margin="34" tips="searth" min="0" max="150" step="0.1">
2018-07-17 11:27:14 +08:00
<button name="clear" style="edit_clear" x="right" y="bottom" w="30" h="100%" />
2018-07-05 17:27:17 +08:00
</edit>
</list_item>
2019-01-03 14:45:23 +08:00
<list_item style="empty" children_layout="default(r=1,c=0,ym=1)">
2018-07-05 17:27:17 +08:00
<label w="30%" text="Text"/>
<edit w="70%" text="readonly" readonly="true"/>
</list_item>
2019-01-03 14:45:23 +08:00
<list_item style="empty" children_layout="default(r=1,c=0,ym=1)">
2018-07-05 17:27:17 +08:00
<label w="30%" text="Text"/>
2018-07-17 11:27:14 +08:00
<edit w="70%" style="line" tips="underline" text="" />
2018-07-05 17:27:17 +08:00
</list_item>
</scroll_view>
<scroll_bar_d name="bar" x="right" y="0" w="12" h="100%" value="0"/>
</list_view>
2018-06-29 17:22:57 +08:00
<button name="close" x="center" y="bottom:10" w="25%" h="30" text="Close"/>
2018-06-29 15:46:43 +08:00
</window>