blob: f4a5def9502394756540f992d77128fac25ca4ab [file] [log] [blame]
Tadashi G. Takaoka2c60d6e2010-11-23 17:55:22 -08001<?xml version="1.0" encoding="utf-8"?>
2<!--
3/*
4**
5** Copyright 2008, The Android Open Source Project
6**
7** Licensed under the Apache License, Version 2.0 (the "License");
8** you may not use this file except in compliance with the License.
9** You may obtain a copy of the License at
10**
11** http://www.apache.org/licenses/LICENSE-2.0
12**
13** Unless required by applicable law or agreed to in writing, software
14** distributed under the License is distributed on an "AS IS" BASIS,
15** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16** See the License for the specific language governing permissions and
17** limitations under the License.
18*/
19-->
20
21<Keyboard
22 xmlns:latin="http://schemas.android.com/apk/res/com.android.inputmethod.latin"
Tadashi G. Takaoka9f01ed52010-12-08 14:36:41 +090023 latin:keyboardHeight="@dimen/keyboardHeight"
24 latin:maxKeyboardHeight="50%p"
25 latin:rowHeight="25%p"
Tadashi G. Takaoka2c60d6e2010-11-23 17:55:22 -080026 latin:keyWidth="26.67%p"
27 latin:horizontalGap="@dimen/key_horizontal_gap"
28 latin:verticalGap="@dimen/key_bottom_gap"
Tadashi G. Takaoka9b6d1d52010-12-14 15:31:47 +090029 latin:popupKeyboardTemplate="@xml/kbd_popup_template"
30 latin:maxPopupKeyboardColumn="@integer/config_max_popup_keyboard_column"
Tadashi G. Takaoka2c60d6e2010-11-23 17:55:22 -080031>
32 <include
33 latin:keyboardLayout="@xml/kbd_key_styles" />
Tadashi G. Takaoka9b6d1d52010-12-14 15:31:47 +090034 <switch>
Tadashi G. Takaoka2c60d6e2010-11-23 17:55:22 -080035 <case
36 latin:colorScheme="white"
37 >
38 <key-style
39 latin:styleName="numSpaceKeyStyle"
40 latin:codes="@integer/key_space"
41 latin:keyIcon="@drawable/sym_keyboard_space"
42 latin:iconPreview="@drawable/sym_keyboard_feedback_space" />
43 </case>
44 <case
45 latin:colorScheme="black"
46 >
47 <key-style
48 latin:styleName="numSpaceKeyStyle"
49 latin:codes="@integer/key_space"
50 latin:keyIcon="@drawable/sym_bkeyboard_space"
51 latin:iconPreview="@drawable/sym_keyboard_feedback_space" />
52 </case>
53 </switch>
54 <Row
55 latin:rowEdgeFlags="top"
56 >
57 <Key
58 latin:keyLabel="1"
59 latin:keyEdgeFlags="left" />
60 <Key
61 latin:keyLabel="2" />
62 <Key
63 latin:keyLabel="3" />
64 <Key
65 latin:keyLabel="-"
66 latin:keyStyle="functionalKeyStyle"
67 latin:keyWidth="20%p"
68 latin:keyEdgeFlags="right" />
69 </Row>
70 <Row>
71 <Key
72 latin:keyLabel="4"
73 latin:keyEdgeFlags="left" />
74 <Key
75 latin:keyLabel="5" />
76 <Key
77 latin:keyLabel="6" />
78 <Key
79 latin:keyLabel=","
80 latin:keyStyle="functionalKeyStyle"
81 latin:keyWidth="20%p"
82 latin:keyEdgeFlags="right" />
83 </Row>
84 <Row>
85 <Key
86 latin:keyLabel="7"
87 latin:keyEdgeFlags="left" />
88 <Key
89 latin:keyLabel="8" />
90 <Key
91 latin:keyLabel="9" />
92 <Key
93 latin:keyStyle="deleteKeyStyle"
94 latin:keyWidth="20%p"
95 latin:keyEdgeFlags="right" />
96 </Row>
97 <Row
98 latin:rowEdgeFlags="bottom"
99 >
100 <Key
101 latin:keyStyle="numSpaceKeyStyle"
102 latin:keyEdgeFlags="left" />
103 <Key
104 latin:keyLabel="0" />
105 <Key
106 latin:keyLabel="." />
107 <Key
108 latin:keyStyle="returnKeyStyle"
109 latin:keyWidth="20%p"
110 latin:keyEdgeFlags="right" />
111 </Row>
112</Keyboard>