blob: 012b751159d09542677bcf6c120b81dd3d844263 [file] [log] [blame]
Tadashi G. Takaoka2c60d6e2010-11-23 17:55:22 -08001<?xml version="1.0" encoding="utf-8"?>
2<!--
3/*
4**
5** Copyright 2010, 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="11.949%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>
Tadashi G. Takaoka7f0befe2010-11-23 23:59:56 -080032 <include
33 latin:keyboardLayout="@xml/kbd_key_styles" />
Tadashi G. Takaoka6a75cd12011-03-08 17:48:18 -080034 <include
35 latin:keyboardLayout="@xml/kbd_numkey_styles" />
Tadashi G. Takaoka4b13b4f2011-02-20 12:54:14 +090036 <switch>
37 <case
38 latin:passwordInput="true"
39 >
40 <!-- This row is intentionally not marked as a top row -->
41 <Row>
42 <Spacer
43 latin:horizontalGap="32.076%p" />
Tadashi G. Takaoka0f901aa2011-01-13 13:43:39 +090044 <Key
Tadashi G. Takaoka6a75cd12011-03-08 17:48:18 -080045 latin:keyStyle="num1KeyStyle" />
Tadashi G. Takaoka4b13b4f2011-02-20 12:54:14 +090046 <Key
Tadashi G. Takaoka6a75cd12011-03-08 17:48:18 -080047 latin:keyStyle="num2KeyStyle" />
Tadashi G. Takaoka4b13b4f2011-02-20 12:54:14 +090048 <Key
Tadashi G. Takaoka6a75cd12011-03-08 17:48:18 -080049 latin:keyStyle="num3KeyStyle" />
Tadashi G. Takaoka4b13b4f2011-02-20 12:54:14 +090050 <Spacer
51 latin:horizontalGap="22.272%p" />
52 <Key
53 latin:keyStyle="deleteKeyStyle"
54 latin:keyWidth="9.804%p"
55 latin:keyEdgeFlags="right" />
56 </Row>
57 <Row>
58 <Spacer
59 latin:horizontalGap="32.076%p" />
60 <Key
Tadashi G. Takaoka6a75cd12011-03-08 17:48:18 -080061 latin:keyStyle="num4KeyStyle" />
Tadashi G. Takaoka4b13b4f2011-02-20 12:54:14 +090062 <Key
Tadashi G. Takaoka6a75cd12011-03-08 17:48:18 -080063 latin:keyStyle="num5KeyStyle" />
Tadashi G. Takaoka4b13b4f2011-02-20 12:54:14 +090064 <Key
Tadashi G. Takaoka6a75cd12011-03-08 17:48:18 -080065 latin:keyStyle="num6KeyStyle" />
Tadashi G. Takaoka4b13b4f2011-02-20 12:54:14 +090066 <Spacer
67 latin:horizontalGap="17.371%p" />
68 <Key
69 latin:keyStyle="returnKeyStyle"
70 latin:keyWidth="14.706%p"
71 latin:keyEdgeFlags="right" />
72 </Row>
73 <Row>
74 <Spacer
75 latin:horizontalGap="32.076%p" />
76 <Key
Tadashi G. Takaoka6a75cd12011-03-08 17:48:18 -080077 latin:keyStyle="num7KeyStyle" />
Tadashi G. Takaoka4b13b4f2011-02-20 12:54:14 +090078 <Key
Tadashi G. Takaoka6a75cd12011-03-08 17:48:18 -080079 latin:keyStyle="num8KeyStyle" />
Tadashi G. Takaoka4b13b4f2011-02-20 12:54:14 +090080 <Key
Tadashi G. Takaoka6a75cd12011-03-08 17:48:18 -080081 latin:keyStyle="num9KeyStyle" />
Tadashi G. Takaoka4b13b4f2011-02-20 12:54:14 +090082 <!-- There is an empty area below the "Enter" key and right of the "9" key. To
83 ignore the touch event on the area, "9" is intentionally not marked as a right
84 edge key. -->
85 </Row>
86 <!-- This row is intentionally not marked as a bottom row -->
87 <Row>
88 <Spacer
89 latin:horizontalGap="44.026%p" />
90 <Key
Tadashi G. Takaoka6a75cd12011-03-08 17:48:18 -080091 latin:keyStyle="num0KeyStyle" />
Tadashi G. Takaoka4b13b4f2011-02-20 12:54:14 +090092 <!-- There is an empty area below the "Enter" key and right of the "#" key. To
93 ignore the touch event on the area, "#" is intentionally not marked as a right
94 edge key. -->
95 </Row>
96 </case>
97 <!-- latin:passwordInput="false" -->
98 <default>
99 <!-- This row is intentionally not marked as a top row -->
100 <Row>
101 <Key
102 latin:keyStyle="tabKeyStyle"
103 latin:keyLabelOption="alignLeft"
104 latin:keyEdgeFlags="left" />
105 <Spacer
106 latin:horizontalGap="4.458%p" />
107 <Key
108 latin:keyLabel="-"
Tadashi G. Takaoka0f901aa2011-01-13 13:43:39 +0900109 latin:keyWidth="8.042%p" />
Tadashi G. Takaoka4b13b4f2011-02-20 12:54:14 +0900110 <Key
111 latin:keyLabel="+"
112 latin:keyWidth="8.042%p" />
113 <Key
114 latin:keyLabel="."
115 latin:keyWidth="8.042%p" />
116 <Spacer
117 latin:horizontalGap="4.458%p" />
118 <Key
119 latin:keyLabel="1" />
120 <Key
121 latin:keyLabel="2" />
122 <Key
123 latin:keyLabel="3" />
124 <Spacer
125 latin:horizontalGap="9.360%p" />
126 <Key
127 latin:keyStyle="deleteKeyStyle"
128 latin:keyWidth="9.804%p"
129 latin:keyEdgeFlags="right" />
130 </Row>
131 <Row>
132 <Spacer
133 latin:horizontalGap="16.406%p" />
134 <Key
135 latin:keyLabel="*"
136 latin:keyWidth="8.042%p" />
137 <Key
138 latin:keyLabel="/"
139 latin:keyWidth="8.042%p" />
140 <Key
141 latin:keyLabel=","
142 latin:keyWidth="8.042%p" />
143 <Spacer
144 latin:horizontalGap="4.458%p" />
145 <Key
146 latin:keyLabel="4" />
147 <Key
148 latin:keyLabel="5" />
149 <Key
150 latin:keyLabel="6" />
151 <Spacer
152 latin:horizontalGap="4.458%p" />
153 <Key
154 latin:keyStyle="returnKeyStyle"
155 latin:keyWidth="14.706%p"
156 latin:keyEdgeFlags="right" />
157 </Row>
158 <Row>
159 <!-- There is an empty area below the "More" key and left of the "(" key. To
160 ignore the touch event on the area, "(" is intentionally not marked as a left
161 edge key. -->
162 <Spacer
163 latin:horizontalGap="16.406%p" />
164 <Key
165 latin:keyLabel="("
166 latin:keyWidth="8.042%p" />
167 <Key
168 latin:keyLabel=")"
169 latin:keyWidth="8.042%p" />
170 <Key
171 latin:keyLabel="="
172 latin:keyWidth="8.042%p" />
173 <Spacer
174 latin:horizontalGap="4.458%p" />
175 <Key
176 latin:keyLabel="7" />
177 <Key
178 latin:keyLabel="8" />
179 <Key
180 latin:keyLabel="9" />
181 <!-- There is an empty area below the "Enter" key and right of the "9" key. To
182 ignore the touch event on the area, "9" is intentionally not marked as a right
183 edge key. -->
184 </Row>
185 <!-- This row is intentionally not marked as a bottom row -->
186 <Row>
187 <!-- There is an empty area below the "More" key and left of the "space" key. To
188 ignore the touch event on the area, "space" is intentionally not marked as a
189 left edge key. -->
190 <Spacer
191 latin:horizontalGap="8.362%p" />
Tadashi G. Takaoka4199e292011-02-23 20:31:08 +0900192 <switch>
193 <case latin:hasSettingsKey="true">
194 <Key
195 latin:keyStyle="settingsKeyStyle"
196 latin:keyWidth="8.042%p" />
197 </case>
198 <default>
199 <Spacer
200 latin:horizontalGap="8.042%p" />
201 </default>
202 </switch>
Tadashi G. Takaoka4b13b4f2011-02-20 12:54:14 +0900203 <Key
204 latin:keyStyle="nonSpecialBackgroundSpaceKeyStyle"
205 latin:keyWidth="24.127%p" />
206 <Spacer
207 latin:horizontalGap="4.458%p" />
208 <Key
209 latin:keyLabel="*" />
210 <Key
211 latin:keyLabel="0" />
212 <Key
213 latin:keyLabel="#" />
214 <switch>
215 <case
216 latin:voiceKeyEnabled="true"
217 >
218 <Key
219 latin:keyStyle="micKeyStyle"
220 latin:keyWidth="8.042%p" />
221 </case>
222 </switch>
223 <!-- There is an empty area below the "Enter" key and right of the "#" key. To
224 ignore the touch event on the area, "#" is intentionally not marked as a right
225 edge key. -->
226 </Row>
227 </default>
228 </switch>
Tadashi G. Takaoka2c60d6e2010-11-23 17:55:22 -0800229</Keyboard>