1 <?xml version="1.0" encoding="utf-8"?> 2 <!-- 3 /* 4 ** 5 ** Copyright 2011, 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 <!-- Base key style for the key which may have settings key as popup key --> 25 <switch> 26 <case 27 latin:clobberSettingsKey="true" 28 > 29 <key-style 30 latin:styleName="f2PopupStyle" 31 latin:backgroundType="functional" /> 32 </case> 33 <default> 34 <key-style 35 latin:styleName="f2PopupStyle" 36 latin:keyLabelOption="hasPopupHint" 37 latin:moreKeys="\@icon/3|\@integer/key_settings" 38 latin:backgroundType="functional" /> 39 </default> 40 </switch> 41 <!-- Functional key styles --> 42 <key-style 43 latin:styleName="shiftKeyStyle" 44 latin:code="@integer/key_shift" 45 latin:keyIcon="iconShiftKey" 46 latin:keyIconShifted="iconShiftedShiftKey" 47 latin:backgroundType="sticky" /> 48 <key-style 49 latin:styleName="deleteKeyStyle" 50 latin:code="@integer/key_delete" 51 latin:keyIcon="iconDeleteKey" 52 latin:backgroundType="functional" 53 latin:isRepeatable="true" /> 54 <key-style 55 latin:styleName="returnKeyStyle" 56 latin:code="@integer/key_return" 57 latin:keyIcon="iconReturnKey" 58 latin:backgroundType="functional" /> 59 <key-style 60 latin:styleName="spaceKeyStyle" 61 latin:code="@integer/key_space" /> 62 <key-style 63 latin:styleName="nonSpecialBackgroundSpaceKeyStyle" 64 latin:code="@integer/key_space" /> 65 <key-style 66 latin:styleName="smileyKeyStyle" 67 latin:keyLabel=":-)" 68 latin:keyOutputText=":-) " 69 latin:keyLabelOption="hasPopupHint" 70 latin:moreKeys="@string/more_keys_for_smiley" 71 latin:maxMoreKeysColumn="5" /> 72 <key-style 73 latin:styleName="shortcutKeyStyle" 74 latin:code="@integer/key_shortcut" 75 latin:keyIcon="iconShortcutKey" 76 latin:parentStyle="f2PopupStyle" /> 77 <key-style 78 latin:styleName="settingsKeyStyle" 79 latin:code="@integer/key_settings" 80 latin:keyIcon="iconSettingsKey" 81 latin:backgroundType="functional" /> 82 <key-style 83 latin:styleName="tabKeyStyle" 84 latin:code="@integer/key_tab" 85 latin:keyIcon="iconTabKey" 86 latin:keyIconPreview="iconPreviewTabKey" 87 latin:backgroundType="functional" /> 88 <key-style 89 latin:styleName="toSymbolKeyStyle" 90 latin:code="@integer/key_switch_alpha_symbol" 91 latin:keyLabel="@string/label_to_symbol_key" 92 latin:backgroundType="functional" /> 93 <key-style 94 latin:styleName="toAlphaKeyStyle" 95 latin:code="@integer/key_switch_alpha_symbol" 96 latin:keyLabel="@string/label_to_alpha_key" 97 latin:backgroundType="functional" /> 98 <key-style 99 latin:styleName="toMoreSymbolKeyStyle" 100 latin:code="@integer/key_shift" 101 latin:keyLabel="@string/label_to_more_symbol_for_tablet_key" 102 latin:backgroundType="functional" /> 103 <key-style 104 latin:styleName="backFromMoreSymbolKeyStyle" 105 latin:code="@integer/key_shift" 106 latin:keyLabel="@string/label_to_symbol_key" 107 latin:backgroundType="functional" /> 108 <key-style 109 latin:styleName="comKeyStyle" 110 latin:keyLabel="@string/keylabel_for_popular_domain" 111 latin:keyLabelOption="fontNormal|hasPopupHint" 112 latin:keyOutputText="@string/keylabel_for_popular_domain" 113 latin:moreKeys="@string/more_keys_for_popular_domain" /> 114 </merge> 115