blob: 7bd679bce529957d6b156c1fbcac71606cf05162 [file] [log] [blame]
Tadashi G. Takaoka2c60d6e2010-11-23 17:55:22 -08001<?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:latin="http://schemas.android.com/apk/res/com.android.inputmethod.latin"
Tadashi G. Takaoka9f01ed52010-12-08 14:36:41 +090023 latin:keyboardHeight="@dimen/keyboardHeight"
24 latin:maxKeyboardHeight="50%p"
25 latin:rowHeight="25%p"
Tadashi G. Takaoka2c60d6e2010-11-23 17:55:22 -080026 latin:keyWidth="26.67%p"
27 latin:horizontalGap="@dimen/key_horizontal_gap"
28 latin:verticalGap="@dimen/key_bottom_gap"
Tadashi G. Takaoka9b6d1d52010-12-14 15:31:47 +090029 latin:popupKeyboardTemplate="@xml/kbd_popup_template"
30 latin:maxPopupKeyboardColumn="@integer/config_max_popup_keyboard_column"
Tadashi G. Takaoka2c60d6e2010-11-23 17:55:22 -080031>
32 <include
33 latin:keyboardLayout="@xml/kbd_key_styles" />
Tadashi G. Takaoka6a75cd12011-03-08 17:48:18 -080034 <!-- TODO: Should add number password layout just like the xlarge layout does. -->
Tadashi G. Takaoka9b6d1d52010-12-14 15:31:47 +090035 <switch>
Tadashi G. Takaoka2c60d6e2010-11-23 17:55:22 -080036 <case
37 latin:colorScheme="white"
38 >
39 <key-style
40 latin:styleName="numSpaceKeyStyle"
Tadashi G. Takaokac4f71662010-12-20 20:30:26 +090041 latin:code="@integer/key_space"
Tadashi G. Takaoka2c60d6e2010-11-23 17:55:22 -080042 latin:keyIcon="@drawable/sym_keyboard_space"
43 latin:iconPreview="@drawable/sym_keyboard_feedback_space" />
44 </case>
45 <case
46 latin:colorScheme="black"
47 >
48 <key-style
49 latin:styleName="numSpaceKeyStyle"
Tadashi G. Takaokac4f71662010-12-20 20:30:26 +090050 latin:code="@integer/key_space"
Tadashi G. Takaoka2c60d6e2010-11-23 17:55:22 -080051 latin:keyIcon="@drawable/sym_bkeyboard_space"
52 latin:iconPreview="@drawable/sym_keyboard_feedback_space" />
53 </case>
54 </switch>
55 <Row
56 latin:rowEdgeFlags="top"
57 >
58 <Key
59 latin:keyLabel="1"
60 latin:keyEdgeFlags="left" />
61 <Key
62 latin:keyLabel="2" />
63 <Key
64 latin:keyLabel="3" />
65 <Key
66 latin:keyLabel="-"
67 latin:keyStyle="functionalKeyStyle"
68 latin:keyWidth="20%p"
69 latin:keyEdgeFlags="right" />
70 </Row>
71 <Row>
72 <Key
73 latin:keyLabel="4"
74 latin:keyEdgeFlags="left" />
75 <Key
76 latin:keyLabel="5" />
77 <Key
78 latin:keyLabel="6" />
79 <Key
80 latin:keyLabel=","
81 latin:keyStyle="functionalKeyStyle"
82 latin:keyWidth="20%p"
83 latin:keyEdgeFlags="right" />
84 </Row>
85 <Row>
86 <Key
87 latin:keyLabel="7"
88 latin:keyEdgeFlags="left" />
89 <Key
90 latin:keyLabel="8" />
91 <Key
92 latin:keyLabel="9" />
93 <Key
94 latin:keyStyle="deleteKeyStyle"
95 latin:keyWidth="20%p"
96 latin:keyEdgeFlags="right" />
97 </Row>
98 <Row
99 latin:rowEdgeFlags="bottom"
100 >
101 <Key
102 latin:keyStyle="numSpaceKeyStyle"
103 latin:keyEdgeFlags="left" />
104 <Key
105 latin:keyLabel="0" />
106 <Key
107 latin:keyLabel="." />
108 <Key
109 latin:keyStyle="returnKeyStyle"
110 latin:keyWidth="20%p"
111 latin:keyEdgeFlags="right" />
112 </Row>
113</Keyboard>