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