Home | History | Annotate | Download | only in xml
      1 <?xml version="1.0" encoding="utf-8"?>
      2 <!--
      3 /*
      4 **
      5 ** Copyright 2008, 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:android="http://schemas.android.com/apk/res/android"
     23     android:keyWidth="10%p"
     24     android:horizontalGap="0px"
     25     android:verticalGap="@dimen/key_bottom_gap"
     26     android:keyHeight="@dimen/key_height"
     27 >
     28     <Row
     29         android:rowEdgeFlags="top"
     30     >
     31         <Key
     32             android:keyLabel="q"
     33             android:popupKeyboard="@xml/kbd_popup_template"
     34             android:popupCharacters="@string/alternates_for_q"
     35             android:keyEdgeFlags="left" />
     36         <Key
     37             android:keyLabel="w"
     38             android:popupKeyboard="@xml/kbd_popup_template"
     39             android:popupCharacters="@string/alternates_for_w" />
     40         <Key
     41             android:keyLabel="e"
     42             android:popupKeyboard="@xml/kbd_popup_template"
     43             android:popupCharacters="@string/alternates_for_e" />
     44         <Key
     45             android:keyLabel="r"
     46             android:popupKeyboard="@xml/kbd_popup_template"
     47             android:popupCharacters="@string/alternates_for_r" />
     48         <Key
     49             android:keyLabel="t"
     50             android:popupKeyboard="@xml/kbd_popup_template"
     51             android:popupCharacters="@string/alternates_for_t" />
     52         <Key
     53             android:keyLabel="y"
     54             android:popupKeyboard="@xml/kbd_popup_template"
     55             android:popupCharacters="@string/alternates_for_y" />
     56         <Key
     57             android:keyLabel="u"
     58             android:popupKeyboard="@xml/kbd_popup_template"
     59             android:popupCharacters="@string/alternates_for_u" />
     60         <Key
     61             android:keyLabel="i"
     62             android:popupKeyboard="@xml/kbd_popup_template"
     63             android:popupCharacters="@string/alternates_for_i" />
     64         <Key
     65             android:keyLabel="o"
     66             android:popupKeyboard="@xml/kbd_popup_narrow_template"
     67             android:popupCharacters="@string/alternates_for_o" />
     68         <Key
     69             android:keyLabel="p"
     70             android:popupKeyboard="@xml/kbd_popup_template"
     71             android:popupCharacters="@string/alternates_for_p"
     72             android:keyEdgeFlags="right" />
     73     </Row>
     74     <Row>
     75         <Key
     76             android:keyLabel="a"
     77             android:popupKeyboard="@xml/kbd_popup_template"
     78             android:popupCharacters="@string/alternates_for_a"
     79             android:horizontalGap="5%p"
     80             android:keyEdgeFlags="left" />
     81         <Key
     82             android:keyLabel="s"
     83             android:popupKeyboard="@xml/kbd_popup_template"
     84             android:popupCharacters="@string/alternates_for_s" />
     85         <Key
     86             android:keyLabel="d"
     87             android:popupKeyboard="@xml/kbd_popup_template"
     88             android:popupCharacters="@string/alternates_for_d" />
     89         <Key
     90             android:keyLabel="f" />
     91         <Key
     92             android:keyLabel="g"
     93             android:popupKeyboard="@xml/kbd_popup_template"
     94             android:popupCharacters="@string/alternates_for_g" />
     95         <Key
     96             android:keyLabel="h" />
     97         <Key
     98             android:keyLabel="j" />
     99         <Key
    100             android:keyLabel="k" />
    101         <Key
    102             android:keyLabel="l"
    103             android:popupKeyboard="@xml/kbd_popup_template"
    104             android:popupCharacters="@string/alternates_for_l"
    105             android:keyEdgeFlags="right" />
    106     </Row>
    107     <Row>
    108         <Key
    109             android:codes="@integer/key_shift"
    110             android:keyIcon="@drawable/sym_keyboard_shift"
    111             android:iconPreview="@drawable/sym_keyboard_feedback_shift"
    112             android:keyWidth="15%p"
    113             android:isModifier="true"
    114             android:isSticky="true"
    115             android:keyEdgeFlags="left" />
    116         <Key
    117             android:keyLabel="z"
    118             android:popupKeyboard="@xml/kbd_popup_template"
    119             android:popupCharacters="@string/alternates_for_z" />
    120         <Key
    121             android:keyLabel="x" />
    122         <Key
    123             android:keyLabel="c"
    124             android:popupKeyboard="@xml/kbd_popup_template"
    125             android:popupCharacters="@string/alternates_for_c" />
    126         <Key
    127             android:keyLabel="v"
    128             android:popupKeyboard="@xml/kbd_popup_template"
    129             android:popupCharacters="@string/alternates_for_v" />
    130         <Key
    131             android:keyLabel="b" />
    132         <Key
    133             android:keyLabel="n"
    134             android:popupKeyboard="@xml/kbd_popup_template"
    135             android:popupCharacters="@string/alternates_for_n" />
    136         <Key
    137             android:keyLabel="m" />
    138         <Key
    139             android:codes="@integer/key_delete"
    140             android:keyIcon="@drawable/sym_keyboard_delete"
    141             android:iconPreview="@drawable/sym_keyboard_feedback_delete"
    142             android:keyWidth="15%p"
    143             android:isModifier="true"
    144             android:isRepeatable="true"
    145             android:keyEdgeFlags="right" />
    146     </Row>
    147     <Row
    148         android:keyboardMode="@+id/mode_normal"
    149         android:rowEdgeFlags="bottom"
    150     >
    151         <Key
    152             android:codes="@integer/key_symbol"
    153             android:keyLabel="@string/label_symbol_key"
    154             android:keyWidth="20%p"
    155             android:isModifier="true"
    156             android:keyEdgeFlags="left" />
    157         <Key
    158             android:codes="@integer/key_f1"
    159             android:isModifier="true" />
    160         <Key
    161             android:codes="@integer/key_space"
    162             android:keyIcon="@drawable/sym_keyboard_space"
    163             android:iconPreview="@drawable/sym_keyboard_feedback_space"
    164             android:keyWidth="40%p"
    165             android:isModifier="true" />
    166         <Key
    167             android:keyLabel="."
    168             android:keyIcon="@drawable/hint_popup"
    169             android:popupKeyboard="@xml/popup_punctuation"
    170             android:isModifier="true" />
    171         <Key
    172             android:codes="@integer/key_return"
    173             android:keyIcon="@drawable/sym_keyboard_return"
    174             android:iconPreview="@drawable/sym_keyboard_feedback_return"
    175             android:keyWidth="20%p"
    176             android:isModifier="true"
    177             android:keyEdgeFlags="right" />
    178     </Row>
    179     <Row
    180         android:keyboardMode="@+id/mode_url"
    181         android:rowEdgeFlags="bottom"
    182     >
    183         <Key
    184             android:codes="@integer/key_symbol"
    185             android:keyLabel="@string/label_symbol_key"
    186             android:keyWidth="20%p"
    187             android:isModifier="true"
    188             android:keyEdgeFlags="left" />
    189         <Key
    190             android:codes="@integer/key_f1"
    191             android:isModifier="true" />
    192         <Key
    193             android:codes="@integer/key_space"
    194             android:keyIcon="@drawable/sym_keyboard_space"
    195             android:iconPreview="@drawable/sym_keyboard_feedback_space"
    196             android:keyWidth="40%p"
    197             android:isModifier="true" />
    198         <Key
    199             android:keyLabel="."
    200             android:keyIcon="@drawable/hint_popup"
    201             android:popupKeyboard="@xml/popup_punctuation"
    202             android:isModifier="true" />
    203         <Key
    204             android:codes="@integer/key_return"
    205             android:keyIcon="@drawable/sym_keyboard_return"
    206             android:iconPreview="@drawable/sym_keyboard_feedback_return"
    207             android:keyWidth="20%p"
    208             android:isModifier="true"
    209             android:keyEdgeFlags="right" />
    210     </Row>
    211     <Row
    212         android:keyboardMode="@+id/mode_email"
    213         android:rowEdgeFlags="bottom"
    214     >
    215         <Key
    216             android:codes="@integer/key_symbol"
    217             android:keyLabel="@string/label_symbol_key"
    218             android:keyWidth="20%p"
    219             android:isModifier="true"
    220             android:keyEdgeFlags="left" />
    221         <Key
    222             android:codes="@integer/key_f1"
    223             android:isModifier="true" />
    224         <Key
    225             android:codes="@integer/key_space"
    226             android:keyIcon="@drawable/sym_keyboard_space"
    227             android:iconPreview="@drawable/sym_keyboard_feedback_space"
    228             android:keyWidth="40%p"
    229             android:isModifier="true" />
    230         <Key
    231             android:keyLabel="."
    232             android:keyIcon="@drawable/hint_popup"
    233             android:popupKeyboard="@xml/popup_punctuation"
    234             android:isModifier="true" />
    235         <Key
    236             android:codes="@integer/key_return"
    237             android:keyIcon="@drawable/sym_keyboard_return"
    238             android:iconPreview="@drawable/sym_keyboard_feedback_return"
    239             android:keyWidth="20%p"
    240             android:isModifier="true"
    241             android:keyEdgeFlags="right" />
    242     </Row>
    243     <Row
    244         android:keyboardMode="@+id/mode_im"
    245         android:rowEdgeFlags="bottom"
    246     >
    247         <Key
    248             android:codes="@integer/key_symbol"
    249             android:keyLabel="@string/label_symbol_key"
    250             android:keyWidth="20%p"
    251             android:isModifier="true"
    252             android:keyEdgeFlags="left" />
    253         <Key
    254             android:codes="@integer/key_f1"
    255             android:isModifier="true" />
    256         <Key
    257             android:codes="@integer/key_space"
    258             android:keyIcon="@drawable/sym_keyboard_space"
    259             android:iconPreview="@drawable/sym_keyboard_feedback_space"
    260             android:keyWidth="40%p"
    261             android:isModifier="true" />
    262         <Key
    263             android:keyLabel="."
    264             android:keyIcon="@drawable/hint_popup"
    265             android:popupKeyboard="@xml/popup_punctuation"
    266             android:isModifier="true" />
    267         <Key
    268             android:keyLabel=":-)"
    269             android:keyOutputText=":-) "
    270             android:keyIcon="@drawable/hint_popup"
    271             android:popupKeyboard="@xml/popup_smileys"
    272             android:keyWidth="20%p"
    273             android:isModifier="true"
    274             android:keyEdgeFlags="right" />
    275     </Row>
    276     <Row
    277         android:keyboardMode="@+id/mode_webentry"
    278         android:rowEdgeFlags="bottom"
    279     >
    280         <Key
    281             android:codes="@integer/key_symbol"
    282             android:keyLabel="@string/label_symbol_key"
    283             android:keyWidth="20%p"
    284             android:isModifier="true"
    285             android:keyEdgeFlags="left" />
    286         <Key
    287             android:codes="@integer/key_f1"
    288             android:isModifier="true" />
    289         <Key
    290             android:codes="@integer/key_space"
    291             android:keyIcon="@drawable/sym_keyboard_space"
    292             android:iconPreview="@drawable/sym_keyboard_feedback_space"
    293             android:keyWidth="20%p"
    294             android:isModifier="true" />
    295         <Key
    296             android:codes="@integer/key_tab"
    297             android:keyIcon="@drawable/sym_keyboard_tab"
    298             android:iconPreview="@drawable/sym_keyboard_feedback_tab"
    299             android:keyWidth="20%p"
    300             android:isModifier="true" />
    301         <Key
    302             android:keyLabel="."
    303             android:keyIcon="@drawable/hint_popup"
    304             android:popupKeyboard="@xml/popup_punctuation"
    305             android:isModifier="true" />
    306         <Key
    307             android:codes="@integer/key_return"
    308             android:keyIcon="@drawable/sym_keyboard_return"
    309             android:iconPreview="@drawable/sym_keyboard_feedback_return"
    310             android:keyWidth="20%p"
    311             android:isModifier="true"
    312             android:keyEdgeFlags="right" />
    313     </Row>
    314     <Row
    315         android:keyboardMode="@+id/mode_normal_with_settings_key"
    316         android:rowEdgeFlags="bottom"
    317     >
    318         <Key
    319             android:codes="@integer/key_symbol"
    320             android:keyLabel="@string/label_symbol_key"
    321             android:keyWidth="15%p"
    322             android:isModifier="true"
    323             android:keyEdgeFlags="left" />
    324         <Key
    325             android:codes="@integer/key_settings"
    326             android:keyIcon="@drawable/sym_keyboard_settings"
    327             android:iconPreview="@drawable/sym_keyboard_feedback_settings"
    328             android:isModifier="true" />
    329         <Key
    330             android:codes="@integer/key_f1"
    331             android:isModifier="true" />
    332         <Key
    333             android:codes="@integer/key_space"
    334             android:keyIcon="@drawable/sym_keyboard_space"
    335             android:iconPreview="@drawable/sym_keyboard_feedback_space"
    336             android:keyWidth="30%p"
    337             android:isModifier="true" />
    338         <Key
    339             android:keyLabel="."
    340             android:keyIcon="@drawable/hint_popup"
    341             android:popupKeyboard="@xml/popup_punctuation"
    342             android:isModifier="true" />
    343         <Key
    344             android:codes="@integer/key_return"
    345             android:keyIcon="@drawable/sym_keyboard_return"
    346             android:iconPreview="@drawable/sym_keyboard_feedback_return"
    347             android:keyWidth="25%p"
    348             android:isModifier="true"
    349             android:keyEdgeFlags="right" />
    350     </Row>
    351     <Row
    352         android:keyboardMode="@+id/mode_url_with_settings_key"
    353         android:rowEdgeFlags="bottom"
    354     >
    355         <Key
    356             android:codes="@integer/key_symbol"
    357             android:keyLabel="@string/label_symbol_key"
    358             android:keyWidth="15%p"
    359             android:isModifier="true"
    360             android:keyEdgeFlags="left" />
    361         <Key
    362             android:codes="@integer/key_settings"
    363             android:keyIcon="@drawable/sym_keyboard_settings"
    364             android:iconPreview="@drawable/sym_keyboard_feedback_settings"
    365             android:isModifier="true" />
    366         <Key
    367             android:codes="@integer/key_f1"
    368             android:isModifier="true" />
    369         <Key
    370             android:codes="@integer/key_space"
    371             android:keyIcon="@drawable/sym_keyboard_space"
    372             android:iconPreview="@drawable/sym_keyboard_feedback_space"
    373             android:keyWidth="30%p"
    374             android:isModifier="true" />
    375         <Key
    376             android:keyLabel="."
    377             android:keyIcon="@drawable/hint_popup"
    378             android:popupKeyboard="@xml/popup_punctuation"
    379             android:isModifier="true" />
    380         <Key
    381             android:codes="@integer/key_return"
    382             android:keyIcon="@drawable/sym_keyboard_return"
    383             android:iconPreview="@drawable/sym_keyboard_feedback_return"
    384             android:keyWidth="25%p"
    385             android:isModifier="true"
    386             android:keyEdgeFlags="right" />
    387     </Row>
    388     <Row
    389         android:keyboardMode="@+id/mode_email_with_settings_key"
    390         android:rowEdgeFlags="bottom"
    391     >
    392         <Key
    393             android:codes="@integer/key_symbol"
    394             android:keyLabel="@string/label_symbol_key"
    395             android:keyWidth="15%p"
    396             android:isModifier="true"
    397             android:keyEdgeFlags="left" />
    398         <Key
    399             android:codes="@integer/key_settings"
    400             android:keyIcon="@drawable/sym_keyboard_settings"
    401             android:iconPreview="@drawable/sym_keyboard_feedback_settings"
    402             android:isModifier="true" />
    403         <Key
    404             android:codes="@integer/key_f1"
    405             android:isModifier="true" />
    406         <Key
    407             android:codes="@integer/key_space"
    408             android:keyIcon="@drawable/sym_keyboard_space"
    409             android:iconPreview="@drawable/sym_keyboard_feedback_space"
    410             android:keyWidth="30%p"
    411             android:isModifier="true" />
    412         <Key
    413             android:keyLabel="."
    414             android:keyIcon="@drawable/hint_popup"
    415             android:popupKeyboard="@xml/popup_punctuation"
    416             android:isModifier="true" />
    417         <Key
    418             android:codes="@integer/key_return"
    419             android:keyIcon="@drawable/sym_keyboard_return"
    420             android:iconPreview="@drawable/sym_keyboard_feedback_return"
    421             android:keyWidth="25%p"
    422             android:isModifier="true"
    423             android:keyEdgeFlags="right" />
    424     </Row>
    425     <Row
    426         android:keyboardMode="@+id/mode_im_with_settings_key"
    427         android:rowEdgeFlags="bottom"
    428     >
    429         <Key
    430             android:codes="@integer/key_symbol"
    431             android:keyLabel="@string/label_symbol_key"
    432             android:keyWidth="15%p"
    433             android:isModifier="true"
    434             android:keyEdgeFlags="left" />
    435         <Key
    436             android:codes="@integer/key_settings"
    437             android:keyIcon="@drawable/sym_keyboard_settings"
    438             android:iconPreview="@drawable/sym_keyboard_feedback_settings"
    439             android:isModifier="true" />
    440         <Key
    441             android:codes="@integer/key_f1"
    442             android:isModifier="true" />
    443         <Key
    444             android:codes="@integer/key_space"
    445             android:keyIcon="@drawable/sym_keyboard_space"
    446             android:iconPreview="@drawable/sym_keyboard_feedback_space"
    447             android:keyWidth="30%p"
    448             android:isModifier="true" />
    449         <Key
    450             android:keyLabel="."
    451             android:keyIcon="@drawable/hint_popup"
    452             android:popupKeyboard="@xml/popup_punctuation"
    453             android:isModifier="true" />
    454         <Key
    455             android:keyLabel=":-)"
    456             android:keyOutputText=":-) "
    457             android:keyIcon="@drawable/hint_popup"
    458             android:popupKeyboard="@xml/popup_smileys"
    459             android:keyWidth="25%p"
    460             android:isModifier="true"
    461             android:keyEdgeFlags="right" />
    462     </Row>
    463     <Row
    464         android:keyboardMode="@+id/mode_webentry_with_settings_key"
    465         android:rowEdgeFlags="bottom"
    466     >
    467         <Key
    468             android:codes="@integer/key_symbol"
    469             android:keyLabel="@string/label_symbol_key"
    470             android:keyWidth="15%p"
    471             android:isModifier="true"
    472             android:keyEdgeFlags="left" />
    473         <Key
    474             android:codes="@integer/key_settings"
    475             android:keyIcon="@drawable/sym_keyboard_settings"
    476             android:iconPreview="@drawable/sym_keyboard_feedback_settings"
    477             android:isModifier="true" />
    478         <Key
    479             android:codes="@integer/key_f1"
    480             android:isModifier="true" />
    481         <Key
    482             android:codes="@integer/key_space"
    483             android:keyIcon="@drawable/sym_keyboard_space"
    484             android:iconPreview="@drawable/sym_keyboard_feedback_space"
    485             android:keyWidth="30%p"
    486             android:isModifier="true" />
    487         <Key
    488             android:codes="@integer/key_tab"
    489             android:keyIcon="@drawable/sym_keyboard_tab"
    490             android:iconPreview="@drawable/sym_keyboard_feedback_tab"
    491             android:isModifier="true" />
    492         <Key
    493             android:keyLabel="."
    494             android:keyIcon="@drawable/hint_popup"
    495             android:popupKeyboard="@xml/popup_punctuation"
    496             android:isModifier="true" />
    497         <Key
    498             android:codes="@integer/key_return"
    499             android:keyIcon="@drawable/sym_keyboard_return"
    500             android:iconPreview="@drawable/sym_keyboard_feedback_return"
    501             android:keyWidth="15%p"
    502             android:isModifier="true"
    503             android:keyEdgeFlags="right" />
    504     </Row>
    505 </Keyboard>
    506