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 | abd7392 | 2011-06-02 21:11:45 +0900 | [diff] [blame^] | 27 | latin:keyWidth="13.250%p" |
Tadashi G. Takaoka | 2c60d6e | 2010-11-23 17:55:22 -0800 | [diff] [blame] | 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> |
Tadashi G. Takaoka | 0f901aa | 2011-01-13 13:43:39 +0900 | [diff] [blame] | 43 | <Key |
Tadashi G. Takaoka | 327763e | 2011-05-30 20:05:50 +0900 | [diff] [blame] | 44 | latin:keyStyle="tabKeyStyle" |
| 45 | latin:keyLabelOption="alignLeft" |
Tadashi G. Takaoka | abd7392 | 2011-06-02 21:11:45 +0900 | [diff] [blame^] | 46 | latin:keyWidth="11.172%p" |
Tadashi G. Takaoka | 327763e | 2011-05-30 20:05:50 +0900 | [diff] [blame] | 47 | latin:keyEdgeFlags="left" /> |
| 48 | <Key |
| 49 | latin:keyStyle="num1KeyStyle" |
| 50 | latin:keyXPos="32.076%p" /> |
Tadashi G. Takaoka | 4b13b4f | 2011-02-20 12:54:14 +0900 | [diff] [blame] | 51 | <Key |
Tadashi G. Takaoka | 6a75cd1 | 2011-03-08 17:48:18 -0800 | [diff] [blame] | 52 | latin:keyStyle="num2KeyStyle" /> |
Tadashi G. Takaoka | 4b13b4f | 2011-02-20 12:54:14 +0900 | [diff] [blame] | 53 | <Key |
Tadashi G. Takaoka | 6a75cd1 | 2011-03-08 17:48:18 -0800 | [diff] [blame] | 54 | latin:keyStyle="num3KeyStyle" /> |
Tadashi G. Takaoka | 4b13b4f | 2011-02-20 12:54:14 +0900 | [diff] [blame] | 55 | <Key |
| 56 | latin:keyStyle="deleteKeyStyle" |
Tadashi G. Takaoka | abd7392 | 2011-06-02 21:11:45 +0900 | [diff] [blame^] | 57 | latin:keyXPos="-11.172%p" |
Tadashi G. Takaoka | 327763e | 2011-05-30 20:05:50 +0900 | [diff] [blame] | 58 | latin:keyWidth="fillRight" |
Tadashi G. Takaoka | 4b13b4f | 2011-02-20 12:54:14 +0900 | [diff] [blame] | 59 | latin:keyEdgeFlags="right" /> |
| 60 | </Row> |
| 61 | <Row> |
Tadashi G. Takaoka | 4b13b4f | 2011-02-20 12:54:14 +0900 | [diff] [blame] | 62 | <Key |
Tadashi G. Takaoka | 327763e | 2011-05-30 20:05:50 +0900 | [diff] [blame] | 63 | latin:keyStyle="num4KeyStyle" |
| 64 | latin:keyXPos="32.076%p" /> |
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="num5KeyStyle" /> |
Tadashi G. Takaoka | 4b13b4f | 2011-02-20 12:54:14 +0900 | [diff] [blame] | 67 | <Key |
Tadashi G. Takaoka | 6a75cd1 | 2011-03-08 17:48:18 -0800 | [diff] [blame] | 68 | latin:keyStyle="num6KeyStyle" /> |
Tadashi G. Takaoka | 4b13b4f | 2011-02-20 12:54:14 +0900 | [diff] [blame] | 69 | <Key |
| 70 | latin:keyStyle="returnKeyStyle" |
Tadashi G. Takaoka | abd7392 | 2011-06-02 21:11:45 +0900 | [diff] [blame^] | 71 | latin:keyXPos="-11.172%p" |
Tadashi G. Takaoka | 327763e | 2011-05-30 20:05:50 +0900 | [diff] [blame] | 72 | latin:keyWidth="fillRight" |
Tadashi G. Takaoka | 4b13b4f | 2011-02-20 12:54:14 +0900 | [diff] [blame] | 73 | latin:keyEdgeFlags="right" /> |
| 74 | </Row> |
| 75 | <Row> |
Tadashi G. Takaoka | 4b13b4f | 2011-02-20 12:54:14 +0900 | [diff] [blame] | 76 | <Key |
Tadashi G. Takaoka | 327763e | 2011-05-30 20:05:50 +0900 | [diff] [blame] | 77 | latin:keyStyle="num7KeyStyle" |
| 78 | latin:keyXPos="32.076%p" /> |
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 |
Tadashi G. Takaoka | 327763e | 2011-05-30 20:05:50 +0900 | [diff] [blame] | 90 | latin:keyXPos="32.076%p" /> |
Tadashi G. Takaoka | 4b13b4f | 2011-02-20 12:54:14 +0900 | [diff] [blame] | 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" |
Tadashi G. Takaoka | abd7392 | 2011-06-02 21:11:45 +0900 | [diff] [blame^] | 105 | latin:keyWidth="11.172%p" |
Tadashi G. Takaoka | 4b13b4f | 2011-02-20 12:54:14 +0900 | [diff] [blame] | 106 | latin:keyEdgeFlags="left" /> |
Tadashi G. Takaoka | 4b13b4f | 2011-02-20 12:54:14 +0900 | [diff] [blame] | 107 | <Key |
| 108 | latin:keyLabel="-" |
Tadashi G. Takaoka | 327763e | 2011-05-30 20:05:50 +0900 | [diff] [blame] | 109 | latin:keyXPos="13.829%p" |
| 110 | latin:keyWidth="8.047%p" /> |
Tadashi G. Takaoka | 4b13b4f | 2011-02-20 12:54:14 +0900 | [diff] [blame] | 111 | <Key |
| 112 | latin:keyLabel="+" |
Tadashi G. Takaoka | 327763e | 2011-05-30 20:05:50 +0900 | [diff] [blame] | 113 | latin:keyWidth="8.047%p" /> |
Tadashi G. Takaoka | 4b13b4f | 2011-02-20 12:54:14 +0900 | [diff] [blame] | 114 | <Key |
| 115 | latin:keyLabel="." |
Tadashi G. Takaoka | 327763e | 2011-05-30 20:05:50 +0900 | [diff] [blame] | 116 | latin:keyWidth="8.047%p" /> |
Tadashi G. Takaoka | 4b13b4f | 2011-02-20 12:54:14 +0900 | [diff] [blame] | 117 | <Key |
Tadashi G. Takaoka | 327763e | 2011-05-30 20:05:50 +0900 | [diff] [blame] | 118 | latin:keyLabel="1" |
Tadashi G. Takaoka | abd7392 | 2011-06-02 21:11:45 +0900 | [diff] [blame^] | 119 | latin:keyXPos="43.125%p" /> |
Tadashi G. Takaoka | 4b13b4f | 2011-02-20 12:54:14 +0900 | [diff] [blame] | 120 | <Key |
| 121 | latin:keyLabel="2" /> |
| 122 | <Key |
| 123 | latin:keyLabel="3" /> |
Tadashi G. Takaoka | 4b13b4f | 2011-02-20 12:54:14 +0900 | [diff] [blame] | 124 | <Key |
| 125 | latin:keyStyle="deleteKeyStyle" |
Tadashi G. Takaoka | abd7392 | 2011-06-02 21:11:45 +0900 | [diff] [blame^] | 126 | latin:keyXPos="-11.172%p" |
Tadashi G. Takaoka | 327763e | 2011-05-30 20:05:50 +0900 | [diff] [blame] | 127 | latin:keyWidth="fillRight" |
Tadashi G. Takaoka | 4b13b4f | 2011-02-20 12:54:14 +0900 | [diff] [blame] | 128 | latin:keyEdgeFlags="right" /> |
| 129 | </Row> |
| 130 | <Row> |
Tadashi G. Takaoka | 4b13b4f | 2011-02-20 12:54:14 +0900 | [diff] [blame] | 131 | <Key |
| 132 | latin:keyLabel="*" |
Tadashi G. Takaoka | 327763e | 2011-05-30 20:05:50 +0900 | [diff] [blame] | 133 | latin:keyXPos="13.829%p" |
| 134 | latin:keyWidth="8.047%p" /> |
Tadashi G. Takaoka | 4b13b4f | 2011-02-20 12:54:14 +0900 | [diff] [blame] | 135 | <Key |
| 136 | latin:keyLabel="/" |
Tadashi G. Takaoka | 327763e | 2011-05-30 20:05:50 +0900 | [diff] [blame] | 137 | latin:keyWidth="8.047%p" /> |
Tadashi G. Takaoka | 4b13b4f | 2011-02-20 12:54:14 +0900 | [diff] [blame] | 138 | <Key |
| 139 | latin:keyLabel="," |
Tadashi G. Takaoka | 327763e | 2011-05-30 20:05:50 +0900 | [diff] [blame] | 140 | latin:keyWidth="8.047%p" /> |
Tadashi G. Takaoka | 4b13b4f | 2011-02-20 12:54:14 +0900 | [diff] [blame] | 141 | <Key |
Tadashi G. Takaoka | 327763e | 2011-05-30 20:05:50 +0900 | [diff] [blame] | 142 | latin:keyLabel="4" |
Tadashi G. Takaoka | abd7392 | 2011-06-02 21:11:45 +0900 | [diff] [blame^] | 143 | latin:keyXPos="43.125%p" /> |
Tadashi G. Takaoka | 4b13b4f | 2011-02-20 12:54:14 +0900 | [diff] [blame] | 144 | <Key |
| 145 | latin:keyLabel="5" /> |
| 146 | <Key |
| 147 | latin:keyLabel="6" /> |
Tadashi G. Takaoka | 4b13b4f | 2011-02-20 12:54:14 +0900 | [diff] [blame] | 148 | <Key |
| 149 | latin:keyStyle="returnKeyStyle" |
Tadashi G. Takaoka | abd7392 | 2011-06-02 21:11:45 +0900 | [diff] [blame^] | 150 | latin:keyXPos="-11.172%p" |
Tadashi G. Takaoka | 327763e | 2011-05-30 20:05:50 +0900 | [diff] [blame] | 151 | latin:keyWidth="fillRight" |
Tadashi G. Takaoka | 4b13b4f | 2011-02-20 12:54:14 +0900 | [diff] [blame] | 152 | latin:keyEdgeFlags="right" /> |
| 153 | </Row> |
| 154 | <Row> |
| 155 | <!-- There is an empty area below the "More" key and left of the "(" key. To |
| 156 | ignore the touch event on the area, "(" is intentionally not marked as a left |
| 157 | edge key. --> |
Tadashi G. Takaoka | 4b13b4f | 2011-02-20 12:54:14 +0900 | [diff] [blame] | 158 | <Key |
| 159 | latin:keyLabel="(" |
Tadashi G. Takaoka | 327763e | 2011-05-30 20:05:50 +0900 | [diff] [blame] | 160 | latin:keyXPos="13.829%p" |
| 161 | latin:keyWidth="8.047%p" /> |
Tadashi G. Takaoka | 4b13b4f | 2011-02-20 12:54:14 +0900 | [diff] [blame] | 162 | <Key |
| 163 | latin:keyLabel=")" |
Tadashi G. Takaoka | 327763e | 2011-05-30 20:05:50 +0900 | [diff] [blame] | 164 | latin:keyWidth="8.047%p" /> |
Tadashi G. Takaoka | 4b13b4f | 2011-02-20 12:54:14 +0900 | [diff] [blame] | 165 | <Key |
| 166 | latin:keyLabel="=" |
Tadashi G. Takaoka | 327763e | 2011-05-30 20:05:50 +0900 | [diff] [blame] | 167 | latin:keyWidth="8.047%p" /> |
Tadashi G. Takaoka | 4b13b4f | 2011-02-20 12:54:14 +0900 | [diff] [blame] | 168 | <Key |
Tadashi G. Takaoka | 327763e | 2011-05-30 20:05:50 +0900 | [diff] [blame] | 169 | latin:keyLabel="7" |
Tadashi G. Takaoka | abd7392 | 2011-06-02 21:11:45 +0900 | [diff] [blame^] | 170 | latin:keyXPos="43.125%p" /> |
Tadashi G. Takaoka | 4b13b4f | 2011-02-20 12:54:14 +0900 | [diff] [blame] | 171 | <Key |
| 172 | latin:keyLabel="8" /> |
| 173 | <Key |
| 174 | latin:keyLabel="9" /> |
| 175 | <!-- There is an empty area below the "Enter" key and right of the "9" key. To |
| 176 | ignore the touch event on the area, "9" is intentionally not marked as a right |
| 177 | edge key. --> |
| 178 | </Row> |
| 179 | <!-- This row is intentionally not marked as a bottom row --> |
| 180 | <Row> |
Tadashi G. Takaoka | 4199e29 | 2011-02-23 20:31:08 +0900 | [diff] [blame] | 181 | <switch> |
| 182 | <case latin:hasSettingsKey="true"> |
| 183 | <Key |
| 184 | latin:keyStyle="settingsKeyStyle" |
Tadashi G. Takaoka | 327763e | 2011-05-30 20:05:50 +0900 | [diff] [blame] | 185 | latin:keyWidth="8.047%p" /> |
Tadashi G. Takaoka | 4199e29 | 2011-02-23 20:31:08 +0900 | [diff] [blame] | 186 | </case> |
Tadashi G. Takaoka | 4199e29 | 2011-02-23 20:31:08 +0900 | [diff] [blame] | 187 | </switch> |
Tadashi G. Takaoka | 4b13b4f | 2011-02-20 12:54:14 +0900 | [diff] [blame] | 188 | <Key |
| 189 | latin:keyStyle="nonSpecialBackgroundSpaceKeyStyle" |
Tadashi G. Takaoka | 327763e | 2011-05-30 20:05:50 +0900 | [diff] [blame] | 190 | latin:keyXPos="13.829%p" |
| 191 | latin:keyWidth="24.140%p" /> |
Tadashi G. Takaoka | 4b13b4f | 2011-02-20 12:54:14 +0900 | [diff] [blame] | 192 | <Key |
Tadashi G. Takaoka | 327763e | 2011-05-30 20:05:50 +0900 | [diff] [blame] | 193 | latin:keyLabel="*" |
Tadashi G. Takaoka | abd7392 | 2011-06-02 21:11:45 +0900 | [diff] [blame^] | 194 | latin:keyXPos="43.125%p" /> |
Tadashi G. Takaoka | 4b13b4f | 2011-02-20 12:54:14 +0900 | [diff] [blame] | 195 | <Key |
| 196 | latin:keyLabel="0" /> |
| 197 | <Key |
| 198 | latin:keyLabel="#" /> |
| 199 | <switch> |
| 200 | <case |
| 201 | latin:voiceKeyEnabled="true" |
| 202 | > |
| 203 | <Key |
| 204 | latin:keyStyle="micKeyStyle" |
Tadashi G. Takaoka | 327763e | 2011-05-30 20:05:50 +0900 | [diff] [blame] | 205 | latin:keyXPos="-8.047%p" |
| 206 | latin:keyWidth="fillRight" /> |
Tadashi G. Takaoka | 4b13b4f | 2011-02-20 12:54:14 +0900 | [diff] [blame] | 207 | </case> |
| 208 | </switch> |
Tadashi G. Takaoka | 4b13b4f | 2011-02-20 12:54:14 +0900 | [diff] [blame] | 209 | </Row> |
| 210 | </default> |
| 211 | </switch> |
Tadashi G. Takaoka | 2c60d6e | 2010-11-23 17:55:22 -0800 | [diff] [blame] | 212 | </Keyboard> |