Home | History | Annotate | Download | only in xml
      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     <include
     25         latin:keyboardLayout="@xml/kbd_key_styles" />
     26     <include
     27         latin:keyboardLayout="@xml/kbd_numkey_styles" />
     28     <switch>
     29         <case
     30             latin:passwordInput="true"
     31         >
     32             <Row>
     33                 <Key
     34                     latin:keyStyle="num1KeyStyle" />
     35                 <Key
     36                     latin:keyStyle="num2KeyStyle" />
     37                 <Key
     38                     latin:keyStyle="num3KeyStyle" />
     39                 <Spacer />
     40             </Row>
     41             <Row>
     42                 <Key
     43                     latin:keyStyle="num4KeyStyle" />
     44                 <Key
     45                     latin:keyStyle="num5KeyStyle" />
     46                 <Key
     47                     latin:keyStyle="num6KeyStyle" />
     48                 <Spacer />
     49             </Row>
     50             <Row>
     51                 <Key
     52                     latin:keyStyle="num7KeyStyle" />
     53                 <Key
     54                     latin:keyStyle="num8KeyStyle" />
     55                 <Key
     56                     latin:keyStyle="num9KeyStyle" />
     57                 <Key
     58                     latin:keyStyle="deleteKeyStyle"
     59                     latin:keyWidth="fillRight" />
     60             </Row>
     61             <Row>
     62                 <Spacer />
     63                 <Key
     64                     latin:keyStyle="num0KeyStyle" />
     65                 <Spacer />
     66                 <Key
     67                     latin:keyStyle="returnKeyStyle"
     68                     latin:keyWidth="fillRight" />
     69             </Row>
     70         </case>
     71         <!-- latin:passwordInput="false" -->
     72         <default>
     73             <Row>
     74                 <Key
     75                     latin:keyLabel="1"
     76                     latin:keyStyle="numKeyStyle" />
     77                 <Key
     78                     latin:keyLabel="2"
     79                     latin:keyStyle="numKeyStyle" />
     80                 <Key
     81                     latin:keyLabel="3"
     82                     latin:keyStyle="numKeyStyle" />
     83                 <Key
     84                     latin:keyLabel="-"
     85                     latin:keyStyle="numFunctionalKeyStyle"
     86                     latin:keyWidth="fillRight" />
     87             </Row>
     88             <Row>
     89                 <Key
     90                     latin:keyLabel="4"
     91                     latin:keyStyle="numKeyStyle" />
     92                 <Key
     93                     latin:keyLabel="5"
     94                     latin:keyStyle="numKeyStyle" />
     95                 <Key
     96                     latin:keyLabel="6"
     97                     latin:keyStyle="numKeyStyle" />
     98                 <Key
     99                     latin:keyLabel=","
    100                     latin:keyStyle="numFunctionalKeyStyle"
    101                     latin:keyWidth="fillRight" />
    102             </Row>
    103             <Row>
    104                 <Key
    105                     latin:keyLabel="7"
    106                     latin:keyStyle="numKeyStyle" />
    107                 <Key
    108                     latin:keyLabel="8"
    109                     latin:keyStyle="numKeyStyle"/>
    110                 <Key
    111                     latin:keyLabel="9"
    112                     latin:keyStyle="numKeyStyle" />
    113                 <Key
    114                     latin:keyStyle="deleteKeyStyle"
    115                     latin:keyWidth="fillRight" />
    116             </Row>
    117             <Row>
    118                 <Key
    119                     latin:keyStyle="numSpaceKeyStyle" />
    120                 <Key
    121                     latin:keyLabel="0"
    122                     latin:keyStyle="numKeyStyle" />
    123                 <Key
    124                     latin:keyLabel="."
    125                     latin:keyStyle="numKeyStyle" />
    126                 <Key
    127                     latin:keyStyle="returnKeyStyle"
    128                     latin:keyWidth="fillRight" />
    129             </Row>
    130         </default>
    131     </switch>
    132 </merge>
    133