The Android Open Source Project | 923bf41 | 2009-03-13 15:11:42 -0700 | [diff] [blame] | 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <!-- |
| 3 | /* |
| 4 | ** |
| 5 | ** Copyright 2008, 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 | |
satok | dd8dd9f | 2010-09-01 23:33:43 +0900 | [diff] [blame^] | 21 | <!-- TODO: Add settings key to other languages --> |
| 22 | <!-- TODO: Add modifier attr to functional keys in other languages --> |
| 23 | |
The Android Open Source Project | 923bf41 | 2009-03-13 15:11:42 -0700 | [diff] [blame] | 24 | <Keyboard xmlns:android="http://schemas.android.com/apk/res/android" |
| 25 | android:keyWidth="10%p" |
| 26 | android:horizontalGap="0px" |
| 27 | android:verticalGap="0px" |
| 28 | android:keyHeight="@dimen/key_height" |
| 29 | > |
| 30 | |
| 31 | <Row> |
| 32 | <Key android:codes="113" android:keyLabel="q" android:keyEdgeFlags="left"/> |
| 33 | <Key android:codes="119" android:keyLabel="w"/> |
| 34 | <Key android:codes="101" android:keyLabel="e" |
| 35 | android:popupKeyboard="@xml/kbd_popup_template" |
| 36 | android:popupCharacters="@string/alternates_for_e" |
| 37 | /> |
Amith Yamasani | 4cc3a58 | 2009-03-24 18:05:24 -0700 | [diff] [blame] | 38 | <Key android:codes="114" android:keyLabel="r" |
| 39 | android:popupKeyboard="@xml/kbd_popup_template" |
| 40 | android:popupCharacters="@string/alternates_for_r"/> |
| 41 | <Key android:codes="116" android:keyLabel="t" |
| 42 | android:popupKeyboard="@xml/kbd_popup_template" |
| 43 | android:popupCharacters="@string/alternates_for_t"/> |
The Android Open Source Project | 923bf41 | 2009-03-13 15:11:42 -0700 | [diff] [blame] | 44 | <Key android:codes="121" android:keyLabel="y" |
| 45 | android:popupKeyboard="@xml/kbd_popup_template" |
| 46 | android:popupCharacters="@string/alternates_for_y" |
| 47 | /> |
| 48 | <Key android:codes="117" android:keyLabel="u" |
| 49 | android:popupKeyboard="@xml/kbd_popup_template" |
| 50 | android:popupCharacters="@string/alternates_for_u" |
| 51 | /> |
Mike LeBeau | 466741d | 2010-01-16 12:21:23 -0800 | [diff] [blame] | 52 | <Key android:codes="105" android:keyLabel="i" |
The Android Open Source Project | 923bf41 | 2009-03-13 15:11:42 -0700 | [diff] [blame] | 53 | android:popupKeyboard="@xml/kbd_popup_template" |
| 54 | android:popupCharacters="@string/alternates_for_i" |
| 55 | /> |
| 56 | <Key android:codes="111" android:keyLabel="o" |
| 57 | android:popupKeyboard="@xml/kbd_popup_template" |
| 58 | android:popupCharacters="@string/alternates_for_o" |
| 59 | /> |
| 60 | <Key android:codes="112" android:keyLabel="p" android:keyEdgeFlags="right"/> |
| 61 | </Row> |
| 62 | |
| 63 | <Row> |
| 64 | <Key android:codes="97" android:keyLabel="a" android:horizontalGap="5%p" |
| 65 | android:popupKeyboard="@xml/kbd_popup_template" |
| 66 | android:popupCharacters="@string/alternates_for_a" |
| 67 | android:keyEdgeFlags="left"/> |
| 68 | <Key android:codes="115" android:keyLabel="s" |
| 69 | android:popupKeyboard="@xml/kbd_popup_template" |
| 70 | android:popupCharacters="@string/alternates_for_s" |
| 71 | /> |
Amith Yamasani | 4cc3a58 | 2009-03-24 18:05:24 -0700 | [diff] [blame] | 72 | <Key android:codes="100" android:keyLabel="d" |
| 73 | android:popupKeyboard="@xml/kbd_popup_template" |
| 74 | android:popupCharacters="@string/alternates_for_d"/> |
The Android Open Source Project | 923bf41 | 2009-03-13 15:11:42 -0700 | [diff] [blame] | 75 | <Key android:codes="102" android:keyLabel="f"/> |
Amith Yamasani | 0a2df34 | 2010-03-04 04:43:15 -0800 | [diff] [blame] | 76 | <Key android:codes="103" android:keyLabel="g" |
| 77 | android:popupKeyboard="@xml/kbd_popup_template" |
| 78 | android:popupCharacters="@string/alternates_for_g" |
| 79 | /> |
The Android Open Source Project | 923bf41 | 2009-03-13 15:11:42 -0700 | [diff] [blame] | 80 | <Key android:codes="104" android:keyLabel="h"/> |
| 81 | <Key android:codes="106" android:keyLabel="j"/> |
| 82 | <Key android:codes="107" android:keyLabel="k"/> |
Mike LeBeau | 466741d | 2010-01-16 12:21:23 -0800 | [diff] [blame] | 83 | <Key android:codes="108" android:keyLabel="l" |
Amith Yamasani | 864fcbd | 2009-04-13 15:35:08 -0700 | [diff] [blame] | 84 | android:popupKeyboard="@xml/kbd_popup_template" |
| 85 | android:popupCharacters="@string/alternates_for_l" |
| 86 | android:keyEdgeFlags="right"/> |
The Android Open Source Project | 923bf41 | 2009-03-13 15:11:42 -0700 | [diff] [blame] | 87 | </Row> |
| 88 | |
| 89 | <Row> |
| 90 | <Key android:codes="-1" android:keyIcon="@drawable/sym_keyboard_shift" |
| 91 | android:keyWidth="15%p" android:isModifier="true" |
| 92 | android:iconPreview="@drawable/sym_keyboard_feedback_shift" |
| 93 | android:isSticky="true" android:keyEdgeFlags="left"/> |
Amith Yamasani | 4cc3a58 | 2009-03-24 18:05:24 -0700 | [diff] [blame] | 94 | <Key android:codes="122" android:keyLabel="z" |
| 95 | android:popupKeyboard="@xml/kbd_popup_template" |
| 96 | android:popupCharacters="@string/alternates_for_z"/> |
The Android Open Source Project | 923bf41 | 2009-03-13 15:11:42 -0700 | [diff] [blame] | 97 | <Key android:codes="120" android:keyLabel="x"/> |
| 98 | <Key android:codes="99" android:keyLabel="c" |
| 99 | android:popupKeyboard="@xml/kbd_popup_template" |
| 100 | android:popupCharacters="@string/alternates_for_c" |
| 101 | /> |
| 102 | <Key android:codes="118" android:keyLabel="v"/> |
| 103 | <Key android:codes="98" android:keyLabel="b"/> |
| 104 | <Key android:codes="110" android:keyLabel="n" |
| 105 | android:popupKeyboard="@xml/kbd_popup_template" |
| 106 | android:popupCharacters="@string/alternates_for_n" |
| 107 | /> |
| 108 | <Key android:codes="109" android:keyLabel="m"/> |
Amith Yamasani | ffa3fdd | 2009-08-19 15:16:33 -0700 | [diff] [blame] | 109 | <Key android:codes="-5" android:keyIcon="@drawable/sym_keyboard_delete" |
| 110 | android:keyWidth="15%p" android:keyEdgeFlags="right" |
The Android Open Source Project | 923bf41 | 2009-03-13 15:11:42 -0700 | [diff] [blame] | 111 | android:iconPreview="@drawable/sym_keyboard_feedback_delete" |
satok | dd8dd9f | 2010-09-01 23:33:43 +0900 | [diff] [blame^] | 112 | android:isRepeatable="true" android:isModifier="true"/> |
The Android Open Source Project | 923bf41 | 2009-03-13 15:11:42 -0700 | [diff] [blame] | 113 | </Row> |
| 114 | |
| 115 | <Row android:keyboardMode="@+id/mode_normal" android:rowEdgeFlags="bottom"> |
| 116 | <Key android:codes="-2" android:keyLabel="@string/label_symbol_key" |
satok | dd8dd9f | 2010-09-01 23:33:43 +0900 | [diff] [blame^] | 117 | android:keyWidth="15%p" android:keyEdgeFlags="left" android:isModifier="true"/> |
satok | 673aed4 | 2010-08-30 18:38:36 +0900 | [diff] [blame] | 118 | <Key android:codes="@integer/key_settings" android:keyIcon="@drawable/sym_keyboard_settings" |
| 119 | android:iconPreview="@drawable/sym_keyboard_feedback_settings" |
satok | dd8dd9f | 2010-09-01 23:33:43 +0900 | [diff] [blame^] | 120 | android:keyWidth="10%p" android:isModifier="true"/> |
Amith Yamasani | b1cd701 | 2010-01-28 07:33:27 -0800 | [diff] [blame] | 121 | <Key android:codes="@integer/key_f1" android:keyIcon="@drawable/sym_keyboard_mic" |
| 122 | android:iconPreview="@drawable/sym_keyboard_feedback_mic" |
satok | dd8dd9f | 2010-09-01 23:33:43 +0900 | [diff] [blame^] | 123 | android:keyWidth="10%p" android:isModifier="true"/> |
Amith Yamasani | ffa3fdd | 2009-08-19 15:16:33 -0700 | [diff] [blame] | 124 | <Key android:codes="32" android:keyIcon="@drawable/sym_keyboard_space" |
The Android Open Source Project | 923bf41 | 2009-03-13 15:11:42 -0700 | [diff] [blame] | 125 | android:iconPreview="@drawable/sym_keyboard_feedback_space" |
satok | dd8dd9f | 2010-09-01 23:33:43 +0900 | [diff] [blame^] | 126 | android:keyWidth="30%p" android:isRepeatable="true" android:isModifier="true"/> |
The Android Open Source Project | 923bf41 | 2009-03-13 15:11:42 -0700 | [diff] [blame] | 127 | <Key android:codes="46" android:keyLabel="." android:popupKeyboard="@xml/popup_punctuation" |
satok | dd8dd9f | 2010-09-01 23:33:43 +0900 | [diff] [blame^] | 128 | android:keyWidth="10%p" android:isModifier="true"/> |
Amith Yamasani | ffa3fdd | 2009-08-19 15:16:33 -0700 | [diff] [blame] | 129 | <Key android:codes="10" android:keyIcon="@drawable/sym_keyboard_return" |
The Android Open Source Project | 923bf41 | 2009-03-13 15:11:42 -0700 | [diff] [blame] | 130 | android:iconPreview="@drawable/sym_keyboard_feedback_return" |
satok | dd8dd9f | 2010-09-01 23:33:43 +0900 | [diff] [blame^] | 131 | android:keyWidth="25%p" android:keyEdgeFlags="right" android:isModifier="true"/> |
The Android Open Source Project | 923bf41 | 2009-03-13 15:11:42 -0700 | [diff] [blame] | 132 | </Row> |
| 133 | |
| 134 | <Row android:keyboardMode="@+id/mode_url" android:rowEdgeFlags="bottom"> |
Amith Yamasani | ffa3fdd | 2009-08-19 15:16:33 -0700 | [diff] [blame] | 135 | <Key android:codes="-2" android:keyLabel="@string/label_symbol_key" |
satok | dd8dd9f | 2010-09-01 23:33:43 +0900 | [diff] [blame^] | 136 | android:keyWidth="15%p" android:keyEdgeFlags="left" android:isModifier="true"/> |
satok | 673aed4 | 2010-08-30 18:38:36 +0900 | [diff] [blame] | 137 | <Key android:codes="@integer/key_settings" android:keyIcon="@drawable/sym_keyboard_settings" |
| 138 | android:iconPreview="@drawable/sym_keyboard_feedback_settings" |
satok | dd8dd9f | 2010-09-01 23:33:43 +0900 | [diff] [blame^] | 139 | android:keyWidth="10%p" android:isModifier="true"/> |
Amith Yamasani | cf02653 | 2010-01-26 21:25:29 -0800 | [diff] [blame] | 140 | <Key android:keyLabel="/" android:keyWidth="10%p"/> |
Amith Yamasani | ffa3fdd | 2009-08-19 15:16:33 -0700 | [diff] [blame] | 141 | <Key android:codes="32" android:keyIcon="@drawable/sym_keyboard_space" |
The Android Open Source Project | 923bf41 | 2009-03-13 15:11:42 -0700 | [diff] [blame] | 142 | android:iconPreview="@drawable/sym_keyboard_feedback_space" |
satok | dd8dd9f | 2010-09-01 23:33:43 +0900 | [diff] [blame^] | 143 | android:keyWidth="30%p" android:isRepeatable="true" android:isModifier="true"/> |
Amith Yamasani | ffa3fdd | 2009-08-19 15:16:33 -0700 | [diff] [blame] | 144 | <Key android:keyLabel="." android:popupKeyboard="@xml/popup_punctuation" |
satok | dd8dd9f | 2010-09-01 23:33:43 +0900 | [diff] [blame^] | 145 | android:keyWidth="10%p" android:isModifier="true"/> |
Amith Yamasani | ffa3fdd | 2009-08-19 15:16:33 -0700 | [diff] [blame] | 146 | <Key android:codes="10" android:keyIcon="@drawable/sym_keyboard_return" |
The Android Open Source Project | 923bf41 | 2009-03-13 15:11:42 -0700 | [diff] [blame] | 147 | android:iconPreview="@drawable/sym_keyboard_feedback_return" |
satok | dd8dd9f | 2010-09-01 23:33:43 +0900 | [diff] [blame^] | 148 | android:keyWidth="25%p" android:keyEdgeFlags="right" android:isModifier="true"/> |
The Android Open Source Project | 923bf41 | 2009-03-13 15:11:42 -0700 | [diff] [blame] | 149 | </Row> |
| 150 | |
| 151 | <Row android:keyboardMode="@+id/mode_email" android:rowEdgeFlags="bottom"> |
Amith Yamasani | ffa3fdd | 2009-08-19 15:16:33 -0700 | [diff] [blame] | 152 | <Key android:codes="-2" android:keyLabel="@string/label_symbol_key" |
satok | dd8dd9f | 2010-09-01 23:33:43 +0900 | [diff] [blame^] | 153 | android:keyWidth="15%p" android:keyEdgeFlags="left" android:isModifier="true"/> |
satok | 673aed4 | 2010-08-30 18:38:36 +0900 | [diff] [blame] | 154 | <Key android:codes="@integer/key_settings" android:keyIcon="@drawable/sym_keyboard_settings" |
| 155 | android:iconPreview="@drawable/sym_keyboard_feedback_settings" |
satok | dd8dd9f | 2010-09-01 23:33:43 +0900 | [diff] [blame^] | 156 | android:keyWidth="10%p" android:isModifier="true"/> |
Amith Yamasani | cf02653 | 2010-01-26 21:25:29 -0800 | [diff] [blame] | 157 | <Key android:keyLabel="\@"/> |
Amith Yamasani | ffa3fdd | 2009-08-19 15:16:33 -0700 | [diff] [blame] | 158 | <Key android:codes="32" android:keyIcon="@drawable/sym_keyboard_space" |
The Android Open Source Project | 923bf41 | 2009-03-13 15:11:42 -0700 | [diff] [blame] | 159 | android:iconPreview="@drawable/sym_keyboard_feedback_space" |
satok | dd8dd9f | 2010-09-01 23:33:43 +0900 | [diff] [blame^] | 160 | android:keyWidth="30%p" android:isRepeatable="true" android:isModifier="true"/> |
Amith Yamasani | cf02653 | 2010-01-26 21:25:29 -0800 | [diff] [blame] | 161 | <Key android:keyLabel="." android:popupKeyboard="@xml/popup_punctuation"/> |
Amith Yamasani | ffa3fdd | 2009-08-19 15:16:33 -0700 | [diff] [blame] | 162 | <Key android:codes="10" android:keyIcon="@drawable/sym_keyboard_return" |
The Android Open Source Project | 923bf41 | 2009-03-13 15:11:42 -0700 | [diff] [blame] | 163 | android:iconPreview="@drawable/sym_keyboard_feedback_return" |
satok | dd8dd9f | 2010-09-01 23:33:43 +0900 | [diff] [blame^] | 164 | android:keyWidth="25%p" android:keyEdgeFlags="right" android:isModifier="true"/> |
The Android Open Source Project | 923bf41 | 2009-03-13 15:11:42 -0700 | [diff] [blame] | 165 | </Row> |
| 166 | |
| 167 | <Row android:keyboardMode="@+id/mode_im" android:rowEdgeFlags="bottom"> |
Amith Yamasani | ffa3fdd | 2009-08-19 15:16:33 -0700 | [diff] [blame] | 168 | <Key android:codes="-2" android:keyLabel="@string/label_symbol_key" |
satok | dd8dd9f | 2010-09-01 23:33:43 +0900 | [diff] [blame^] | 169 | android:keyWidth="15%p" android:keyEdgeFlags="left" android:isModifier="true"/> |
satok | 673aed4 | 2010-08-30 18:38:36 +0900 | [diff] [blame] | 170 | <Key android:codes="@integer/key_settings" android:keyIcon="@drawable/sym_keyboard_settings" |
| 171 | android:iconPreview="@drawable/sym_keyboard_feedback_settings" |
satok | dd8dd9f | 2010-09-01 23:33:43 +0900 | [diff] [blame^] | 172 | android:keyWidth="10%p" android:isModifier="true"/> |
Amith Yamasani | b1cd701 | 2010-01-28 07:33:27 -0800 | [diff] [blame] | 173 | <Key android:codes="@integer/key_f1" android:keyIcon="@drawable/sym_keyboard_mic" |
Mike LeBeau | 466741d | 2010-01-16 12:21:23 -0800 | [diff] [blame] | 174 | android:iconPreview="@drawable/sym_keyboard_feedback_mic" |
satok | dd8dd9f | 2010-09-01 23:33:43 +0900 | [diff] [blame^] | 175 | android:keyWidth="10%p" android:isModifier="true"/> |
Mike LeBeau | 466741d | 2010-01-16 12:21:23 -0800 | [diff] [blame] | 176 | <Key android:codes="32" android:keyIcon="@drawable/sym_keyboard_space" |
| 177 | android:iconPreview="@drawable/sym_keyboard_feedback_space" |
satok | dd8dd9f | 2010-09-01 23:33:43 +0900 | [diff] [blame^] | 178 | android:keyWidth="30%p" android:isRepeatable="true" android:isModifier="true"/> |
Mike LeBeau | 466741d | 2010-01-16 12:21:23 -0800 | [diff] [blame] | 179 | <Key android:codes="46" android:keyLabel="." android:popupKeyboard="@xml/popup_punctuation" |
satok | dd8dd9f | 2010-09-01 23:33:43 +0900 | [diff] [blame^] | 180 | android:keyWidth="10%p" android:isModifier="true"/> |
Mike LeBeau | 466741d | 2010-01-16 12:21:23 -0800 | [diff] [blame] | 181 | <Key android:keyLabel=":-)" android:keyOutputText=":-) " |
| 182 | android:popupKeyboard="@xml/popup_smileys" |
satok | 673aed4 | 2010-08-30 18:38:36 +0900 | [diff] [blame] | 183 | android:keyWidth="25%p" android:keyEdgeFlags="right"/> |
Mike LeBeau | 466741d | 2010-01-16 12:21:23 -0800 | [diff] [blame] | 184 | </Row> |
Amith Yamasani | cf02653 | 2010-01-26 21:25:29 -0800 | [diff] [blame] | 185 | |
| 186 | <Row android:keyboardMode="@+id/mode_webentry" android:rowEdgeFlags="bottom"> |
| 187 | <Key android:codes="-2" android:keyLabel="@string/label_symbol_key" |
satok | dd8dd9f | 2010-09-01 23:33:43 +0900 | [diff] [blame^] | 188 | android:keyWidth="10%p" android:keyEdgeFlags="left" android:isModifier="true"/> |
satok | 673aed4 | 2010-08-30 18:38:36 +0900 | [diff] [blame] | 189 | <Key android:codes="@integer/key_settings" android:keyIcon="@drawable/sym_keyboard_settings" |
| 190 | android:iconPreview="@drawable/sym_keyboard_feedback_settings" |
satok | dd8dd9f | 2010-09-01 23:33:43 +0900 | [diff] [blame^] | 191 | android:keyWidth="10%p" android:isModifier="true"/> |
Amith Yamasani | b1cd701 | 2010-01-28 07:33:27 -0800 | [diff] [blame] | 192 | <Key android:codes="@integer/key_f1" android:keyIcon="@drawable/sym_keyboard_mic" |
Amith Yamasani | cf02653 | 2010-01-26 21:25:29 -0800 | [diff] [blame] | 193 | android:iconPreview="@drawable/sym_keyboard_feedback_mic" |
satok | dd8dd9f | 2010-09-01 23:33:43 +0900 | [diff] [blame^] | 194 | android:keyWidth="10%p" android:isModifier="true"/> |
Amith Yamasani | cf02653 | 2010-01-26 21:25:29 -0800 | [diff] [blame] | 195 | <Key android:codes="32" android:keyIcon="@drawable/sym_keyboard_space" |
| 196 | android:iconPreview="@drawable/sym_keyboard_feedback_space" |
satok | dd8dd9f | 2010-09-01 23:33:43 +0900 | [diff] [blame^] | 197 | android:keyWidth="20%p" android:isRepeatable="true" android:isModifier="true"/> |
Amith Yamasani | cf02653 | 2010-01-26 21:25:29 -0800 | [diff] [blame] | 198 | <Key android:codes="9" android:keyIcon="@drawable/sym_keyboard_tab" |
| 199 | android:iconPreview="@drawable/sym_keyboard_feedback_tab" |
satok | dd8dd9f | 2010-09-01 23:33:43 +0900 | [diff] [blame^] | 200 | android:keyWidth="15%p" android:isModifier="true"/> |
satok | 673aed4 | 2010-08-30 18:38:36 +0900 | [diff] [blame] | 201 | <Key android:keyLabel="." android:popupKeyboard="@xml/popup_punctuation" |
satok | dd8dd9f | 2010-09-01 23:33:43 +0900 | [diff] [blame^] | 202 | android:keyWidth="10%p" android:isModifier="true"/> |
Amith Yamasani | cf02653 | 2010-01-26 21:25:29 -0800 | [diff] [blame] | 203 | <Key android:codes="10" android:keyIcon="@drawable/sym_keyboard_return" |
| 204 | android:iconPreview="@drawable/sym_keyboard_feedback_return" |
satok | dd8dd9f | 2010-09-01 23:33:43 +0900 | [diff] [blame^] | 205 | android:keyWidth="15%p" android:keyEdgeFlags="right" android:isModifier="true"/> |
Amith Yamasani | cf02653 | 2010-01-26 21:25:29 -0800 | [diff] [blame] | 206 | </Row> |
The Android Open Source Project | 923bf41 | 2009-03-13 15:11:42 -0700 | [diff] [blame] | 207 | </Keyboard> |