Home | History | Annotate | Download | only in xml
      1 <?xml version="1.0" encoding="utf-8"?>
      2 <!-- Copyright (C) 2016 The Android Open Source Project
      3 
      4      Licensed under the Apache License, Version 2.0 (the "License");
      5      you may not use this file except in compliance with the License.
      6      You may obtain a copy of the License at
      7 
      8           http://www.apache.org/licenses/LICENSE-2.0
      9 
     10      Unless required by applicable law or agreed to in writing, software
     11      distributed under the License is distributed on an "AS IS" BASIS,
     12      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     13      See the License for the specific language governing permissions and
     14      limitations under the License.
     15 -->
     16 <Keyboard xmlns:android="http://schemas.android.com/apk/res/android"
     17     android:keyWidth="@dimen/keyboard_key_size"
     18     android:keyHeight="@dimen/keyboard_key_size">
     19 
     20     <Row android:rowEdgeFlags="top">
     21         <Key
     22             android:keyLabel="1"
     23             android:keyEdgeFlags="left" />
     24         <Key
     25             android:keyLabel="2"
     26             android:horizontalGap="@dimen/keyboard_key_horizontal_tiny_gap" />
     27         <Key
     28             android:keyLabel="3"
     29             android:horizontalGap="@dimen/keyboard_key_horizontal_tiny_gap"/>
     30         <Key
     31             android:keyLabel="4"
     32             android:horizontalGap="@dimen/keyboard_key_horizontal_tiny_gap" />
     33         <Key
     34             android:keyLabel="5"
     35             android:horizontalGap="@dimen/keyboard_key_horizontal_tiny_gap" />
     36         <Key
     37             android:keyLabel="6"
     38             android:horizontalGap="@dimen/keyboard_key_horizontal_tiny_gap"/>
     39         <Key
     40             android:keyLabel="7"
     41             android:horizontalGap="@dimen/keyboard_key_horizontal_tiny_gap"/>
     42         <Key
     43             android:keyLabel="8"
     44             android:horizontalGap="@dimen/keyboard_key_horizontal_tiny_gap"/>
     45         <Key
     46             android:keyLabel="9"
     47             android:horizontalGap="@dimen/keyboard_key_horizontal_tiny_gap"/>
     48         <Key
     49             android:keyLabel="0"
     50             android:horizontalGap="@dimen/keyboard_key_horizontal_tiny_gap"/>
     51 
     52         <Key
     53             android:codes="@integer/keycode_delete"
     54             android:keyIcon="@drawable/ic_backspace_tint"
     55             android:horizontalGap="@dimen/keyboard_key_horizontal_tiny_gap"
     56             android:keyEdgeFlags="right"
     57             android:isRepeatable="true" />
     58     </Row>
     59 
     60     <Row>
     61         <Key
     62             android:keyLabel="\#"
     63             android:horizontalGap="@dimen/keyboard_half_key_size"
     64             android:keyEdgeFlags="left" />
     65         <Key
     66             android:keyLabel="$"
     67             android:horizontalGap="@dimen/keyboard_key_horizontal_tiny_gap" />
     68         <Key
     69             android:keyLabel="%"
     70             android:horizontalGap="@dimen/keyboard_key_horizontal_tiny_gap" />
     71         <Key
     72             android:keyLabel="^"
     73             android:horizontalGap="@dimen/keyboard_key_horizontal_tiny_gap" />
     74         <Key
     75             android:keyLabel="&amp;"
     76             android:horizontalGap="@dimen/keyboard_key_horizontal_tiny_gap" />
     77         <Key
     78             android:keyLabel="*"
     79             android:horizontalGap="@dimen/keyboard_key_horizontal_tiny_gap" />
     80         <Key
     81             android:keyLabel="("
     82             android:horizontalGap="@dimen/keyboard_key_horizontal_tiny_gap" />
     83         <Key
     84             android:keyLabel=")"
     85             android:horizontalGap="@dimen/keyboard_key_horizontal_tiny_gap" />
     86         <Key
     87             android:keyLabel="+"
     88             android:horizontalGap="@dimen/keyboard_key_horizontal_tiny_gap" />
     89         <Key
     90             android:codes="@integer/keycode_return"
     91             android:keyIcon="@drawable/ic_keyboard_return"
     92             android:keyEdgeFlags="right" />
     93     </Row>
     94 
     95     <Row>
     96         <Key
     97             android:keyLabel="&quot;"
     98             android:keyEdgeFlags="left" />
     99         <Key
    100             android:keyLabel="\'"
    101             android:horizontalGap="@dimen/keyboard_key_horizontal_tiny_gap" />
    102         <Key
    103             android:keyLabel=":"
    104             android:horizontalGap="@dimen/keyboard_key_horizontal_tiny_gap" />
    105         <Key
    106             android:keyLabel=";"
    107             android:horizontalGap="@dimen/keyboard_key_horizontal_tiny_gap" />
    108         <Key
    109             android:keyLabel="/"
    110             android:horizontalGap="@dimen/keyboard_key_horizontal_tiny_gap" />
    111         <Key
    112             android:keyLabel="\\"
    113             android:horizontalGap="@dimen/keyboard_key_horizontal_tiny_gap" />
    114         <Key
    115             android:keyLabel="{"
    116             android:horizontalGap="@dimen/keyboard_key_horizontal_tiny_gap" />
    117         <Key
    118             android:keyLabel="}"
    119             android:horizontalGap="@dimen/keyboard_key_horizontal_tiny_gap" />
    120         <Key
    121             android:keyLabel="|"
    122             android:horizontalGap="@dimen/keyboard_key_horizontal_tiny_gap" />
    123         <Key
    124             android:keyLabel="&lt;"
    125             android:horizontalGap="@dimen/keyboard_key_horizontal_tiny_gap" />
    126         <Key
    127             android:keyLabel="&gt;"
    128             android:horizontalGap="@dimen/keyboard_key_horizontal_tiny_gap"
    129             android:keyEdgeFlags="right" />
    130     </Row>
    131 
    132     <Row
    133         android:rowEdgeFlags="bottom">
    134         <Key
    135             android:codes="@integer/keycode_close_keyboard"
    136             android:keyIcon="@drawable/ic_close_keyboard"
    137             android:keyEdgeFlags="left" />
    138         <Key
    139             android:keyLabel="~"
    140             android:horizontalGap="@dimen/keyboard_key_horizontal_tiny_gap" />
    141         <Key
    142             android:keyLabel="`"
    143             android:horizontalGap="@dimen/keyboard_key_horizontal_tiny_gap" />
    144         <Key
    145             android:codes="@integer/keycode_space"
    146             android:keyIcon="@drawable/ic_keyboard_spacebar"
    147             android:horizontalGap="@dimen/keyboard_half_key_size"
    148             android:keyWidth="@dimen/keyboard_key_spacebar_width" />
    149         <Key
    150             android:keyLabel="["
    151             android:horizontalGap="@dimen/keyboard_half_key_size" />
    152         <Key
    153             android:keyLabel="]"
    154             android:horizontalGap="@dimen/keyboard_key_horizontal_tiny_gap" />
    155         <Key
    156             android:codes="@integer/keycode_mode_change"
    157             android:keyIcon="@drawable/ic_abc"
    158             android:horizontalGap="@dimen/keyboard_key_horizontal_tiny_gap"
    159             android:keyEdgeFlags="right"/>
    160     </Row>
    161 
    162 </Keyboard>