Tadashi G. Takaoka | 2c60d6e | 2010-11-23 17:55:22 -0800 | [diff] [blame] | 1 | <?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. Takaoka | 9f01ed5 | 2010-12-08 14:36:41 +0900 | [diff] [blame] | 23 | latin:keyboardHeight="@dimen/keyboardHeight" |
Tadashi G. Takaoka | ff483e8 | 2011-05-12 14:49:18 +0900 | [diff] [blame^] | 24 | latin:maxKeyboardHeight="@fraction/maxKeyboardHeight" |
| 25 | latin:minKeyboardHeight="@fraction/minKeyboardHeight" |
Tadashi G. Takaoka | 9f01ed5 | 2010-12-08 14:36:41 +0900 | [diff] [blame] | 26 | latin:rowHeight="25%p" |
Tadashi G. Takaoka | 2c60d6e | 2010-11-23 17:55:22 -0800 | [diff] [blame] | 27 | latin:keyWidth="11.949%p" |
| 28 | latin:horizontalGap="@dimen/key_horizontal_gap" |
| 29 | latin:verticalGap="@dimen/key_bottom_gap" |
Tadashi G. Takaoka | 9b6d1d5 | 2010-12-14 15:31:47 +0900 | [diff] [blame] | 30 | latin:popupKeyboardTemplate="@xml/kbd_popup_template" |
| 31 | latin:maxPopupKeyboardColumn="@integer/config_max_popup_keyboard_column" |
Tadashi G. Takaoka | 2c60d6e | 2010-11-23 17:55:22 -0800 | [diff] [blame] | 32 | > |
Tadashi G. Takaoka | 7f0befe | 2010-11-23 23:59:56 -0800 | [diff] [blame] | 33 | <include |
| 34 | latin:keyboardLayout="@xml/kbd_key_styles" /> |
Tadashi G. Takaoka | 6a75cd1 | 2011-03-08 17:48:18 -0800 | [diff] [blame] | 35 | <include |
| 36 | latin:keyboardLayout="@xml/kbd_numkey_styles" /> |
Tadashi G. Takaoka | 4b13b4f | 2011-02-20 12:54:14 +0900 | [diff] [blame] | 37 | <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. Takaoka | 0f901aa | 2011-01-13 13:43:39 +0900 | [diff] [blame] | 45 | <Key |
Tadashi G. Takaoka | 6a75cd1 | 2011-03-08 17:48:18 -0800 | [diff] [blame] | 46 | latin:keyStyle="num1KeyStyle" /> |
Tadashi G. Takaoka | 4b13b4f | 2011-02-20 12:54:14 +0900 | [diff] [blame] | 47 | <Key |
Tadashi G. Takaoka | 6a75cd1 | 2011-03-08 17:48:18 -0800 | [diff] [blame] | 48 | latin:keyStyle="num2KeyStyle" /> |
Tadashi G. Takaoka | 4b13b4f | 2011-02-20 12:54:14 +0900 | [diff] [blame] | 49 | <Key |
Tadashi G. Takaoka | 6a75cd1 | 2011-03-08 17:48:18 -0800 | [diff] [blame] | 50 | latin:keyStyle="num3KeyStyle" /> |
Tadashi G. Takaoka | 4b13b4f | 2011-02-20 12:54:14 +0900 | [diff] [blame] | 51 | <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. Takaoka | 6a75cd1 | 2011-03-08 17:48:18 -0800 | [diff] [blame] | 62 | latin:keyStyle="num4KeyStyle" /> |
Tadashi G. Takaoka | 4b13b4f | 2011-02-20 12:54:14 +0900 | [diff] [blame] | 63 | <Key |
Tadashi G. Takaoka | 6a75cd1 | 2011-03-08 17:48:18 -0800 | [diff] [blame] | 64 | latin:keyStyle="num5KeyStyle" /> |
Tadashi G. Takaoka | 4b13b4f | 2011-02-20 12:54:14 +0900 | [diff] [blame] | 65 | <Key |
Tadashi G. Takaoka | 6a75cd1 | 2011-03-08 17:48:18 -0800 | [diff] [blame] | 66 | latin:keyStyle="num6KeyStyle" /> |
Tadashi G. Takaoka | 4b13b4f | 2011-02-20 12:54:14 +0900 | [diff] [blame] | 67 | <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. Takaoka | 6a75cd1 | 2011-03-08 17:48:18 -0800 | [diff] [blame] | 78 | latin:keyStyle="num7KeyStyle" /> |
Tadashi G. Takaoka | 4b13b4f | 2011-02-20 12:54:14 +0900 | [diff] [blame] | 79 | <Key |
Tadashi G. Takaoka | 6a75cd1 | 2011-03-08 17:48:18 -0800 | [diff] [blame] | 80 | latin:keyStyle="num8KeyStyle" /> |
Tadashi G. Takaoka | 4b13b4f | 2011-02-20 12:54:14 +0900 | [diff] [blame] | 81 | <Key |
Tadashi G. Takaoka | 6a75cd1 | 2011-03-08 17:48:18 -0800 | [diff] [blame] | 82 | latin:keyStyle="num9KeyStyle" /> |
Tadashi G. Takaoka | 4b13b4f | 2011-02-20 12:54:14 +0900 | [diff] [blame] | 83 | <!-- 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. Takaoka | 6a75cd1 | 2011-03-08 17:48:18 -0800 | [diff] [blame] | 92 | latin:keyStyle="num0KeyStyle" /> |
Tadashi G. Takaoka | 4b13b4f | 2011-02-20 12:54:14 +0900 | [diff] [blame] | 93 | <!-- 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. Takaoka | 0f901aa | 2011-01-13 13:43:39 +0900 | [diff] [blame] | 110 | latin:keyWidth="8.042%p" /> |
Tadashi G. Takaoka | 4b13b4f | 2011-02-20 12:54:14 +0900 | [diff] [blame] | 111 | <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. Takaoka | 4199e29 | 2011-02-23 20:31:08 +0900 | [diff] [blame] | 193 | <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. Takaoka | 4b13b4f | 2011-02-20 12:54:14 +0900 | [diff] [blame] | 204 | <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. Takaoka | 2c60d6e | 2010-11-23 17:55:22 -0800 | [diff] [blame] | 230 | </Keyboard> |