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" />
     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="settingsKeyStyle"
    104         latin:code="!code/key_settings"
    105         latin:keyIcon="!icon/settings_key"
    106         latin:keyActionFlags="noKeyPreview"
    107         latin:backgroundType="functional" />
    108     <switch>
    109         <case
    110             latin:keyboardLayoutSetElement="alphabetManualShifted|alphabetShiftLockShifted"
    111             latin:navigatePrevious="true"
    112         >
    113             <key-style
    114                 latin:styleName="tabKeyStyle"
    115                 latin:code="!code/key_action_previous"
    116                 latin:keyLabel="!text/label_tab_key"
    117                 latin:keyLabelFlags="fontNormal|preserveCase"
    118                 latin:backgroundType="functional" />
    119         </case>
    120         <default>
    121             <key-style
    122                 latin:styleName="tabKeyStyle"
    123                 latin:code="!code/key_tab"
    124                 latin:keyLabel="!text/label_tab_key"
    125                 latin:keyLabelFlags="fontNormal|preserveCase"
    126                 latin:backgroundType="functional" />
    127         </default>
    128     </switch>
    129     <key-style
    130         latin:styleName="toSymbolKeyStyle"
    131         latin:code="!code/key_switch_alpha_symbol"
    132         latin:keyLabel="!text/label_to_symbol_key"
    133         latin:keyLabelFlags="fontNormal|preserveCase"
    134         latin:keyActionFlags="noKeyPreview"
    135         latin:backgroundType="functional" />
    136     <key-style
    137         latin:styleName="toAlphaKeyStyle"
    138         latin:code="!code/key_switch_alpha_symbol"
    139         latin:keyLabel="!text/label_to_alpha_key"
    140         latin:keyLabelFlags="fontNormal|preserveCase"
    141         latin:keyActionFlags="noKeyPreview"
    142         latin:backgroundType="functional" />
    143     <key-style
    144         latin:styleName="toMoreSymbolKeyStyle"
    145         latin:code="!code/key_shift"
    146         latin:keyLabel="!text/label_to_more_symbol_for_tablet_key"
    147         latin:keyLabelFlags="fontNormal"
    148         latin:keyActionFlags="noKeyPreview"
    149         latin:backgroundType="functional" />
    150     <key-style
    151         latin:styleName="backFromMoreSymbolKeyStyle"
    152         latin:code="!code/key_shift"
    153         latin:keyLabel="!text/label_to_symbol_key"
    154         latin:keyLabelFlags="fontNormal"
    155         latin:keyActionFlags="noKeyPreview"
    156         latin:backgroundType="functional" />
    157     <key-style
    158         latin:styleName="comKeyStyle"
    159         latin:keyLabel="!text/keylabel_for_popular_domain"
    160         latin:keyLabelFlags="fontNormal|hasPopupHint|preserveCase"
    161         latin:keyOutputText="!text/keylabel_for_popular_domain"
    162         latin:moreKeys="!text/more_keys_for_popular_domain" />
    163 </merge>
    164