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 21 <Keyboard 22 xmlns:android="http://schemas.android.com/apk/res/android" 23 android:keyWidth="10%p" 24 android:horizontalGap="0px" 25 android:verticalGap="@dimen/key_bottom_gap" 26 android:keyHeight="@dimen/key_height" 27 > 28 <Row 29 android:rowEdgeFlags="top" 30 > 31 <Key 32 android:keyLabel="1" 33 android:popupKeyboard="@xml/kbd_popup_template" 34 android:popupCharacters="" 35 android:keyEdgeFlags="left" /> 36 <Key 37 android:keyLabel="2" 38 android:popupKeyboard="@xml/kbd_popup_template" 39 android:popupCharacters="" /> 40 <Key 41 android:keyLabel="3" 42 android:popupKeyboard="@xml/kbd_popup_template" 43 android:popupCharacters="" /> 44 <Key 45 android:keyLabel="4" 46 android:popupKeyboard="@xml/kbd_popup_template" 47 android:popupCharacters="" /> 48 <Key 49 android:keyLabel="5" 50 android:popupKeyboard="@xml/kbd_popup_template" 51 android:popupCharacters="" /> 52 <Key 53 android:keyLabel="6" /> 54 <Key 55 android:keyLabel="7" 56 android:popupKeyboard="@xml/kbd_popup_template" 57 android:popupCharacters="" /> 58 <Key 59 android:keyLabel="8" /> 60 <Key 61 android:keyLabel="9" /> 62 <Key 63 android:keyLabel="0" 64 android:popupKeyboard="@xml/kbd_popup_template" 65 android:popupCharacters="" 66 android:keyEdgeFlags="right" /> 67 </Row> 68 <Row> 69 <Key 70 android:keyLabel="\@" 71 android:keyEdgeFlags="left" /> 72 <Key 73 android:keyLabel="\#" /> 74 <Key 75 android:keyLabel="$" 76 android:popupKeyboard="@xml/kbd_popup_template" 77 android:popupCharacters="" /> 78 <Key 79 android:keyLabel="%" 80 android:popupKeyboard="@xml/kbd_popup_template" 81 android:popupCharacters="" /> 82 <Key 83 android:keyLabel="&" /> 84 <Key 85 android:keyLabel="*" 86 android:popupKeyboard="@xml/kbd_popup_template" 87 android:popupCharacters="" /> 88 <Key 89 android:keyLabel="-" 90 android:popupKeyboard="@xml/kbd_popup_template" 91 android:popupCharacters="_" /> 92 <Key 93 android:keyLabel="+" 94 android:popupKeyboard="@xml/kbd_popup_template" 95 android:popupCharacters="" /> 96 <Key 97 android:keyLabel="(" 98 android:popupKeyboard="@xml/kbd_popup_template" 99 android:popupCharacters="[{<" /> 100 <Key 101 android:keyLabel=")" 102 android:popupKeyboard="@xml/kbd_popup_template" 103 android:popupCharacters="]}>" 104 android:keyEdgeFlags="right" /> 105 </Row> 106 <Row> 107 <Key 108 android:codes="@integer/key_shift" 109 android:keyLabel="@string/label_alt_key" 110 android:keyWidth="15%p" 111 android:isModifier="true" 112 android:isSticky="true" 113 android:keyEdgeFlags="left" /> 114 <Key 115 android:keyLabel="!" 116 android:popupKeyboard="@xml/kbd_popup_template" 117 android:popupCharacters="" /> 118 <Key 119 android:keyLabel=""" 120 android:popupKeyboard="@xml/kbd_popup_template" 121 android:popupCharacters="" /> 122 <Key 123 android:keyLabel="\'" 124 android:popupKeyboard="@xml/kbd_popup_template" 125 android:popupCharacters="" /> 126 <Key 127 android:keyLabel=":" /> 128 <Key 129 android:keyLabel=";" /> 130 <Key 131 android:keyLabel="/" /> 132 <Key 133 android:keyLabel="\?" 134 android:popupKeyboard="@xml/kbd_popup_template" 135 android:popupCharacters="" /> 136 <Key 137 android:codes="@integer/key_delete" 138 android:keyIcon="@drawable/sym_keyboard_delete" 139 android:iconPreview="@drawable/sym_keyboard_feedback_delete" 140 android:keyWidth="15%p" 141 android:isModifier="true" 142 android:isRepeatable="true" 143 android:keyEdgeFlags="right" /> 144 </Row> 145 <Row 146 android:keyboardMode="@+id/mode_symbols" 147 android:rowEdgeFlags="bottom" 148 > 149 <Key 150 android:codes="@integer/key_symbol" 151 android:keyLabel="@string/label_alpha_key" 152 android:keyWidth="20%p" 153 android:isModifier="true" 154 android:keyEdgeFlags="left" /> 155 <Key 156 android:codes="@integer/key_f1" 157 android:isModifier="true" /> 158 <Key 159 android:codes="@integer/key_space" 160 android:keyIcon="@drawable/sym_keyboard_space" 161 android:iconPreview="@drawable/sym_keyboard_feedback_space" 162 android:keyWidth="40%p" 163 android:isModifier="true" /> 164 <Key 165 android:keyLabel="." 166 android:keyIcon="@drawable/hint_popup" 167 android:popupKeyboard="@xml/popup_punctuation" 168 android:isModifier="true" /> 169 <Key 170 android:codes="@integer/key_return" 171 android:keyIcon="@drawable/sym_keyboard_return" 172 android:iconPreview="@drawable/sym_keyboard_feedback_return" 173 android:keyWidth="20%p" 174 android:isModifier="true" 175 android:keyEdgeFlags="right" /> 176 </Row> 177 <Row 178 android:keyboardMode="@+id/mode_symbols_with_settings_key" 179 android:rowEdgeFlags="bottom" 180 > 181 <Key 182 android:codes="@integer/key_symbol" 183 android:keyLabel="@string/label_alpha_key" 184 android:keyWidth="15%p" 185 android:isModifier="true" 186 android:keyEdgeFlags="left" /> 187 <Key 188 android:codes="@integer/key_settings" 189 android:keyIcon="@drawable/sym_keyboard_settings" 190 android:iconPreview="@drawable/sym_keyboard_feedback_settings" 191 android:isModifier="true" /> 192 <Key 193 android:codes="@integer/key_f1" 194 android:isModifier="true" /> 195 <Key 196 android:codes="@integer/key_space" 197 android:keyIcon="@drawable/sym_keyboard_space" 198 android:iconPreview="@drawable/sym_keyboard_feedback_space" 199 android:keyWidth="30%p" 200 android:isModifier="true" /> 201 <Key 202 android:keyLabel="." 203 android:keyIcon="@drawable/hint_popup" 204 android:popupKeyboard="@xml/popup_punctuation" 205 android:isModifier="true" /> 206 <Key 207 android:codes="@integer/key_return" 208 android:keyIcon="@drawable/sym_keyboard_return" 209 android:iconPreview="@drawable/sym_keyboard_feedback_return" 210 android:keyWidth="25%p" 211 android:isModifier="true" 212 android:keyEdgeFlags="right" /> 213 </Row> 214 </Keyboard> 215