blob: 152ec8285f794befce7ca6ad9fe8ae540603cb78 [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. Takaoka4b13b4f2011-02-20 12:54:14 +090034 <switch>
35 <case
36 latin:passwordInput="true"
37 >
38 <!-- This row is intentionally not marked as a top row -->
39 <Row>
40 <Spacer
41 latin:horizontalGap="32.076%p" />
Tadashi G. Takaoka0f901aa2011-01-13 13:43:39 +090042 <Key
Tadashi G. Takaoka4b13b4f2011-02-20 12:54:14 +090043 latin:keyLabel="1" />
44 <Key
45 latin:keyLabel="2" />
46 <Key
47 latin:keyLabel="3" />
48 <Spacer
49 latin:horizontalGap="22.272%p" />
50 <Key
51 latin:keyStyle="deleteKeyStyle"
52 latin:keyWidth="9.804%p"
53 latin:keyEdgeFlags="right" />
54 </Row>
55 <Row>
56 <Spacer
57 latin:horizontalGap="32.076%p" />
58 <Key
59 latin:keyLabel="4" />
60 <Key
61 latin:keyLabel="5" />
62 <Key
63 latin:keyLabel="6" />
64 <Spacer
65 latin:horizontalGap="17.371%p" />
66 <Key
67 latin:keyStyle="returnKeyStyle"
68 latin:keyWidth="14.706%p"
69 latin:keyEdgeFlags="right" />
70 </Row>
71 <Row>
72 <Spacer
73 latin:horizontalGap="32.076%p" />
74 <Key
75 latin:keyLabel="7" />
76 <Key
77 latin:keyLabel="8" />
78 <Key
79 latin:keyLabel="9" />
80 <!-- There is an empty area below the "Enter" key and right of the "9" key. To
81 ignore the touch event on the area, "9" is intentionally not marked as a right
82 edge key. -->
83 </Row>
84 <!-- This row is intentionally not marked as a bottom row -->
85 <Row>
86 <Spacer
87 latin:horizontalGap="44.026%p" />
88 <Key
89 latin:keyLabel="0" />
90 <!-- There is an empty area below the "Enter" key and right of the "#" key. To
91 ignore the touch event on the area, "#" is intentionally not marked as a right
92 edge key. -->
93 </Row>
94 </case>
95 <!-- latin:passwordInput="false" -->
96 <default>
97 <!-- This row is intentionally not marked as a top row -->
98 <Row>
99 <Key
100 latin:keyStyle="tabKeyStyle"
101 latin:keyLabelOption="alignLeft"
102 latin:keyEdgeFlags="left" />
103 <Spacer
104 latin:horizontalGap="4.458%p" />
105 <Key
106 latin:keyLabel="-"
Tadashi G. Takaoka0f901aa2011-01-13 13:43:39 +0900107 latin:keyWidth="8.042%p" />
Tadashi G. Takaoka4b13b4f2011-02-20 12:54:14 +0900108 <Key
109 latin:keyLabel="+"
110 latin:keyWidth="8.042%p" />
111 <Key
112 latin:keyLabel="."
113 latin:keyWidth="8.042%p" />
114 <Spacer
115 latin:horizontalGap="4.458%p" />
116 <Key
117 latin:keyLabel="1" />
118 <Key
119 latin:keyLabel="2" />
120 <Key
121 latin:keyLabel="3" />
122 <Spacer
123 latin:horizontalGap="9.360%p" />
124 <Key
125 latin:keyStyle="deleteKeyStyle"
126 latin:keyWidth="9.804%p"
127 latin:keyEdgeFlags="right" />
128 </Row>
129 <Row>
130 <Spacer
131 latin:horizontalGap="16.406%p" />
132 <Key
133 latin:keyLabel="*"
134 latin:keyWidth="8.042%p" />
135 <Key
136 latin:keyLabel="/"
137 latin:keyWidth="8.042%p" />
138 <Key
139 latin:keyLabel=","
140 latin:keyWidth="8.042%p" />
141 <Spacer
142 latin:horizontalGap="4.458%p" />
143 <Key
144 latin:keyLabel="4" />
145 <Key
146 latin:keyLabel="5" />
147 <Key
148 latin:keyLabel="6" />
149 <Spacer
150 latin:horizontalGap="4.458%p" />
151 <Key
152 latin:keyStyle="returnKeyStyle"
153 latin:keyWidth="14.706%p"
154 latin:keyEdgeFlags="right" />
155 </Row>
156 <Row>
157 <!-- There is an empty area below the "More" key and left of the "(" key. To
158 ignore the touch event on the area, "(" is intentionally not marked as a left
159 edge key. -->
160 <Spacer
161 latin:horizontalGap="16.406%p" />
162 <Key
163 latin:keyLabel="("
164 latin:keyWidth="8.042%p" />
165 <Key
166 latin:keyLabel=")"
167 latin:keyWidth="8.042%p" />
168 <Key
169 latin:keyLabel="="
170 latin:keyWidth="8.042%p" />
171 <Spacer
172 latin:horizontalGap="4.458%p" />
173 <Key
174 latin:keyLabel="7" />
175 <Key
176 latin:keyLabel="8" />
177 <Key
178 latin:keyLabel="9" />
179 <!-- There is an empty area below the "Enter" key and right of the "9" key. To
180 ignore the touch event on the area, "9" is intentionally not marked as a right
181 edge key. -->
182 </Row>
183 <!-- This row is intentionally not marked as a bottom row -->
184 <Row>
185 <!-- There is an empty area below the "More" key and left of the "space" key. To
186 ignore the touch event on the area, "space" is intentionally not marked as a
187 left edge key. -->
188 <Spacer
189 latin:horizontalGap="8.362%p" />
190 <Key
191 latin:keyStyle="settingsKeyStyle"
192 latin:keyWidth="8.042%p" />
193 <Key
194 latin:keyStyle="nonSpecialBackgroundSpaceKeyStyle"
195 latin:keyWidth="24.127%p" />
196 <Spacer
197 latin:horizontalGap="4.458%p" />
198 <Key
199 latin:keyLabel="*" />
200 <Key
201 latin:keyLabel="0" />
202 <Key
203 latin:keyLabel="#" />
204 <switch>
205 <case
206 latin:voiceKeyEnabled="true"
207 >
208 <Key
209 latin:keyStyle="micKeyStyle"
210 latin:keyWidth="8.042%p" />
211 </case>
212 </switch>
213 <!-- There is an empty area below the "Enter" key and right of the "#" key. To
214 ignore the touch event on the area, "#" is intentionally not marked as a right
215 edge key. -->
216 </Row>
217 </default>
218 </switch>
Tadashi G. Takaoka2c60d6e2010-11-23 17:55:22 -0800219</Keyboard>