1<?xml version="1.0" encoding="utf-8"?> 2<!-- Copyright (C) 2016 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<Keyboard xmlns:android="http://schemas.android.com/apk/res/android" 17 android:keyWidth="@dimen/keyboard_key_size" 18 android:keyHeight="@dimen/keyboard_key_size"> 19 20 <Row android:rowEdgeFlags="top"> 21 <Key 22 android:keyLabel="q" 23 android:keyEdgeFlags="left" /> 24 <Key 25 android:keyLabel="w" 26 android:horizontalGap="@dimen/keyboard_key_horizontal_tiny_gap" /> 27 <Key 28 android:keyLabel="e" 29 android:horizontalGap="@dimen/keyboard_key_horizontal_tiny_gap" 30 android:popupKeyboard="@xml/keyboard_popup_template" 31 android:popupCharacters="@string/alternates_for_e" /> 32 <Key 33 android:keyLabel="r" 34 android:horizontalGap="@dimen/keyboard_key_horizontal_tiny_gap" /> 35 <Key 36 android:keyLabel="t" 37 android:horizontalGap="@dimen/keyboard_key_horizontal_tiny_gap" /> 38 <Key 39 android:keyLabel="y" 40 android:horizontalGap="@dimen/keyboard_key_horizontal_tiny_gap" 41 android:popupKeyboard="@xml/keyboard_popup_template" 42 android:popupCharacters="@string/alternates_for_y" /> 43 <Key 44 android:keyLabel="u" 45 android:horizontalGap="@dimen/keyboard_key_horizontal_tiny_gap" 46 android:popupKeyboard="@xml/keyboard_popup_template" 47 android:popupCharacters="@string/alternates_for_u" /> 48 <Key 49 android:keyLabel="i" 50 android:horizontalGap="@dimen/keyboard_key_horizontal_tiny_gap" 51 android:popupKeyboard="@xml/keyboard_popup_template" 52 android:popupCharacters="@string/alternates_for_i" /> 53 <Key 54 android:keyLabel="o" 55 android:horizontalGap="@dimen/keyboard_key_horizontal_tiny_gap" 56 android:popupKeyboard="@xml/keyboard_popup_template" 57 android:popupCharacters="@string/alternates_for_o" /> 58 <Key 59 android:keyLabel="p" 60 android:horizontalGap="@dimen/keyboard_key_horizontal_tiny_gap" /> 61 <Key 62 android:codes="@integer/keycode_delete" 63 android:keyIcon="@drawable/ic_backspace_tint" 64 android:horizontalGap="@dimen/keyboard_key_horizontal_tiny_gap" 65 android:keyEdgeFlags="right" 66 android:isRepeatable="true" /> 67 </Row> 68 69 <Row> 70 <Key 71 android:keyLabel="a" 72 android:horizontalGap="@dimen/keyboard_half_key_size" 73 android:popupKeyboard="@xml/keyboard_popup_template" 74 android:popupCharacters="@string/alternates_for_a" /> 75 <Key 76 android:keyLabel="s" 77 android:horizontalGap="@dimen/keyboard_key_horizontal_tiny_gap" 78 android:popupKeyboard="@xml/keyboard_popup_template" 79 android:popupCharacters="@string/alternates_for_s" /> 80 <Key 81 android:keyLabel="d" 82 android:horizontalGap="@dimen/keyboard_key_horizontal_tiny_gap" /> 83 <Key 84 android:keyLabel="f" 85 android:horizontalGap="@dimen/keyboard_key_horizontal_tiny_gap" /> 86 <Key 87 android:keyLabel="g" 88 android:horizontalGap="@dimen/keyboard_key_horizontal_tiny_gap" /> 89 <Key 90 android:keyLabel="h" 91 android:horizontalGap="@dimen/keyboard_key_horizontal_tiny_gap" /> 92 <Key 93 android:keyLabel="j" 94 android:horizontalGap="@dimen/keyboard_key_horizontal_tiny_gap" /> 95 <Key 96 android:keyLabel="k" 97 android:horizontalGap="@dimen/keyboard_key_horizontal_tiny_gap" /> 98 <Key 99 android:keyLabel="l" 100 android:horizontalGap="@dimen/keyboard_key_horizontal_tiny_gap" 101 android:popupKeyboard="@xml/keyboard_popup_template" 102 android:popupCharacters="@string/alternates_for_l" /> 103 <Key 104 android:codes="@integer/keycode_return" 105 android:keyIcon="@drawable/ic_keyboard_return" 106 android:keyEdgeFlags="right" /> 107 </Row> 108 109 <Row> 110 <Key 111 android:keyLabel="\@" 112 android:keyEdgeFlags="left" /> 113 <Key 114 android:keyLabel="z" 115 android:horizontalGap="@dimen/keyboard_key_horizontal_tiny_gap" 116 android:popupKeyboard="@xml/keyboard_popup_template" 117 android:popupCharacters="@string/alternates_for_z" /> 118 <Key 119 android:keyLabel="x" 120 android:horizontalGap="@dimen/keyboard_key_horizontal_tiny_gap" /> 121 <Key 122 android:keyLabel="c" 123 android:horizontalGap="@dimen/keyboard_key_horizontal_tiny_gap" 124 android:popupKeyboard="@xml/keyboard_popup_template" 125 android:popupCharacters="@string/alternates_for_c" /> 126 <Key 127 android:keyLabel="v" 128 android:horizontalGap="@dimen/keyboard_key_horizontal_tiny_gap" /> 129 <Key 130 android:keyLabel="b" 131 android:horizontalGap="@dimen/keyboard_key_horizontal_tiny_gap" /> 132 <Key 133 android:keyLabel="n" 134 android:horizontalGap="@dimen/keyboard_key_horizontal_tiny_gap" 135 android:popupKeyboard="@xml/keyboard_popup_template" 136 android:popupCharacters="@string/alternates_for_n" /> 137 <Key 138 android:keyLabel="m" 139 android:horizontalGap="@dimen/keyboard_key_horizontal_tiny_gap" /> 140 <Key 141 android:keyLabel="!" 142 android:horizontalGap="@dimen/keyboard_key_horizontal_tiny_gap" /> 143 <Key 144 android:keyLabel="\?" 145 android:horizontalGap="@dimen/keyboard_key_horizontal_tiny_gap" /> 146 <Key 147 android:codes="@integer/keycode_shift" 148 android:isSticky="true" 149 android:isModifier="true" 150 android:horizontalGap="@dimen/keyboard_key_horizontal_tiny_gap" 151 android:keyIcon="@drawable/ic_keyboard_shift" 152 android:keyEdgeFlags="right" /> 153 </Row> 154 155 <Row 156 android:rowEdgeFlags="bottom"> 157 <Key 158 android:codes="@integer/keycode_close_keyboard" 159 android:keyIcon="@drawable/ic_close_keyboard" 160 android:keyEdgeFlags="left" /> 161 <Key 162 android:keyLabel="_" 163 android:horizontalGap="@dimen/keyboard_key_horizontal_tiny_gap" /> 164 <Key 165 android:keyLabel="-" 166 android:horizontalGap="@dimen/keyboard_key_horizontal_tiny_gap" /> 167 <Key 168 android:codes="@integer/keycode_space" 169 android:keyIcon="@drawable/ic_keyboard_spacebar" 170 android:horizontalGap="@dimen/keyboard_half_key_size" 171 android:keyWidth="@dimen/keyboard_key_spacebar_width" /> 172 <Key 173 android:keyLabel="," 174 android:horizontalGap="@dimen/keyboard_half_key_size" /> 175 <Key 176 android:keyLabel="." 177 android:horizontalGap="@dimen/keyboard_key_horizontal_tiny_gap" /> 178 <Key 179 android:codes="@integer/keycode_mode_change" 180 android:keyIcon="@drawable/ic_symbol_layout" 181 android:horizontalGap="@dimen/keyboard_key_horizontal_tiny_gap" 182 android:keyEdgeFlags="right"/> 183 </Row> 184 185</Keyboard>