awtk/demos/assets/default/raw/ui/soft_keyboard.xml

22 lines
1.0 KiB
XML
Raw Normal View History

2019-03-14 10:52:25 +08:00
2019-11-20 15:47:39 +08:00
<window text="Custom Soft Keyboard" anim_hint="htranslate"
move_focus_up_key="up" move_focus_down_key="down" move_focus_left_key="left" move_focus_right_key="right">
2019-08-22 11:38:23 +08:00
<edit x="c" y="10" w="90%" h="30" focused="true" input_type="custom" text="" tips="custom"/>
2019-03-14 10:52:25 +08:00
2019-11-20 15:47:39 +08:00
<view y="60" x="c" w="90%" h="-60" is_keyboard="true" grab_keys="true"
2019-03-14 10:52:25 +08:00
children_layout="default(r=4,c=4,m=5,s=5)" >
2019-11-20 15:47:39 +08:00
<button focusable="true" name="key" text="0" />
<button focusable="true" name="key" text="1" />
<button focusable="true" name="key" text="2" />
<button focusable="true" name="key" text="3" />
<button focusable="true" name="key" text="4" />
<button focusable="true" name="key" text="5" />
<button focusable="true" name="key" text="6" />
<button focusable="true" name="key" text="7" />
<button focusable="true" name="key" text="8" />
<button focusable="true" name="key" text="9" />
<button focusable="true" name="key" text="#" />
<button focusable="true" name="backspace" text="<=" />
2019-03-14 10:52:25 +08:00
</view>
</window>