Home | History | Annotate | Download | only in xml-sw600dp
      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/key_styles_common" />
     26     <!-- TODO: Consolidate the layout specification between protrait and landscape.
     27          Ideally just the keyWidth should be different and the spacer should adjust to fill
     28          the available space. -->
     29     <!-- First row -->
     30     <Row>
     31         <switch>
     32             <!-- Split keyboard layout for the first row -->
     33             <case
     34                 latin:isSplitLayout="true"
     35             >
     36                 <include
     37                     latin:keyboardLayout="@xml/rowkeys_qwerty1_left5"
     38                     latin:keyWidth="8.0%p" />
     39                 <Spacer
     40                     latin:keyWidth="10.0%p" />
     41                 <include
     42                     latin:keyboardLayout="@xml/rowkeys_qwerty1_right5"
     43                     latin:keyWidth="8.0%p" />
     44                 <Key
     45                     latin:keyStyle="deleteKeyStyle"
     46                     latin:keyWidth="10.0%p" />
     47             </case>
     48             <!-- Regular layout for the first row -->
     49             <default>
     50                 <include
     51                     latin:keyboardLayout="@xml/rowkeys_qwerty1"
     52                     latin:keyWidth="9.0%p" />
     53                 <Key
     54                     latin:keyStyle="deleteKeyStyle"
     55                     latin:keyWidth="fillRight" />
     56             </default>
     57         </switch>
     58     </Row>
     59     <!-- Second row -->
     60     <Row>
     61         <switch>
     62             <!-- Split keyboard layout for the second row -->
     63             <case
     64                 latin:isSplitLayout="true"
     65             >
     66                 <include
     67                     latin:keyboardLayout="@xml/rowkeys_qwerty2_left5"
     68                     latin:keyXPos="4.0%p"
     69                     latin:keyWidth="8.0%p" />
     70                 <Spacer
     71                     latin:keyWidth="14.0%p" />
     72                 <include
     73                     latin:keyboardLayout="@xml/rowkeys_qwerty2_right4"
     74                     latin:keyWidth="8.0%p" />
     75                 <Key
     76                     latin:keyStyle="enterKeyStyle"
     77                     latin:keyWidth="10.0%p" />
     78             </case>
     79             <!-- Regular layout for the second row -->
     80             <default>
     81                 <include
     82                     latin:keyboardLayout="@xml/rowkeys_qwerty2"
     83                     latin:keyXPos="4.5%p"
     84                     latin:keyWidth="9.0%p" />
     85                 <Key
     86                     latin:keyStyle="enterKeyStyle"
     87                     latin:keyWidth="fillRight" />
     88             </default>
     89         </switch>
     90     </Row>
     91     <!-- Third row -->
     92     <Row>
     93         <switch>
     94             <!-- Split keyboard layout for the third row -->
     95             <case
     96                 latin:isSplitLayout="true"
     97             >
     98                 <Key
     99                     latin:keyStyle="shiftKeyStyle"
    100                     latin:keyWidth="10.0%p" />
    101                 <include
    102                     latin:keyboardLayout="@xml/rowkeys_qwerty3_left4"
    103                     latin:keyWidth="8.0%p" />
    104                 <Spacer
    105                     latin:keyWidth="8.0%p" />
    106                 <include
    107                     latin:keyboardLayout="@xml/rowkeys_qwerty3_right3"
    108                     latin:keyWidth="8.0%p" />
    109                 <include
    110                     latin:keyboardLayout="@xml/keys_exclamation_question"
    111                     latin:keyWidth="8.0%p" />
    112                 <Key
    113                     latin:keyStyle="shiftKeyStyle"
    114                     latin:keyWidth="10.0%p" />
    115             </case>
    116             <!-- Regular layout for the third row -->
    117             <default>
    118                 <Key
    119                     latin:keyStyle="shiftKeyStyle"
    120                     latin:keyWidth="10.0%p" />
    121                 <include
    122                     latin:keyboardLayout="@xml/rowkeys_qwerty3"
    123                     latin:keyWidth="9.0%p" />
    124                 <include
    125                     latin:keyboardLayout="@xml/keys_exclamation_question"
    126                     latin:keyWidth="9.0%p" />
    127                 <Key
    128                     latin:keyStyle="shiftKeyStyle"
    129                     latin:keyWidth="fillRight" />
    130             </default>
    131         </switch>
    132     </Row>
    133     <!-- Fourth row -->
    134     <include
    135         latin:keyboardLayout="@xml/row_qwerty4" />
    136 </merge>
    137