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