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 <merge 22 xmlns:latin="http://schemas.android.com/apk/res/com.android.inputmethod.latin" 23 > 24 <key-style 25 latin:styleName="numKeyBaseStyle" 26 latin:keyActionFlags="noKeyPreview" /> 27 <key-style 28 latin:styleName="numKeyStyle" 29 latin:keyLabelFlags="followKeyLargeLetterRatio" 30 latin:parentStyle="numKeyBaseStyle" /> 31 <key-style 32 latin:styleName="numModeKeyStyle" 33 latin:keyLabelFlags="fontNormal|followKeyLetterRatio|followFunctionalTextColor" 34 latin:parentStyle="numKeyBaseStyle" /> 35 <key-style 36 latin:styleName="numFunctionalKeyStyle" 37 latin:keyLabelFlags="followKeyLargeLetterRatio" 38 latin:backgroundType="functional" 39 latin:parentStyle="numKeyBaseStyle" /> 40 <key-style 41 latin:styleName="numberKeyStyle" 42 latin:keyLabelFlags="alignLabelOffCenter|hasHintLabel" 43 latin:parentStyle="numKeyStyle" /> 44 <key-style 45 latin:styleName="num0KeyStyle" 46 latin:keySpec="0" 47 latin:parentStyle="numberKeyStyle" /> 48 <key-style 49 latin:styleName="num1KeyStyle" 50 latin:keySpec="1" 51 latin:parentStyle="numberKeyStyle" /> 52 <key-style 53 latin:styleName="num2KeyStyle" 54 latin:keySpec="2" 55 latin:keyHintLabel="ABC" 56 latin:parentStyle="numberKeyStyle" /> 57 <key-style 58 latin:styleName="num3KeyStyle" 59 latin:keySpec="3" 60 latin:keyHintLabel="DEF" 61 latin:parentStyle="numberKeyStyle" /> 62 <key-style 63 latin:styleName="num4KeyStyle" 64 latin:keySpec="4" 65 latin:keyHintLabel="GHI" 66 latin:parentStyle="numberKeyStyle" /> 67 <key-style 68 latin:styleName="num5KeyStyle" 69 latin:keySpec="5" 70 latin:keyHintLabel="JKL" 71 latin:parentStyle="numberKeyStyle" /> 72 <key-style 73 latin:styleName="num6KeyStyle" 74 latin:keySpec="6" 75 latin:keyHintLabel="MNO" 76 latin:parentStyle="numberKeyStyle" /> 77 <key-style 78 latin:styleName="num7KeyStyle" 79 latin:keySpec="7" 80 latin:keyHintLabel="PQRS" 81 latin:parentStyle="numberKeyStyle" /> 82 <key-style 83 latin:styleName="num8KeyStyle" 84 latin:keySpec="8" 85 latin:keyHintLabel="TUV" 86 latin:parentStyle="numberKeyStyle" /> 87 <key-style 88 latin:styleName="num9KeyStyle" 89 latin:keySpec="9" 90 latin:keyHintLabel="WXYZ" 91 latin:parentStyle="numberKeyStyle" /> 92 <!-- U+FF0A: "" FULLWIDTH ASTERISK --> 93 <key-style 94 latin:styleName="numStarKeyStyle" 95 latin:keySpec="*|*" 96 latin:parentStyle="numKeyStyle" /> 97 <!-- Only for non-tablet device --> 98 <key-style 99 latin:styleName="numPhoneToSymbolKeyStyle" 100 latin:keySpec="!text/keylabel_to_phone_symbols|!code/key_switch_alpha_symbol" 101 latin:parentStyle="numModeKeyStyle" /> 102 <key-style 103 latin:styleName="numPhoneToNumericKeyStyle" 104 latin:keySpec="!text/keylabel_to_phone_numeric|!code/key_switch_alpha_symbol" 105 latin:parentStyle="numModeKeyStyle" /> 106 <key-style 107 latin:styleName="numPauseKeyStyle" 108 latin:keySpec="!text/label_pause_key|," 109 latin:keyLabelFlags="followKeyHintLabelRatio|autoXScale" 110 latin:parentStyle="numKeyBaseStyle" /> 111 <key-style 112 latin:styleName="numWaitKeyStyle" 113 latin:keySpec="!text/label_wait_key|;" 114 latin:keyLabelFlags="followKeyHintLabelRatio|autoXScale" 115 latin:parentStyle="numKeyBaseStyle" /> 116 <key-style 117 latin:styleName="numTabKeyStyle" 118 latin:keyActionFlags="noKeyPreview" 119 latin:parentStyle="tabKeyStyle" /> 120 <key-style 121 latin:styleName="numSpaceKeyStyle" 122 latin:keySpec="!icon/space_key_for_number_layout|!code/key_space" 123 latin:keyLabelFlags="alignIconToBottom" 124 latin:keyActionFlags="enableLongPress" 125 latin:parentStyle="numKeyBaseStyle" /> 126 <!-- TODO: Consolidate these space key styles with numSpaceKeyStyle above by introducing <case> 127 predicator that checks device form-factor. --> 128 <switch> 129 <case latin:keyboardTheme="ICS|KLP"> 130 <key-style 131 latin:styleName="tabletNumSpaceKeyStyle" 132 latin:keySpec="!icon/space_key|!code/key_space" 133 latin:backgroundType="functional" 134 latin:keyActionFlags="enableLongPress" 135 latin:parentStyle="numKeyBaseStyle" /> 136 </case> 137 <case latin:keyboardTheme="LXXLight|LXXDark"> 138 <key-style 139 latin:styleName="tabletNumSpaceKeyStyle" 140 latin:keySpec="!icon/space_key|!code/key_space" 141 latin:backgroundType="spacebar" 142 latin:keyActionFlags="enableLongPress" 143 latin:parentStyle="numKeyBaseStyle" /> 144 </case> 145 </switch> 146 </merge> 147