Home | History | Annotate | Download | only in xml-sw600dp
      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     <switch>
     25         <case
     26             latin:keyboardLayoutSetElement="alphabetManualShifted|alphabetShiftLockShifted"
     27         >
     28             <key-style
     29                 latin:styleName="hasShiftedLetterHintStyle"
     30                 latin:keyLabelFlags="hasShiftedLetterHint|shiftedLetterActivated" />
     31         </case>
     32         <default>
     33             <key-style
     34                 latin:styleName="hasShiftedLetterHintStyle"
     35                 latin:keyLabelFlags="hasShiftedLetterHint" />
     36         </default>
     37     </switch>
     38     <!-- Functional key styles -->
     39     <!-- Base style for shift key. A single space is used for dummy label in moreKeys. -->
     40     <key-style
     41         latin:styleName="baseForShiftKeyStyle"
     42         latin:code="!code/key_shift"
     43         latin:keyActionFlags="noKeyPreview"
     44         latin:keyLabelFlags="preserveCase"
     45         latin:moreKeys="!noPanelAutoMoreKey!, |!code/key_capslock" />
     46     <switch>
     47         <case
     48             latin:keyboardLayoutSetElement="alphabetManualShifted|alphabetAutomaticShifted"
     49         >
     50             <key-style
     51                 latin:styleName="shiftKeyStyle"
     52                 latin:keyIcon="!icon/shift_key_shifted"
     53                 latin:backgroundType="stickyOff"
     54                 latin:parentStyle="baseForShiftKeyStyle" />
     55         </case>
     56         <case
     57             latin:keyboardLayoutSetElement="alphabetShiftLocked|alphabetShiftLockShifted"
     58         >
     59             <key-style
     60                 latin:styleName="shiftKeyStyle"
     61                 latin:keyIcon="!icon/shift_key_shifted"
     62                 latin:backgroundType="stickyOn"
     63                 latin:parentStyle="baseForShiftKeyStyle" />
     64         </case>
     65         <default>
     66             <key-style
     67                 latin:styleName="shiftKeyStyle"
     68                 latin:keyIcon="!icon/shift_key"
     69                 latin:backgroundType="stickyOff"
     70                 latin:parentStyle="baseForShiftKeyStyle" />
     71         </default>
     72     </switch>
     73     <key-style
     74         latin:styleName="deleteKeyStyle"
     75         latin:code="!code/key_delete"
     76         latin:keyIcon="!icon/delete_key"
     77         latin:keyActionFlags="isRepeatable|noKeyPreview"
     78         latin:backgroundType="functional" />
     79     <include
     80         latin:keyboardLayout="@xml/key_styles_enter" />
     81     <!-- Override defaultEnterKeyStyle in key_styles_enter.xml -->
     82     <key-style
     83         latin:styleName="defaultEnterKeyStyle"
     84         latin:code="!code/key_enter"
     85         latin:keyIcon="!icon/enter_key"
     86         latin:keyLabelFlags="preserveCase|autoXScale|followKeyLargeLabelRatio"
     87         latin:keyActionFlags="noKeyPreview"
     88         latin:backgroundType="functional"
     89         latin:parentStyle="navigateMoreKeysStyle" />
     90     <key-style
     91         latin:styleName="spaceKeyStyle"
     92         latin:code="!code/key_space"
     93         latin:keyActionFlags="noKeyPreview|enableLongPress" />
     94     <!-- U+200C: ZERO WIDTH NON-JOINER
     95          U+200D: ZERO WIDTH JOINER -->
     96     <key-style
     97         latin:styleName="zwnjKeyStyle"
     98         latin:code="0x200C"
     99         latin:keyIcon="!icon/zwnj_key"
    100         latin:moreKeys="!icon/zwj_key|&#x200D;"
    101         latin:keyLabelFlags="hasPopupHint"
    102         latin:keyActionFlags="noKeyPreview" />
    103     <key-style
    104         latin:styleName="smileyKeyStyle"
    105         latin:keyLabel=":-)"
    106         latin:keyOutputText=":-) "
    107         latin:keyLabelFlags="hasPopupHint|preserveCase"
    108         latin:moreKeys="!text/more_keys_for_smiley" />
    109     <key-style
    110         latin:styleName="shortcutKeyStyle"
    111         latin:code="!code/key_shortcut"
    112         latin:keyIcon="!icon/shortcut_key"
    113         latin:keyIconDisabled="!icon/shortcut_key_disabled"
    114         latin:keyActionFlags="noKeyPreview"
    115         latin:backgroundType="functional" />
    116     <key-style
    117         latin:styleName="languageSwitchKeyStyle"
    118         latin:code="!code/key_language_switch"
    119         latin:keyIcon="!icon/language_switch_key"
    120         latin:keyActionFlags="noKeyPreview|altCodeWhileTyping|enableLongPress"
    121         latin:altCode="!code/key_space" />
    122     <key-style
    123         latin:styleName="emojiKeyStyle"
    124         latin:code="!code/key_emoji"
    125         latin:keyIcon="!icon/emoji_key"
    126         latin:keyActionFlags="noKeyPreview"
    127         latin:backgroundType="functional" />
    128     <key-style
    129         latin:styleName="settingsKeyStyle"
    130         latin:code="!code/key_settings"
    131         latin:keyIcon="!icon/settings_key"
    132         latin:keyActionFlags="noKeyPreview"
    133         latin:backgroundType="functional" />
    134     <switch>
    135         <case
    136             latin:keyboardLayoutSetElement="alphabetManualShifted|alphabetShiftLockShifted"
    137             latin:navigatePrevious="true"
    138         >
    139             <key-style
    140                 latin:styleName="tabKeyStyle"
    141                 latin:code="!code/key_action_previous"
    142                 latin:keyIcon="!icon/tab_key"
    143                 latin:keyIconPreview="!icon/tab_key_preview"
    144                 latin:backgroundType="functional" />
    145         </case>
    146         <case
    147             latin:keyboardLayoutSetElement="alphabet|alphabetAutomaticShifted|alphabetShiftLocked"
    148             latin:navigateNext="true"
    149         >
    150             <key-style
    151                 latin:styleName="tabKeyStyle"
    152                 latin:code="!code/key_action_next"
    153                 latin:keyIcon="!icon/tab_key"
    154                 latin:keyIconPreview="!icon/tab_key_preview"
    155                 latin:backgroundType="functional" />
    156         </case>
    157         <default>
    158             <key-style
    159                 latin:styleName="tabKeyStyle"
    160                 latin:code="!code/key_tab"
    161                 latin:keyIcon="!icon/tab_key"
    162                 latin:keyIconPreview="!icon/tab_key_preview"
    163                 latin:backgroundType="functional" />
    164         </default>
    165     </switch>
    166     <key-style
    167         latin:styleName="baseForLayoutSwitchKeyStyle"
    168         latin:keyLabelFlags="preserveCase"
    169         latin:keyActionFlags="noKeyPreview"
    170         latin:backgroundType="functional" />
    171     <key-style
    172         latin:styleName="toSymbolKeyStyle"
    173         latin:code="!code/key_switch_alpha_symbol"
    174         latin:keyLabel="!text/label_to_symbol_key"
    175         latin:parentStyle="baseForLayoutSwitchKeyStyle" />
    176     <key-style
    177         latin:styleName="toAlphaKeyStyle"
    178         latin:code="!code/key_switch_alpha_symbol"
    179         latin:keyLabel="!text/label_to_alpha_key"
    180         latin:parentStyle="baseForLayoutSwitchKeyStyle" />
    181     <key-style
    182         latin:styleName="toMoreSymbolKeyStyle"
    183         latin:code="!code/key_shift"
    184         latin:keyLabel="!text/label_to_more_symbol_for_tablet_key"
    185         latin:parentStyle="baseForLayoutSwitchKeyStyle" />
    186     <key-style
    187         latin:styleName="backFromMoreSymbolKeyStyle"
    188         latin:code="!code/key_shift"
    189         latin:keyLabel="!text/label_to_symbol_key"
    190         latin:parentStyle="baseForLayoutSwitchKeyStyle" />
    191     <key-style
    192         latin:styleName="comKeyStyle"
    193         latin:keyLabel="!text/keylabel_for_popular_domain"
    194         latin:keyLabelFlags="autoXScale|fontNormal|hasPopupHint|preserveCase"
    195         latin:keyOutputText="!text/keylabel_for_popular_domain"
    196         latin:moreKeys="!text/more_keys_for_popular_domain" />
    197 </merge>
    198