blob: 7cb77ea001b80571bdc572690d3c0bd648ef4e88 [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"
Tadashi G. Takaokaff483e82011-05-12 14:49:18 +090024 latin:maxKeyboardHeight="@fraction/maxKeyboardHeight"
25 latin:minKeyboardHeight="@fraction/minKeyboardHeight"
Tadashi G. Takaoka9f01ed52010-12-08 14:36:41 +090026 latin:rowHeight="25%p"
Tadashi G. Takaoka2c60d6e2010-11-23 17:55:22 -080027 latin:keyWidth="11.949%p"
28 latin:horizontalGap="@dimen/key_horizontal_gap"
29 latin:verticalGap="@dimen/key_bottom_gap"
Tadashi G. Takaoka9b6d1d52010-12-14 15:31:47 +090030 latin:popupKeyboardTemplate="@xml/kbd_popup_template"
31 latin:maxPopupKeyboardColumn="@integer/config_max_popup_keyboard_column"
Tadashi G. Takaoka2c60d6e2010-11-23 17:55:22 -080032>
Tadashi G. Takaoka7f0befe2010-11-23 23:59:56 -080033 <include
34 latin:keyboardLayout="@xml/kbd_key_styles" />
Tadashi G. Takaoka6a75cd12011-03-08 17:48:18 -080035 <include
36 latin:keyboardLayout="@xml/kbd_numkey_styles" />
Tadashi G. Takaoka4b13b4f2011-02-20 12:54:14 +090037 <switch>
38 <case
39 latin:passwordInput="true"
40 >
41 <!-- This row is intentionally not marked as a top row -->
42 <Row>
43 <Spacer
44 latin:horizontalGap="32.076%p" />
Tadashi G. Takaoka0f901aa2011-01-13 13:43:39 +090045 <Key
Tadashi G. Takaoka6a75cd12011-03-08 17:48:18 -080046 latin:keyStyle="num1KeyStyle" />
Tadashi G. Takaoka4b13b4f2011-02-20 12:54:14 +090047 <Key
Tadashi G. Takaoka6a75cd12011-03-08 17:48:18 -080048 latin:keyStyle="num2KeyStyle" />
Tadashi G. Takaoka4b13b4f2011-02-20 12:54:14 +090049 <Key
Tadashi G. Takaoka6a75cd12011-03-08 17:48:18 -080050 latin:keyStyle="num3KeyStyle" />
Tadashi G. Takaoka4b13b4f2011-02-20 12:54:14 +090051 <Spacer
52 latin:horizontalGap="22.272%p" />
53 <Key
54 latin:keyStyle="deleteKeyStyle"
55 latin:keyWidth="9.804%p"
56 latin:keyEdgeFlags="right" />
57 </Row>
58 <Row>
59 <Spacer
60 latin:horizontalGap="32.076%p" />
61 <Key
Tadashi G. Takaoka6a75cd12011-03-08 17:48:18 -080062 latin:keyStyle="num4KeyStyle" />
Tadashi G. Takaoka4b13b4f2011-02-20 12:54:14 +090063 <Key
Tadashi G. Takaoka6a75cd12011-03-08 17:48:18 -080064 latin:keyStyle="num5KeyStyle" />
Tadashi G. Takaoka4b13b4f2011-02-20 12:54:14 +090065 <Key
Tadashi G. Takaoka6a75cd12011-03-08 17:48:18 -080066 latin:keyStyle="num6KeyStyle" />
Tadashi G. Takaoka4b13b4f2011-02-20 12:54:14 +090067 <Spacer
68 latin:horizontalGap="17.371%p" />
69 <Key
70 latin:keyStyle="returnKeyStyle"
71 latin:keyWidth="14.706%p"
72 latin:keyEdgeFlags="right" />
73 </Row>
74 <Row>
75 <Spacer
76 latin:horizontalGap="32.076%p" />
77 <Key
Tadashi G. Takaoka6a75cd12011-03-08 17:48:18 -080078 latin:keyStyle="num7KeyStyle" />
Tadashi G. Takaoka4b13b4f2011-02-20 12:54:14 +090079 <Key
Tadashi G. Takaoka6a75cd12011-03-08 17:48:18 -080080 latin:keyStyle="num8KeyStyle" />
Tadashi G. Takaoka4b13b4f2011-02-20 12:54:14 +090081 <Key
Tadashi G. Takaoka6a75cd12011-03-08 17:48:18 -080082 latin:keyStyle="num9KeyStyle" />
Tadashi G. Takaoka4b13b4f2011-02-20 12:54:14 +090083 <!-- There is an empty area below the "Enter" key and right of the "9" key. To
84 ignore the touch event on the area, "9" is intentionally not marked as a right
85 edge key. -->
86 </Row>
87 <!-- This row is intentionally not marked as a bottom row -->
88 <Row>
89 <Spacer
90 latin:horizontalGap="44.026%p" />
91 <Key
Tadashi G. Takaoka6a75cd12011-03-08 17:48:18 -080092 latin:keyStyle="num0KeyStyle" />
Tadashi G. Takaoka4b13b4f2011-02-20 12:54:14 +090093 <!-- There is an empty area below the "Enter" key and right of the "#" key. To
94 ignore the touch event on the area, "#" is intentionally not marked as a right
95 edge key. -->
96 </Row>
97 </case>
98 <!-- latin:passwordInput="false" -->
99 <default>
100 <!-- This row is intentionally not marked as a top row -->
101 <Row>
102 <Key
103 latin:keyStyle="tabKeyStyle"
104 latin:keyLabelOption="alignLeft"
105 latin:keyEdgeFlags="left" />
106 <Spacer
107 latin:horizontalGap="4.458%p" />
108 <Key
109 latin:keyLabel="-"
Tadashi G. Takaoka0f901aa2011-01-13 13:43:39 +0900110 latin:keyWidth="8.042%p" />
Tadashi G. Takaoka4b13b4f2011-02-20 12:54:14 +0900111 <Key
112 latin:keyLabel="+"
113 latin:keyWidth="8.042%p" />
114 <Key
115 latin:keyLabel="."
116 latin:keyWidth="8.042%p" />
117 <Spacer
118 latin:horizontalGap="4.458%p" />
119 <Key
120 latin:keyLabel="1" />
121 <Key
122 latin:keyLabel="2" />
123 <Key
124 latin:keyLabel="3" />
125 <Spacer
126 latin:horizontalGap="9.360%p" />
127 <Key
128 latin:keyStyle="deleteKeyStyle"
129 latin:keyWidth="9.804%p"
130 latin:keyEdgeFlags="right" />
131 </Row>
132 <Row>
133 <Spacer
134 latin:horizontalGap="16.406%p" />
135 <Key
136 latin:keyLabel="*"
137 latin:keyWidth="8.042%p" />
138 <Key
139 latin:keyLabel="/"
140 latin:keyWidth="8.042%p" />
141 <Key
142 latin:keyLabel=","
143 latin:keyWidth="8.042%p" />
144 <Spacer
145 latin:horizontalGap="4.458%p" />
146 <Key
147 latin:keyLabel="4" />
148 <Key
149 latin:keyLabel="5" />
150 <Key
151 latin:keyLabel="6" />
152 <Spacer
153 latin:horizontalGap="4.458%p" />
154 <Key
155 latin:keyStyle="returnKeyStyle"
156 latin:keyWidth="14.706%p"
157 latin:keyEdgeFlags="right" />
158 </Row>
159 <Row>
160 <!-- There is an empty area below the "More" key and left of the "(" key. To
161 ignore the touch event on the area, "(" is intentionally not marked as a left
162 edge key. -->
163 <Spacer
164 latin:horizontalGap="16.406%p" />
165 <Key
166 latin:keyLabel="("
167 latin:keyWidth="8.042%p" />
168 <Key
169 latin:keyLabel=")"
170 latin:keyWidth="8.042%p" />
171 <Key
172 latin:keyLabel="="
173 latin:keyWidth="8.042%p" />
174 <Spacer
175 latin:horizontalGap="4.458%p" />
176 <Key
177 latin:keyLabel="7" />
178 <Key
179 latin:keyLabel="8" />
180 <Key
181 latin:keyLabel="9" />
182 <!-- There is an empty area below the "Enter" key and right of the "9" key. To
183 ignore the touch event on the area, "9" is intentionally not marked as a right
184 edge key. -->
185 </Row>
186 <!-- This row is intentionally not marked as a bottom row -->
187 <Row>
188 <!-- There is an empty area below the "More" key and left of the "space" key. To
189 ignore the touch event on the area, "space" is intentionally not marked as a
190 left edge key. -->
191 <Spacer
192 latin:horizontalGap="8.362%p" />
Tadashi G. Takaoka4199e292011-02-23 20:31:08 +0900193 <switch>
194 <case latin:hasSettingsKey="true">
195 <Key
196 latin:keyStyle="settingsKeyStyle"
197 latin:keyWidth="8.042%p" />
198 </case>
199 <default>
200 <Spacer
201 latin:horizontalGap="8.042%p" />
202 </default>
203 </switch>
Tadashi G. Takaoka4b13b4f2011-02-20 12:54:14 +0900204 <Key
205 latin:keyStyle="nonSpecialBackgroundSpaceKeyStyle"
206 latin:keyWidth="24.127%p" />
207 <Spacer
208 latin:horizontalGap="4.458%p" />
209 <Key
210 latin:keyLabel="*" />
211 <Key
212 latin:keyLabel="0" />
213 <Key
214 latin:keyLabel="#" />
215 <switch>
216 <case
217 latin:voiceKeyEnabled="true"
218 >
219 <Key
220 latin:keyStyle="micKeyStyle"
221 latin:keyWidth="8.042%p" />
222 </case>
223 </switch>
224 <!-- There is an empty area below the "Enter" key and right of the "#" key. To
225 ignore the touch event on the area, "#" is intentionally not marked as a right
226 edge key. -->
227 </Row>
228 </default>
229 </switch>
Tadashi G. Takaoka2c60d6e2010-11-23 17:55:22 -0800230</Keyboard>