1<!-- 2 Copyright 2019 The Android Open Source Project 3 4 Licensed under the Apache License, Version 2.0 (the "License"); 5 you may not use this file except in compliance with the License. 6 You may obtain a copy of the License at 7 8 http://www.apache.org/licenses/LICENSE-2.0 9 10 Unless required by applicable law or agreed to in writing, software 11 distributed under the License is distributed on an "AS IS" BASIS, 12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 See the License for the specific language governing permissions and 14 limitations under the License. 15--> 16 17<Keyboard xmlns:android="http://schemas.android.com/apk/res/android" 18 android:keyHeight="@dimen/key_height" 19 android:keyWidth="@dimen/key_width" 20 android:verticalGap="@dimen/keyboard_vertical_gap" 21 android:horizontalGap="@dimen/keyboard_horizontal_gap" > 22 23 <Row android:rowEdgeFlags="top"> 24 <Key 25 android:codes="49" 26 android:keyEdgeFlags="left" 27 android:keyLabel="1" 28 android:popupKeyboard="@xml/shift_1" /> 29 <Key 30 android:codes="50" 31 android:keyLabel="2" 32 android:popupKeyboard="@xml/shift_2" /> 33 <Key 34 android:codes="51" 35 android:keyLabel="3" 36 android:popupKeyboard="@xml/shift_3" /> 37 <Key 38 android:codes="52" 39 android:keyLabel="4" 40 android:popupKeyboard="@xml/shift_4_eu" /> 41 <Key 42 android:codes="53" 43 android:keyLabel="5" 44 android:popupKeyboard="@xml/shift_5" /> 45 <Key 46 android:codes="54" 47 android:keyLabel="6" 48 android:popupKeyboard="@xml/shift_6" /> 49 <Key 50 android:codes="55" 51 android:keyLabel="7" 52 android:popupKeyboard="@xml/shift_7" /> 53 <Key 54 android:codes="56" 55 android:keyLabel="8" 56 android:popupKeyboard="@xml/shift_8" /> 57 <Key 58 android:codes="57" 59 android:keyLabel="9" 60 android:popupKeyboard="@xml/shift_9" /> 61 <Key 62 android:codes="48" 63 android:keyLabel="0" 64 android:popupKeyboard="@xml/shift_0" /> 65 <Key 66 android:codes="-5" 67 android:keyEdgeFlags="right" 68 android:keyIcon="@drawable/ic_ime_delete" 69 android:keyLabel="@string/keyboardview_keycode_delete" /> 70 </Row> 71 <Row> 72 <Key 73 android:codes="113" 74 android:keyEdgeFlags="left" 75 android:keyLabel="q" 76 android:popupKeyboard="@xml/shift_q" /> 77 <Key 78 android:codes="119" 79 android:keyLabel="w" 80 android:popupKeyboard="@xml/shift_w" /> 81 <Key 82 android:codes="101" 83 android:keyLabel="e" 84 android:popupKeyboard="@xml/accent_e" /> 85 <Key 86 android:codes="114" 87 android:keyLabel="r" 88 android:popupKeyboard="@xml/shift_r" /> 89 <Key 90 android:codes="116" 91 android:keyLabel="t" 92 android:popupKeyboard="@xml/accent_t" /> 93 <Key 94 android:codes="121" 95 android:keyLabel="y" 96 android:popupKeyboard="@xml/shift_y" /> 97 <Key 98 android:codes="117" 99 android:keyLabel="u" 100 android:popupKeyboard="@xml/accent_u" /> 101 <Key 102 android:codes="105" 103 android:keyLabel="i" 104 android:popupKeyboard="@xml/accent_i" /> 105 <Key 106 android:codes="111" 107 android:keyLabel="o" 108 android:popupKeyboard="@xml/accent_o" /> 109 <Key 110 android:codes="112" 111 android:keyLabel="p" 112 android:popupKeyboard="@xml/shift_p" /> 113 <Key 114 android:codes="64" 115 android:keyEdgeFlags="right" 116 android:keyLabel="\@" /> 117 </Row> 118 <Row> 119 <Key 120 android:codes="97" 121 android:keyEdgeFlags="left" 122 android:keyLabel="a" 123 android:popupKeyboard="@xml/accent_a" /> 124 <Key 125 android:codes="115" 126 android:keyLabel="s" 127 android:popupKeyboard="@xml/accent_s" /> 128 <Key 129 android:codes="100" 130 android:keyLabel="d" 131 android:popupKeyboard="@xml/accent_d" /> 132 <Key 133 android:codes="102" 134 android:keyLabel="f" 135 android:popupKeyboard="@xml/shift_f" /> 136 <Key 137 android:codes="103" 138 android:keyLabel="g" 139 android:popupKeyboard="@xml/accent_g" /> 140 <Key 141 android:codes="104" 142 android:keyLabel="h" 143 android:popupKeyboard="@xml/shift_h" /> 144 <Key 145 android:codes="106" 146 android:keyLabel="j" 147 android:popupKeyboard="@xml/shift_j" /> 148 <Key 149 android:codes="107" 150 android:keyLabel="k" 151 android:popupKeyboard="@xml/accent_k" /> 152 <Key 153 android:codes="108" 154 android:keyLabel="l" 155 android:popupKeyboard="@xml/accent_l" /> 156 <Key 157 android:codes="241" 158 android:keyLabel="ñ" 159 android:popupKeyboard="@xml/shift_nn_es" /> 160 <Key 161 android:codes="38" 162 android:keyEdgeFlags="right" 163 android:keyLabel="&" /> 164 </Row> 165 <Row> 166 <Key 167 android:codes="122" 168 android:keyEdgeFlags="left" 169 android:keyLabel="z" 170 android:popupKeyboard="@xml/accent_z" /> 171 <Key 172 android:codes="120" 173 android:keyLabel="x" 174 android:popupKeyboard="@xml/shift_x" /> 175 <Key 176 android:codes="99" 177 android:keyLabel="c" 178 android:popupKeyboard="@xml/accent_c" /> 179 <Key 180 android:codes="118" 181 android:keyLabel="v" 182 android:popupKeyboard="@xml/shift_v" /> 183 <Key 184 android:codes="98" 185 android:keyLabel="b" 186 android:popupKeyboard="@xml/shift_b" /> 187 <Key 188 android:codes="110" 189 android:keyLabel="n" 190 android:popupKeyboard="@xml/shift_n_es" /> 191 <Key 192 android:codes="109" 193 android:keyLabel="m" 194 android:popupKeyboard="@xml/shift_m" /> 195 <Key 196 android:codes="44" 197 android:keyLabel="," /> 198 <Key 199 android:codes="46" 200 android:keyLabel="." /> 201 <Key 202 android:codes="45" 203 android:keyLabel="-" /> 204 <Key 205 android:codes="63" 206 android:keyEdgeFlags="right" 207 android:keyLabel="\?" /> 208 </Row> 209 <Row android:rowEdgeFlags="bottom" > 210 <Key 211 android:codes="-2" 212 android:keyEdgeFlags="left" 213 android:keyLabel="@string/keyboardview_keycode_mode_change" 214 android:keyIcon="@drawable/ic_ime_symbols" /> 215 <Key 216 android:codes="-1" 217 android:keyLabel="@string/keyboardview_keycode_shift" 218 android:keyIcon="@drawable/ic_ime_shift_off" /> 219 <Key 220 android:codes="32" 221 android:keyIcon="@drawable/ic_ime_space" 222 android:keyLabel="@string/keyboardview_keycode_space" 223 android:keyWidth="@dimen/space_key_width" /> 224 <Key 225 android:codes="-3" 226 android:keyLabel="@string/keyboardview_keycode_left" 227 android:keyIcon="@drawable/ic_ime_left_arrow" /> 228 <Key 229 android:codes="-4" 230 android:keyEdgeFlags="right" 231 android:keyLabel="@string/keyboardview_keycode_right" 232 android:keyIcon="@drawable/ic_ime_right_arrow" /> 233 </Row> 234</Keyboard> 235