blob: faab38ade69e2a2058a466de9cb5fd42d3baa519 [file] [log] [blame]
Tadashi G. Takaoka2c60d6e2010-11-23 17:55:22 -08001<?xml version="1.0" encoding="utf-8"?>
2<!--
3/*
4**
5** Copyright 2010, 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"
Tadashi G. Takaokaff483e82011-05-12 14:49:18 +090024 latin:maxKeyboardHeight="@fraction/maxKeyboardHeight"
25 latin:minKeyboardHeight="@fraction/minKeyboardHeight"
Tadashi G. Takaoka9f01ed52010-12-08 14:36:41 +090026 latin:rowHeight="25%p"
Tadashi G. Takaokaabd73922011-06-02 21:11:45 +090027 latin:keyWidth="13.250%p"
Tadashi G. Takaoka2c60d6e2010-11-23 17:55:22 -080028 latin:horizontalGap="@dimen/key_horizontal_gap"
29 latin:verticalGap="@dimen/key_bottom_gap"
Tadashi G. Takaoka9b6d1d52010-12-14 15:31:47 +090030 latin:popupKeyboardTemplate="@xml/kbd_popup_template"
31 latin:maxPopupKeyboardColumn="@integer/config_max_popup_keyboard_column"
Tadashi G. Takaoka2c60d6e2010-11-23 17:55:22 -080032>
Tadashi G. Takaoka7f0befe2010-11-23 23:59:56 -080033 <include
34 latin:keyboardLayout="@xml/kbd_key_styles" />
Tadashi G. Takaoka6a75cd12011-03-08 17:48:18 -080035 <include
36 latin:keyboardLayout="@xml/kbd_numkey_styles" />
Tadashi G. Takaoka4b13b4f2011-02-20 12:54:14 +090037 <switch>
38 <case
39 latin:passwordInput="true"
40 >
41 <!-- This row is intentionally not marked as a top row -->
42 <Row>
Tadashi G. Takaoka0f901aa2011-01-13 13:43:39 +090043 <Key
Tadashi G. Takaoka327763e2011-05-30 20:05:50 +090044 latin:keyStyle="tabKeyStyle"
45 latin:keyLabelOption="alignLeft"
Tadashi G. Takaokaabd73922011-06-02 21:11:45 +090046 latin:keyWidth="11.172%p"
Tadashi G. Takaoka327763e2011-05-30 20:05:50 +090047 latin:keyEdgeFlags="left" />
48 <Key
49 latin:keyStyle="num1KeyStyle"
50 latin:keyXPos="32.076%p" />
Tadashi G. Takaoka4b13b4f2011-02-20 12:54:14 +090051 <Key
Tadashi G. Takaoka6a75cd12011-03-08 17:48:18 -080052 latin:keyStyle="num2KeyStyle" />
Tadashi G. Takaoka4b13b4f2011-02-20 12:54:14 +090053 <Key
Tadashi G. Takaoka6a75cd12011-03-08 17:48:18 -080054 latin:keyStyle="num3KeyStyle" />
Tadashi G. Takaoka4b13b4f2011-02-20 12:54:14 +090055 <Key
56 latin:keyStyle="deleteKeyStyle"
Tadashi G. Takaokaabd73922011-06-02 21:11:45 +090057 latin:keyXPos="-11.172%p"
Tadashi G. Takaoka327763e2011-05-30 20:05:50 +090058 latin:keyWidth="fillRight"
Tadashi G. Takaoka4b13b4f2011-02-20 12:54:14 +090059 latin:keyEdgeFlags="right" />
60 </Row>
61 <Row>
Tadashi G. Takaoka4b13b4f2011-02-20 12:54:14 +090062 <Key
Tadashi G. Takaoka327763e2011-05-30 20:05:50 +090063 latin:keyStyle="num4KeyStyle"
64 latin:keyXPos="32.076%p" />
Tadashi G. Takaoka4b13b4f2011-02-20 12:54:14 +090065 <Key
Tadashi G. Takaoka6a75cd12011-03-08 17:48:18 -080066 latin:keyStyle="num5KeyStyle" />
Tadashi G. Takaoka4b13b4f2011-02-20 12:54:14 +090067 <Key
Tadashi G. Takaoka6a75cd12011-03-08 17:48:18 -080068 latin:keyStyle="num6KeyStyle" />
Tadashi G. Takaoka4b13b4f2011-02-20 12:54:14 +090069 <Key
70 latin:keyStyle="returnKeyStyle"
Tadashi G. Takaokaabd73922011-06-02 21:11:45 +090071 latin:keyXPos="-11.172%p"
Tadashi G. Takaoka327763e2011-05-30 20:05:50 +090072 latin:keyWidth="fillRight"
Tadashi G. Takaoka4b13b4f2011-02-20 12:54:14 +090073 latin:keyEdgeFlags="right" />
74 </Row>
75 <Row>
Tadashi G. Takaoka4b13b4f2011-02-20 12:54:14 +090076 <Key
Tadashi G. Takaoka327763e2011-05-30 20:05:50 +090077 latin:keyStyle="num7KeyStyle"
78 latin:keyXPos="32.076%p" />
Tadashi G. Takaoka4b13b4f2011-02-20 12:54:14 +090079 <Key
Tadashi G. Takaoka6a75cd12011-03-08 17:48:18 -080080 latin:keyStyle="num8KeyStyle" />
Tadashi G. Takaoka4b13b4f2011-02-20 12:54:14 +090081 <Key
Tadashi G. Takaoka6a75cd12011-03-08 17:48:18 -080082 latin:keyStyle="num9KeyStyle" />
Tadashi G. Takaoka4b13b4f2011-02-20 12:54:14 +090083 <!-- There is an empty area below the "Enter" key and right of the "9" key. To
84 ignore the touch event on the area, "9" is intentionally not marked as a right
85 edge key. -->
86 </Row>
87 <!-- This row is intentionally not marked as a bottom row -->
88 <Row>
89 <Spacer
Tadashi G. Takaoka327763e2011-05-30 20:05:50 +090090 latin:keyXPos="32.076%p" />
Tadashi G. Takaoka4b13b4f2011-02-20 12:54:14 +090091 <Key
Tadashi G. Takaoka6a75cd12011-03-08 17:48:18 -080092 latin:keyStyle="num0KeyStyle" />
Tadashi G. Takaoka4b13b4f2011-02-20 12:54:14 +090093 <!-- There is an empty area below the "Enter" key and right of the "#" key. To
94 ignore the touch event on the area, "#" is intentionally not marked as a right
95 edge key. -->
96 </Row>
97 </case>
98 <!-- latin:passwordInput="false" -->
99 <default>
100 <!-- This row is intentionally not marked as a top row -->
101 <Row>
102 <Key
103 latin:keyStyle="tabKeyStyle"
104 latin:keyLabelOption="alignLeft"
Tadashi G. Takaokaabd73922011-06-02 21:11:45 +0900105 latin:keyWidth="11.172%p"
Tadashi G. Takaoka4b13b4f2011-02-20 12:54:14 +0900106 latin:keyEdgeFlags="left" />
Tadashi G. Takaoka4b13b4f2011-02-20 12:54:14 +0900107 <Key
108 latin:keyLabel="-"
Tadashi G. Takaoka327763e2011-05-30 20:05:50 +0900109 latin:keyXPos="13.829%p"
110 latin:keyWidth="8.047%p" />
Tadashi G. Takaoka4b13b4f2011-02-20 12:54:14 +0900111 <Key
112 latin:keyLabel="+"
Tadashi G. Takaoka327763e2011-05-30 20:05:50 +0900113 latin:keyWidth="8.047%p" />
Tadashi G. Takaoka4b13b4f2011-02-20 12:54:14 +0900114 <Key
115 latin:keyLabel="."
Tadashi G. Takaoka327763e2011-05-30 20:05:50 +0900116 latin:keyWidth="8.047%p" />
Tadashi G. Takaoka4b13b4f2011-02-20 12:54:14 +0900117 <Key
Tadashi G. Takaoka327763e2011-05-30 20:05:50 +0900118 latin:keyLabel="1"
Tadashi G. Takaokaabd73922011-06-02 21:11:45 +0900119 latin:keyXPos="43.125%p" />
Tadashi G. Takaoka4b13b4f2011-02-20 12:54:14 +0900120 <Key
121 latin:keyLabel="2" />
122 <Key
123 latin:keyLabel="3" />
Tadashi G. Takaoka4b13b4f2011-02-20 12:54:14 +0900124 <Key
125 latin:keyStyle="deleteKeyStyle"
Tadashi G. Takaokaabd73922011-06-02 21:11:45 +0900126 latin:keyXPos="-11.172%p"
Tadashi G. Takaoka327763e2011-05-30 20:05:50 +0900127 latin:keyWidth="fillRight"
Tadashi G. Takaoka4b13b4f2011-02-20 12:54:14 +0900128 latin:keyEdgeFlags="right" />
129 </Row>
130 <Row>
Tadashi G. Takaoka4b13b4f2011-02-20 12:54:14 +0900131 <Key
132 latin:keyLabel="*"
Tadashi G. Takaoka327763e2011-05-30 20:05:50 +0900133 latin:keyXPos="13.829%p"
134 latin:keyWidth="8.047%p" />
Tadashi G. Takaoka4b13b4f2011-02-20 12:54:14 +0900135 <Key
136 latin:keyLabel="/"
Tadashi G. Takaoka327763e2011-05-30 20:05:50 +0900137 latin:keyWidth="8.047%p" />
Tadashi G. Takaoka4b13b4f2011-02-20 12:54:14 +0900138 <Key
139 latin:keyLabel=","
Tadashi G. Takaoka327763e2011-05-30 20:05:50 +0900140 latin:keyWidth="8.047%p" />
Tadashi G. Takaoka4b13b4f2011-02-20 12:54:14 +0900141 <Key
Tadashi G. Takaoka327763e2011-05-30 20:05:50 +0900142 latin:keyLabel="4"
Tadashi G. Takaokaabd73922011-06-02 21:11:45 +0900143 latin:keyXPos="43.125%p" />
Tadashi G. Takaoka4b13b4f2011-02-20 12:54:14 +0900144 <Key
145 latin:keyLabel="5" />
146 <Key
147 latin:keyLabel="6" />
Tadashi G. Takaoka4b13b4f2011-02-20 12:54:14 +0900148 <Key
149 latin:keyStyle="returnKeyStyle"
Tadashi G. Takaokaabd73922011-06-02 21:11:45 +0900150 latin:keyXPos="-11.172%p"
Tadashi G. Takaoka327763e2011-05-30 20:05:50 +0900151 latin:keyWidth="fillRight"
Tadashi G. Takaoka4b13b4f2011-02-20 12:54:14 +0900152 latin:keyEdgeFlags="right" />
153 </Row>
154 <Row>
155 <!-- There is an empty area below the "More" key and left of the "(" key. To
156 ignore the touch event on the area, "(" is intentionally not marked as a left
157 edge key. -->
Tadashi G. Takaoka4b13b4f2011-02-20 12:54:14 +0900158 <Key
159 latin:keyLabel="("
Tadashi G. Takaoka327763e2011-05-30 20:05:50 +0900160 latin:keyXPos="13.829%p"
161 latin:keyWidth="8.047%p" />
Tadashi G. Takaoka4b13b4f2011-02-20 12:54:14 +0900162 <Key
163 latin:keyLabel=")"
Tadashi G. Takaoka327763e2011-05-30 20:05:50 +0900164 latin:keyWidth="8.047%p" />
Tadashi G. Takaoka4b13b4f2011-02-20 12:54:14 +0900165 <Key
166 latin:keyLabel="="
Tadashi G. Takaoka327763e2011-05-30 20:05:50 +0900167 latin:keyWidth="8.047%p" />
Tadashi G. Takaoka4b13b4f2011-02-20 12:54:14 +0900168 <Key
Tadashi G. Takaoka327763e2011-05-30 20:05:50 +0900169 latin:keyLabel="7"
Tadashi G. Takaokaabd73922011-06-02 21:11:45 +0900170 latin:keyXPos="43.125%p" />
Tadashi G. Takaoka4b13b4f2011-02-20 12:54:14 +0900171 <Key
172 latin:keyLabel="8" />
173 <Key
174 latin:keyLabel="9" />
175 <!-- There is an empty area below the "Enter" key and right of the "9" key. To
176 ignore the touch event on the area, "9" is intentionally not marked as a right
177 edge key. -->
178 </Row>
179 <!-- This row is intentionally not marked as a bottom row -->
180 <Row>
Tadashi G. Takaoka4199e292011-02-23 20:31:08 +0900181 <switch>
182 <case latin:hasSettingsKey="true">
183 <Key
184 latin:keyStyle="settingsKeyStyle"
Tadashi G. Takaoka327763e2011-05-30 20:05:50 +0900185 latin:keyWidth="8.047%p" />
Tadashi G. Takaoka4199e292011-02-23 20:31:08 +0900186 </case>
Tadashi G. Takaoka4199e292011-02-23 20:31:08 +0900187 </switch>
Tadashi G. Takaoka4b13b4f2011-02-20 12:54:14 +0900188 <Key
189 latin:keyStyle="nonSpecialBackgroundSpaceKeyStyle"
Tadashi G. Takaoka327763e2011-05-30 20:05:50 +0900190 latin:keyXPos="13.829%p"
191 latin:keyWidth="24.140%p" />
Tadashi G. Takaoka4b13b4f2011-02-20 12:54:14 +0900192 <Key
Tadashi G. Takaoka327763e2011-05-30 20:05:50 +0900193 latin:keyLabel="*"
Tadashi G. Takaokaabd73922011-06-02 21:11:45 +0900194 latin:keyXPos="43.125%p" />
Tadashi G. Takaoka4b13b4f2011-02-20 12:54:14 +0900195 <Key
196 latin:keyLabel="0" />
197 <Key
198 latin:keyLabel="#" />
199 <switch>
200 <case
201 latin:voiceKeyEnabled="true"
202 >
203 <Key
204 latin:keyStyle="micKeyStyle"
Tadashi G. Takaoka327763e2011-05-30 20:05:50 +0900205 latin:keyXPos="-8.047%p"
206 latin:keyWidth="fillRight" />
Tadashi G. Takaoka4b13b4f2011-02-20 12:54:14 +0900207 </case>
208 </switch>
Tadashi G. Takaoka4b13b4f2011-02-20 12:54:14 +0900209 </Row>
210 </default>
211 </switch>
Tadashi G. Takaoka2c60d6e2010-11-23 17:55:22 -0800212</Keyboard>