Home | History | Annotate | Download | only in xml-sw768dp
      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     <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     <switch>
     39         <case
     40             latin:keyboardLayoutSetElement="alphabetManualShifted|alphabetAutomaticShifted"
     41         >
     42             <key-style
     43                 latin:styleName="shiftKeyStyle"
     44                 latin:code="!code/key_shift"
     45                 latin:keyIcon="!icon/shift_key_shifted"
     46                 latin:keyActionFlags="noKeyPreview"
     47                 latin:backgroundType="stickyOff" />
     48         </case>
     49         <case
     50             latin:keyboardLayoutSetElement="alphabetShiftLocked|alphabetShiftLockShifted"
     51         >
     52             <key-style
     53                 latin:styleName="shiftKeyStyle"
     54                 latin:code="!code/key_shift"
     55                 latin:keyIcon="!icon/shift_key_shifted"
     56                 latin:keyActionFlags="noKeyPreview"
     57                 latin:backgroundType="stickyOn" />
     58         </case>
     59         <default>
     60             <key-style
     61                 latin:styleName="shiftKeyStyle"
     62                 latin:code="!code/key_shift"
     63                 latin:keyIcon="!icon/shift_key"
     64                 latin:keyActionFlags="noKeyPreview"
     65                 latin:backgroundType="stickyOff" />
     66         </default>
     67     </switch>
     68     <key-style
     69         latin:styleName="deleteKeyStyle"
     70         latin:code="!code/key_delete"
     71         latin:keyIcon="!icon/delete_key"
     72         latin:keyActionFlags="isRepeatable|noKeyPreview"
     73         latin:backgroundType="functional" />
     74     <include
     75         latin:keyboardLayout="@xml/key_styles_enter" />
     76     <key-style
     77         latin:styleName="spaceKeyStyle"
     78         latin:code="!code/key_space"
     79         latin:keyActionFlags="noKeyPreview|enableLongPress" />
     80     <!-- U+200C: ZERO WIDTH NON-JOINER
     81          U+200D: ZERO WIDTH JOINER -->
     82     <key-style
     83         latin:styleName="zwnjKeyStyle"
     84         latin:code="0x200C"
     85         latin:keyIcon="!icon/zwnj_key"
     86         latin:moreKeys="!icon/zwj_key|&#x200D;"
     87         latin:keyLabelFlags="hasPopupHint"
     88         latin:keyActionFlags="noKeyPreview" />
     89     <key-style
     90         latin:styleName="smileyKeyStyle"
     91         latin:keyLabel=":-)"
     92         latin:keyOutputText=":-) "
     93         latin:keyLabelFlags="hasPopupHint|preserveCase"
     94         latin:moreKeys="!text/more_keys_for_smiley" />
     95     <key-style
     96         latin:styleName="shortcutKeyStyle"
     97         latin:code="!code/key_shortcut"
     98         latin:keyIcon="!icon/shortcut_key"
     99         latin:keyIconDisabled="!icon/shortcut_key_disabled"
    100         latin:keyActionFlags="noKeyPreview"
    101         latin:backgroundType="functional" />
    102     <key-style
    103         latin:styleName="languageSwitchKeyStyle"
    104         latin:code="!code/key_language_switch"
    105         latin:keyIcon="!icon/language_switch_key"
    106         latin:keyActionFlags="noKeyPreview|altCodeWhileTyping|enableLongPress"
    107         latin:altCode="!code/key_space" />
    108     <key-style
    109         latin:styleName="settingsKeyStyle"
    110         latin:code="!code/key_settings"
    111         latin:keyIcon="!icon/settings_key"
    112         latin:keyActionFlags="noKeyPreview"
    113         latin:backgroundType="functional" />
    114     <switch>
    115         <case
    116             latin:keyboardLayoutSetElement="alphabetManualShifted|alphabetShiftLockShifted"
    117             latin:navigatePrevious="true"
    118         >
    119             <key-style
    120                 latin:styleName="tabKeyStyle"
    121                 latin:code="!code/key_action_previous"
    122                 latin:keyLabel="!text/label_tab_key"
    123                 latin:keyLabelFlags="fontNormal|preserveCase"
    124                 latin:backgroundType="functional" />
    125         </case>
    126         <case
    127             latin:keyboardLayoutSetElement="alphabet|alphabetAutomaticShifted|alphabetShiftLocked"
    128             latin:navigateNext="true"
    129         >
    130             <key-style
    131                 latin:styleName="tabKeyStyle"
    132                 latin:code="!code/key_action_next"
    133                 latin:keyLabel="!text/label_tab_key"
    134                 latin:keyLabelFlags="fontNormal|preserveCase"
    135                 latin:backgroundType="functional" />
    136         </case>
    137         <default>
    138             <key-style
    139                 latin:styleName="tabKeyStyle"
    140                 latin:code="!code/key_tab"
    141                 latin:keyLabel="!text/label_tab_key"
    142                 latin:keyLabelFlags="fontNormal|preserveCase"
    143                 latin:backgroundType="functional" />
    144         </default>
    145     </switch>
    146     <key-style
    147         latin:styleName="baseForLayoutSwitchKeyStyle"
    148         latin:keyLabelFlags="fontNormal|preserveCase"
    149         latin:keyActionFlags="noKeyPreview"
    150         latin:backgroundType="functional" />
    151     <key-style
    152         latin:styleName="toSymbolKeyStyle"
    153         latin:code="!code/key_switch_alpha_symbol"
    154         latin:keyLabel="!text/label_to_symbol_key"
    155         latin:parentStyle="baseForLayoutSwitchKeyStyle" />
    156     <key-style
    157         latin:styleName="toAlphaKeyStyle"
    158         latin:code="!code/key_switch_alpha_symbol"
    159         latin:keyLabel="!text/label_to_alpha_key"
    160         latin:parentStyle="baseForLayoutSwitchKeyStyle" />
    161     <key-style
    162         latin:styleName="toMoreSymbolKeyStyle"
    163         latin:code="!code/key_shift"
    164         latin:keyLabel="!text/label_to_more_symbol_for_tablet_key"
    165         latin:parentStyle="baseForLayoutSwitchKeyStyle" />
    166     <key-style
    167         latin:styleName="backFromMoreSymbolKeyStyle"
    168         latin:code="!code/key_shift"
    169         latin:keyLabel="!text/label_to_symbol_key"
    170         latin:parentStyle="baseForLayoutSwitchKeyStyle" />
    171     <key-style
    172         latin:styleName="comKeyStyle"
    173         latin:keyLabel="!text/keylabel_for_popular_domain"
    174         latin:keyLabelFlags="fontNormal|hasPopupHint|preserveCase"
    175         latin:keyOutputText="!text/keylabel_for_popular_domain"
    176         latin:moreKeys="!text/more_keys_for_popular_domain" />
    177 </merge>
    178