blob: f9096fc2c64e49f8de44367c78b415fb391709ad [file] [log] [blame]
Tadashi G. Takaoka0d22fc42011-05-30 20:12:04 +09001<?xml version="1.0" encoding="utf-8"?>
2<!--
3/*
4**
5** Copyright 2011, 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"
23 latin:keyboardHeight="@dimen/keyboardHeight"
24 latin:maxKeyboardHeight="50%p"
25 latin:rowHeight="25%p"
26 latin:keyWidth="16.75%p"
27 latin:horizontalGap="@dimen/key_horizontal_gap"
28 latin:verticalGap="@dimen/key_bottom_gap"
29 latin:popupKeyboardTemplate="@xml/kbd_popup_template"
30 latin:maxPopupKeyboardColumn="@integer/config_max_popup_keyboard_column"
31>
32 <include
33 latin:keyboardLayout="@xml/kbd_key_styles" />
34 <include
35 latin:keyboardLayout="@xml/kbd_numkey_styles" />
36 <switch>
37 <case
38 latin:passwordInput="true"
39 >
40 <!-- This row is intentionally not marked as a top row -->
41 <Row>
42 <Key
43 latin:keyStyle="num1KeyStyle"
44 latin:keyXPos="24.875%p" />
45 <Key
46 latin:keyStyle="num2KeyStyle" />
47 <Key
48 latin:keyStyle="num3KeyStyle" />
49 <Key
50 latin:keyStyle="deleteKeyStyle"
51 latin:keyXPos="-11.00%p"
52 latin:keyWidth="fillRight"
53 latin:keyEdgeFlags="right" />
54 </Row>
55 <Row>
56 <Key
57 latin:keyStyle="num4KeyStyle"
58 latin:keyXPos="24.875%p" />
59 <Key
60 latin:keyStyle="num5KeyStyle" />
61 <Key
62 latin:keyStyle="num6KeyStyle" />
63 <Key
64 latin:keyStyle="returnKeyStyle"
65 latin:keyXPos="-11.00%p"
66 latin:keyWidth="fillRight"
67 latin:keyEdgeFlags="right" />
68 </Row>
69 <Row>
70 <Key
71 latin:keyStyle="num7KeyStyle"
72 latin:keyXPos="24.875%p" />
73 <Key
74 latin:keyStyle="num8KeyStyle" />
75 <Key
76 latin:keyStyle="num9KeyStyle" />
77 </Row>
78 <!-- This row is intentionally not marked as a bottom row -->
79 <Row>
80 <Key
81 latin:keyStyle="tabKeyStyle"
82 latin:keyWidth="11.00%p"
83 latin:keyEdgeFlags="left" />
84 <Spacer
85 latin:keyXPos="24.875%p" />
86 <Key
87 latin:keyStyle="num0KeyStyle" />
88 <Spacer />
89 <Key
90 latin:keyStyle="micOrSettingsKeyStyle"
91 latin:keyXPos="-11.00%p"
92 latin:keyWidth="fillRight"
93 latin:keyEdgeFlags="right" />
94 </Row>
95 </case>
96 <!-- latin:passwordInput="false" -->
97 <default>
98 <!-- This row is intentionally not marked as a top row -->
99 <Row>
100 <Key
101 latin:keyLabel="-"
102 latin:keyXPos="11.00%p"
103 latin:keyWidth="9.25%p" />
104 <Key
105 latin:keyLabel="+"
106 latin:keyWidth="9.25%p" />
107 <Key
108 latin:keyLabel="."
109 latin:keyWidth="9.25%p" />
110 <Key
111 latin:keyLabel="1"
112 latin:keyXPos="38.75%p" />
113 <Key
114 latin:keyLabel="2" />
115 <Key
116 latin:keyLabel="3" />
117 <Key
118 latin:keyStyle="deleteKeyStyle"
119 latin:keyXPos="-11.00%p"
120 latin:keyWidth="fillBoth"
121 latin:keyEdgeFlags="right" />
122 </Row>
123 <Row>
124 <Key
125 latin:keyLabel="*"
126 latin:keyXPos="11.00%p"
127 latin:keyWidth="9.25%p" />
128 <Key
129 latin:keyLabel="/"
130 latin:keyWidth="9.25%p" />
131 <Key
132 latin:keyLabel=","
133 latin:keyWidth="9.25%p" />
134 <Key
135 latin:keyLabel="4"
136 latin:keyXPos="38.75%p" />
137 <Key
138 latin:keyLabel="5" />
139 <Key
140 latin:keyLabel="6" />
141 <Key
142 latin:keyStyle="returnKeyStyle"
143 latin:keyXPos="-11.00%p"
144 latin:keyWidth="fillBoth"
145 latin:keyEdgeFlags="right" />
146 </Row>
147 <Row>
148 <!-- There is an empty area below the "More" key and left of the "(" key. To
149 ignore the touch event on the area, "(" is intentionally not marked as a left
150 edge key. -->
151 <Key
152 latin:keyLabel="("
153 latin:keyXPos="11.00%p"
154 latin:keyWidth="9.25%p" />
155 <Key
156 latin:keyLabel=")"
157 latin:keyWidth="9.25%p" />
158 <Key
159 latin:keyLabel="="
160 latin:keyWidth="9.25%p" />
161 <Key
162 latin:keyLabel="7"
163 latin:keyXPos="38.75%p" />
164 <Key
165 latin:keyLabel="8" />
166 <Key
167 latin:keyLabel="9" />
168 </Row>
169 <!-- This row is intentionally not marked as a bottom row -->
170 <Row>
171 <Key
172 latin:keyStyle="tabKeyStyle"
173 latin:keyWidth="11.00%p"
174 latin:keyEdgeFlags="left" />
175 <Key
176 latin:keyStyle="nonSpecialBackgroundSpaceKeyStyle"
177 latin:keyWidth="27.75%p" />
178 <Key
179 latin:keyLabel="*"
180 latin:keyXPos="38.75%p" />
181 <Key
182 latin:keyLabel="0" />
183 <Key
184 latin:keyLabel="#" />
185 <Key
186 latin:keyStyle="micOrSettingsKeyStyle"
187 latin:keyXPos="-11.00%p"
188 latin:keyWidth="fillBoth"
189 latin:keyEdgeFlags="right" />
190 </Row>
191 </default>
192 </switch>
193</Keyboard>