Home | History | Annotate | Download | only in xml
      1 <?xml version="1.0" encoding="utf-8"?>
      2 <!--
      3 /*
      4 **
      5 ** Copyright 2012, 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     <Row>
     25         <Key
     26             latin:keySpec="1"
     27             latin:keyStyle="numKeyStyle" />
     28         <Key
     29             latin:keySpec="2"
     30             latin:keyStyle="numKeyStyle" />
     31         <Key
     32             latin:keySpec="3"
     33             latin:keyStyle="numKeyStyle" />
     34         <Key
     35             latin:keySpec="-"
     36             latin:moreKeys="+"
     37             latin:keyLabelFlags="hasPopupHint"
     38             latin:keyStyle="numKeyStyle"
     39             latin:backgroundType="functional"
     40             latin:keyWidth="fillRight" />
     41     </Row>
     42     <Row>
     43         <Key
     44             latin:keySpec="4"
     45             latin:keyStyle="numKeyStyle" />
     46         <Key
     47             latin:keySpec="5"
     48             latin:keyStyle="numKeyStyle" />
     49         <Key
     50             latin:keySpec="6"
     51             latin:keyStyle="numKeyStyle" />
     52         <switch>
     53             <case
     54                 latin:mode="date"
     55             >
     56                 <Key
     57                     latin:keySpec="."
     58                     latin:keyStyle="numKeyStyle"
     59                     latin:backgroundType="functional"
     60                     latin:keyWidth="fillRight" />
     61             </case>
     62             <case
     63                 latin:mode="time|datetime"
     64             >
     65                 <Key
     66                     latin:keySpec="."
     67                     latin:moreKeys="!text/morekeys_am_pm"
     68                     latin:keyLabelFlags="hasPopupHint"
     69                     latin:keyStyle="numKeyStyle"
     70                     latin:backgroundType="functional"
     71                     latin:keyWidth="fillRight" />
     72             </case>
     73             <default>
     74                 <Key
     75                     latin:keySpec=","
     76                     latin:keyStyle="numKeyStyle"
     77                     latin:backgroundType="functional"
     78                     latin:keyWidth="fillRight" />
     79             </default>
     80         </switch>
     81     </Row>
     82     <Row>
     83         <Key
     84             latin:keySpec="7"
     85             latin:keyStyle="numKeyStyle" />
     86         <Key
     87             latin:keySpec="8"
     88             latin:keyStyle="numKeyStyle"/>
     89         <Key
     90             latin:keySpec="9"
     91             latin:keyStyle="numKeyStyle" />
     92         <Key
     93             latin:keyStyle="deleteKeyStyle"
     94             latin:keyWidth="fillRight" />
     95     </Row>
     96     <Row>
     97         <switch>
     98             <case
     99                 latin:mode="date"
    100             >
    101                 <Key
    102                     latin:keySpec="/"
    103                     latin:keyStyle="numKeyStyle" />
    104             </case>
    105             <case
    106                 latin:mode="time"
    107             >
    108                 <Key
    109                     latin:keySpec=":"
    110                     latin:keyStyle="numKeyStyle" />
    111             </case>
    112             <case
    113                 latin:mode="datetime"
    114             >
    115                 <Key
    116                     latin:keySpec="/ :|/"
    117                     latin:moreKeys="!noPanelAutoMoreKey!,:"
    118                     latin:keyStyle="numKeyStyle" />
    119             </case>
    120             <default>
    121                 <Key
    122                     latin:keySpec="."
    123                     latin:keyStyle="numKeyStyle" />
    124             </default>
    125         </switch>
    126         <Key
    127             latin:keySpec="0"
    128             latin:keyStyle="numKeyStyle" />
    129         <Key
    130             latin:keyStyle="numSpaceKeyStyle" />
    131         <Key
    132             latin:keyStyle="enterKeyStyle"
    133             latin:keyWidth="fillRight" />
    134     </Row>
    135 </merge>
    136