awtk/demos/assets/raw/ui/edit.xml
2019-01-03 14:45:23 +08:00

72 lines
3.9 KiB
XML

<window anim_hint="htranslate" >
<list_view x="0" y="0" w="100%" h="-50" item_height="36" auto_hide_scroll_bar="true">
<scroll_view name="view" x="0" y="0" w="-12" h="100%">
<list_item style="empty" children_layout="default(r=1,c=0,ym=1)">
<label w="30%" text="Age"/>
<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">
<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%" />
</edit>
</list_item>
<list_item style="empty" children_layout="default(r=1,c=0,ym=1)">
<label w="30%" text="Weight"/>
<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">
<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%" />
</edit>
</list_item>
<list_item style="empty" children_layout="default(r=1,c=0,ym=1)">
<label w="30%" text="Age"/>
<edit w="70%" right_margin="16" tips="uint(0-150)" input_type="uint" min="0" max="150" step="1">
<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%" />
</edit>
</list_item>
<list_item style="empty" children_layout="default(r=1,c=0,ym=1)">
<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">
<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%" />
</edit>
</list_item>
<list_item style="empty" children_layout="default(r=1,c=0,ym=1)">
<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">
<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%" />
</edit>
</list_item>
<list_item style="empty" children_layout="default(r=1,c=0,ym=1)">
<label w="30%" text="Weight"/>
<edit w="70%" right_margin="30" input_type="password">
<check_button style="password_visible" name="visible" x="right" y="0" w="24" h="100%" />
</edit>
</list_item>
<list_item style="empty" children_layout="default(r=1,c=0,ym=1)">
<label w="30%" text="Text"/>
<edit w="70%" left_margin="34" tips="searth" min="0" max="150" step="0.1">
<image draw_type="icon" image="find" x="0" y="0" w="30" h="100%" />
</edit>
</list_item>
<list_item style="empty" children_layout="default(r=1,c=0,ym=1)">
<label w="30%" text="Text"/>
<edit style="dark" w="70%" right_margin="34" tips="searth" min="0" max="150" step="0.1">
<button name="clear" style="edit_clear" x="right" y="bottom" w="30" h="100%" />
</edit>
</list_item>
<list_item style="empty" children_layout="default(r=1,c=0,ym=1)">
<label w="30%" text="Text"/>
<edit w="70%" text="readonly" readonly="true"/>
</list_item>
<list_item style="empty" children_layout="default(r=1,c=0,ym=1)">
<label w="30%" text="Text"/>
<edit w="70%" style="line" tips="underline" text="" />
</list_item>
</scroll_view>
<scroll_bar_d name="bar" x="right" y="0" w="12" h="100%" value="0"/>
</list_view>
<button name="close" x="center" y="bottom:10" w="25%" h="30" text="Close"/>
</window>