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 <Keyboard
     22     xmlns:latin="http://schemas.android.com/apk/res/com.android.inputmethod.latin"
     23     latin:keyWidth="13.250%p"
     24 >
     25     <include
     26         latin:keyboardLayout="@xml/kbd_key_styles" />
     27     <include
     28         latin:keyboardLayout="@xml/kbd_numkey_styles" />
     29     <switch>
     30         <case
     31             latin:passwordInput="true"
     32         >
     33             <Row>
     34                 <Key
     35                     latin:keyStyle="tabKeyStyle"
     36                     latin:keyLabelOption="alignLeft"
     37                     latin:keyWidth="11.172%p" />
     38                 <Key
     39                     latin:keyStyle="num1KeyStyle"
     40                     latin:keyXPos="32.076%p" />
     41                 <Key
     42                     latin:keyStyle="num2KeyStyle" />
     43                 <Key
     44                     latin:keyStyle="num3KeyStyle" />
     45                 <Key
     46                     latin:keyStyle="deleteKeyStyle"
     47                     latin:keyXPos="-11.172%p"
     48                     latin:keyWidth="fillRight" />
     49             </Row>
     50             <Row>
     51                 <!-- Note: This Spacer prevents the below key from being marked as a left edge key. -->
     52                 <Spacer
     53                     latin:keyWidth="32.076%p" />
     54                 <Key
     55                     latin:keyStyle="num4KeyStyle" />
     56                 <Key
     57                     latin:keyStyle="num5KeyStyle" />
     58                 <Key
     59                     latin:keyStyle="num6KeyStyle" />
     60                 <Key
     61                     latin:keyStyle="returnKeyStyle"
     62                     latin:keyXPos="-11.172%p"
     63                     latin:keyWidth="fillRight" />
     64             </Row>
     65             <Row>
     66                 <!-- Note: This Spacer prevents the below key from being marked as a left edge key. -->
     67                 <Spacer
     68                     latin:keyWidth="32.076%p" />
     69                 <Key
     70                     latin:keyStyle="num7KeyStyle" />
     71                 <Key
     72                     latin:keyStyle="num8KeyStyle" />
     73                 <Key
     74                     latin:keyStyle="num9KeyStyle" />
     75                 <!-- Note: This Spacer prevents the above key from being marked as a right edge key. -->
     76                 <Spacer
     77                     latin:keyWidth="0%p" />
     78             </Row>
     79             <Row>
     80                 <Spacer
     81                     latin:keyXPos="32.076%p" />
     82                 <Key
     83                     latin:keyStyle="num0KeyStyle" />
     84                 <!-- Note: This Spacer prevents the above key from being marked as a right edge key. -->
     85                 <Spacer
     86                     latin:keyWidth="0%p" />
     87             </Row>
     88         </case>
     89         <!-- latin:passwordInput="false" -->
     90         <default>
     91             <Row>
     92                 <Key
     93                     latin:keyStyle="tabKeyStyle"
     94                     latin:keyLabelOption="alignLeft"
     95                     latin:keyWidth="11.172%p" />
     96                 <Key
     97                     latin:keyLabel="-"
     98                     latin:keyStyle="numKeyStyle"
     99                     latin:keyXPos="13.829%p"
    100                     latin:keyWidth="8.047%p" />
    101                 <Key
    102                     latin:keyLabel="+"
    103                     latin:keyStyle="numKeyStyle"
    104                     latin:keyWidth="8.047%p" />
    105                 <Key
    106                     latin:keyLabel="."
    107                     latin:keyStyle="numKeyStyle"
    108                     latin:keyWidth="8.047%p" />
    109                 <Key
    110                     latin:keyLabel="1"
    111                     latin:keyStyle="numKeyStyle"
    112                     latin:keyXPos="43.125%p" />
    113                 <Key
    114                     latin:keyLabel="2"
    115                     latin:keyStyle="numKeyStyle" />
    116                 <Key
    117                     latin:keyLabel="3"
    118                     latin:keyStyle="numKeyStyle" />
    119                 <Key
    120                     latin:keyStyle="deleteKeyStyle"
    121                     latin:keyXPos="-11.172%p"
    122                     latin:keyWidth="fillRight" />
    123             </Row>
    124             <Row>
    125                 <!-- Note: This Spacer prevents the below key from being marked as a left edge key. -->
    126                 <Spacer
    127                     latin:keyWidth="13.829%p" />
    128                 <Key
    129                     latin:keyStyle="numStarKeyStyle"
    130                     latin:keyWidth="8.047%p" />
    131                 <Key
    132                     latin:keyLabel="/"
    133                     latin:keyStyle="numKeyStyle"
    134                     latin:keyWidth="8.047%p" />
    135                 <Key
    136                     latin:keyLabel=","
    137                     latin:keyStyle="numKeyStyle"
    138                     latin:keyWidth="8.047%p" />
    139                 <Key
    140                     latin:keyLabel="4"
    141                     latin:keyStyle="numKeyStyle"
    142                     latin:keyXPos="43.125%p" />
    143                 <Key
    144                     latin:keyLabel="5"
    145                     latin:keyStyle="numKeyStyle" />
    146                 <Key
    147                     latin:keyLabel="6"
    148                     latin:keyStyle="numKeyStyle" />
    149                 <Key
    150                     latin:keyStyle="returnKeyStyle"
    151                     latin:keyXPos="-11.172%p"
    152                     latin:keyWidth="fillRight" />
    153             </Row>
    154             <Row>
    155                 <!-- Note: This Spacer prevents the below key from being marked as a left edge key. -->
    156                 <Spacer
    157                     latin:keyWidth="13.829%p" />
    158                 <Key
    159                     latin:keyLabel="("
    160                     latin:keyStyle="numKeyStyle"
    161                     latin:keyWidth="8.047%p" />
    162                 <Key
    163                     latin:keyLabel=")"
    164                     latin:keyStyle="numKeyStyle"
    165                     latin:keyWidth="8.047%p" />
    166                 <Key
    167                     latin:keyLabel="="
    168                     latin:keyStyle="numKeyStyle"
    169                     latin:keyWidth="8.047%p" />
    170                 <Key
    171                     latin:keyLabel="7"
    172                     latin:keyStyle="numKeyStyle"
    173                     latin:keyXPos="43.125%p" />
    174                 <Key
    175                     latin:keyLabel="8"
    176                     latin:keyStyle="numKeyStyle" />
    177                 <Key
    178                     latin:keyLabel="9"
    179                     latin:keyStyle="numKeyStyle" />
    180                 <!-- Note: This Spacer prevents the above key from being marked as a right edge key. -->
    181                 <Spacer
    182                     latin:keyWidth="0%p" />
    183             </Row>
    184             <Row>
    185                 <switch>
    186                     <case latin:hasSettingsKey="true">
    187                         <Key
    188                             latin:keyStyle="settingsKeyStyle"
    189                             latin:keyWidth="8.047%p" />
    190                     </case>
    191                     <default>
    192                         <!-- Note: This Spacer prevents the below key from being marked as a left edge key. -->
    193                         <Spacer
    194                             latin:keyWidth="8.047%p" />
    195                     </default>
    196                 </switch>
    197                 <Key
    198                     latin:keyStyle="nonSpecialBackgroundSpaceKeyStyle"
    199                     latin:keyXPos="13.829%p"
    200                     latin:keyWidth="24.140%p" />
    201                 <Key
    202                     latin:keyStyle="numStarKeyStyle"
    203                     latin:keyXPos="43.125%p" />
    204                 <Key
    205                     latin:keyLabel="0"
    206                     latin:keyStyle="numKeyStyle" />
    207                 <Key
    208                     latin:keyLabel="#"
    209                     latin:keyStyle="numKeyStyle" />
    210                 <switch>
    211                     <case
    212                         latin:shortcutKeyEnabled="true"
    213                     >
    214                         <Key
    215                             latin:keyStyle="shortcutKeyStyle"
    216                             latin:keyXPos="-8.047%p"
    217                             latin:keyWidth="fillRight" />
    218                     </case>
    219                     <default>
    220                         <!-- Note: This Spacer prevents the above key from being marked as a right edge key. -->
    221                         <Spacer
    222                             latin:keyWidth="0%p" />
    223                     </default>
    224                 </switch>
    225             </Row>
    226         </default>
    227     </switch>
    228 </Keyboard>
    229