blob: 60edcf2bdf82d00dd18f78c7ad6694106b49a5ad [file] [log] [blame]
Tadashi G. Takaoka4d3a4dc2010-10-09 01:06:26 +09001<?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. Takaoka7c25ad42010-11-20 16:17:04 -080027 latin:keyWidth="11.949%p"
Tadashi G. Takaoka58bfa352010-10-19 17:08:54 +090028 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. Takaoka4d3a4dc2010-10-09 01:06:26 +090032>
Tadashi G. Takaoka7f0befe2010-11-23 23:59:56 -080033 <include
34 latin:keyboardLayout="@xml/kbd_key_styles" />
35 <include
36 latin:keyboardLayout="@xml/kbd_numkey_styles" />
Tadashi G. Takaoka4d3a4dc2010-10-09 01:06:26 +090037 <!-- This row is intentionally not marked as a top row -->
38 <Row>
39 <Key
Tadashi G. Takaoka7f0befe2010-11-23 23:59:56 -080040 latin:keyStyle="tabKeyStyle"
41 latin:keyLabelOption="alignLeft"
Tadashi G. Takaoka4d3a4dc2010-10-09 01:06:26 +090042 latin:keyEdgeFlags="left" />
43 <!-- To match one character label size with "Tab", I placed spaces around the char '-'
44 and '+'. -->
Tadashi G. Takaoka58bfa352010-10-19 17:08:54 +090045 <Spacer
Tadashi G. Takaoka7c25ad42010-11-20 16:17:04 -080046 latin:horizontalGap="8.470%p" />
Tadashi G. Takaoka4d3a4dc2010-10-09 01:06:26 +090047 <Key
Tadashi G. Takaokac4f71662010-12-20 20:30:26 +090048 latin:code="45"
Tadashi G. Takaoka7c25ad42010-11-20 16:17:04 -080049 latin:keyLabel=" - "
50 latin:keyWidth="8.042%p" />
Tadashi G. Takaoka4d3a4dc2010-10-09 01:06:26 +090051 <Key
Tadashi G. Takaokac4f71662010-12-20 20:30:26 +090052 latin:code="43"
Tadashi G. Takaoka7c25ad42010-11-20 16:17:04 -080053 latin:keyLabel=" + "
54 latin:keyWidth="8.042%p" />
Tadashi G. Takaoka58bfa352010-10-19 17:08:54 +090055 <Spacer
Tadashi G. Takaoka7c25ad42010-11-20 16:17:04 -080056 latin:horizontalGap="8.479%p" />
Tadashi G. Takaoka4d3a4dc2010-10-09 01:06:26 +090057 <Key
Tadashi G. Takaoka7f0befe2010-11-23 23:59:56 -080058 latin:keyStyle="num1KeyStyle" />
Tadashi G. Takaoka4d3a4dc2010-10-09 01:06:26 +090059 <Key
Tadashi G. Takaoka7f0befe2010-11-23 23:59:56 -080060 latin:keyStyle="num2KeyStyle" />
Tadashi G. Takaoka4d3a4dc2010-10-09 01:06:26 +090061 <Key
Tadashi G. Takaoka7f0befe2010-11-23 23:59:56 -080062 latin:keyStyle="num3KeyStyle" />
Tadashi G. Takaoka58bfa352010-10-19 17:08:54 +090063 <Spacer
Tadashi G. Takaoka7f0befe2010-11-23 23:59:56 -080064 latin:horizontalGap="9.360%p" />
Tadashi G. Takaoka4d3a4dc2010-10-09 01:06:26 +090065 <Key
Tadashi G. Takaoka7f0befe2010-11-23 23:59:56 -080066 latin:keyStyle="deleteKeyStyle"
67 latin:keyWidth="9.804%p"
Tadashi G. Takaoka4d3a4dc2010-10-09 01:06:26 +090068 latin:keyEdgeFlags="right" />
69 </Row>
70 <Row>
71 <Key
Tadashi G. Takaoka7f0befe2010-11-23 23:59:56 -080072 latin:keyStyle="moreKeyStyle"
Tadashi G. Takaoka4d3a4dc2010-10-09 01:06:26 +090073 latin:keyEdgeFlags="left" />
74 <!-- To match one character label size with "More", I placed spaces around the char ','
75 and '.'. -->
Tadashi G. Takaoka58bfa352010-10-19 17:08:54 +090076 <Spacer
Tadashi G. Takaoka7c25ad42010-11-20 16:17:04 -080077 latin:horizontalGap="8.470%p" />
Tadashi G. Takaoka4d3a4dc2010-10-09 01:06:26 +090078 <Key
Tadashi G. Takaokac4f71662010-12-20 20:30:26 +090079 latin:code="44"
Tadashi G. Takaoka7c25ad42010-11-20 16:17:04 -080080 latin:keyLabel=" , "
81 latin:keyWidth="8.042%p" />
Tadashi G. Takaoka4d3a4dc2010-10-09 01:06:26 +090082 <Key
Tadashi G. Takaokac4f71662010-12-20 20:30:26 +090083 latin:code="46"
Tadashi G. Takaoka7c25ad42010-11-20 16:17:04 -080084 latin:keyLabel=" . "
85 latin:keyWidth="8.042%p" />
Tadashi G. Takaoka58bfa352010-10-19 17:08:54 +090086 <Spacer
Tadashi G. Takaoka7c25ad42010-11-20 16:17:04 -080087 latin:horizontalGap="8.479%p" />
Tadashi G. Takaoka4d3a4dc2010-10-09 01:06:26 +090088 <Key
Tadashi G. Takaoka7f0befe2010-11-23 23:59:56 -080089 latin:keyStyle="num4KeyStyle" />
Tadashi G. Takaoka4d3a4dc2010-10-09 01:06:26 +090090 <Key
Tadashi G. Takaoka7f0befe2010-11-23 23:59:56 -080091 latin:keyStyle="num5KeyStyle" />
Tadashi G. Takaoka4d3a4dc2010-10-09 01:06:26 +090092 <Key
Tadashi G. Takaoka7f0befe2010-11-23 23:59:56 -080093 latin:keyStyle="num6KeyStyle" />
Tadashi G. Takaoka58bfa352010-10-19 17:08:54 +090094 <Spacer
Tadashi G. Takaoka7c25ad42010-11-20 16:17:04 -080095 latin:horizontalGap="4.458%p" />
Tadashi G. Takaoka4d3a4dc2010-10-09 01:06:26 +090096 <Key
Tadashi G. Takaoka7f0befe2010-11-23 23:59:56 -080097 latin:keyStyle="returnKeyStyle"
Tadashi G. Takaoka7c25ad42010-11-20 16:17:04 -080098 latin:keyWidth="14.706%p"
Tadashi G. Takaoka4d3a4dc2010-10-09 01:06:26 +090099 latin:keyEdgeFlags="right" />
100 </Row>
101 <Row>
102 <!-- To match one character label size with "More", I placed spaces around the char '('
103 and ')'. -->
104 <!-- There is an empty area bellow the "More" key and left of the "(" key. To ignore
105 the touch event on the area, "(" is intentionally not marked as a left edge key. -->
Tadashi G. Takaoka58bfa352010-10-19 17:08:54 +0900106 <Spacer
Tadashi G. Takaoka7c25ad42010-11-20 16:17:04 -0800107 latin:horizontalGap="20.427%p" />
Tadashi G. Takaoka4d3a4dc2010-10-09 01:06:26 +0900108 <Key
Tadashi G. Takaokac4f71662010-12-20 20:30:26 +0900109 latin:code="40"
Tadashi G. Takaoka7c25ad42010-11-20 16:17:04 -0800110 latin:keyLabel=" ( "
111 latin:keyWidth="8.042%p" />
Tadashi G. Takaoka4d3a4dc2010-10-09 01:06:26 +0900112 <Key
Tadashi G. Takaokac4f71662010-12-20 20:30:26 +0900113 latin:code="41"
Tadashi G. Takaoka7c25ad42010-11-20 16:17:04 -0800114 latin:keyLabel=" ) "
115 latin:keyWidth="8.042%p" />
Tadashi G. Takaoka58bfa352010-10-19 17:08:54 +0900116 <Spacer
Tadashi G. Takaoka7c25ad42010-11-20 16:17:04 -0800117 latin:horizontalGap="8.479%p" />
Tadashi G. Takaoka4d3a4dc2010-10-09 01:06:26 +0900118 <Key
Tadashi G. Takaoka7f0befe2010-11-23 23:59:56 -0800119 latin:keyStyle="num7KeyStyle" />
Tadashi G. Takaoka4d3a4dc2010-10-09 01:06:26 +0900120 <Key
Tadashi G. Takaoka7f0befe2010-11-23 23:59:56 -0800121 latin:keyStyle="num8KeyStyle" />
Tadashi G. Takaoka4d3a4dc2010-10-09 01:06:26 +0900122 <Key
Tadashi G. Takaoka7f0befe2010-11-23 23:59:56 -0800123 latin:keyStyle="num9KeyStyle" />
Tadashi G. Takaoka58bfa352010-10-19 17:08:54 +0900124 <!-- There is an empty area bellow the "Enter" key and right of the "9" key. To ignore
125 the touch event on the area, "9" is intentionally not marked as a right edge key. -->
126 </Row>
Tadashi G. Takaoka4d3a4dc2010-10-09 01:06:26 +0900127 <!-- This row is intentionally not marked as a bottom row -->
128 <Row>
129 <!-- There is an empty area bellow the "More" key and left of the "space" key. To ignore
130 the touch event on the area, "space" is intentionally not marked as a left edge key. -->
Tadashi G. Takaoka58bfa352010-10-19 17:08:54 +0900131 <Spacer
Tadashi G. Takaoka7ab9f602011-01-18 14:08:40 +0900132 latin:horizontalGap="12.340%p" />
Tadashi G. Takaoka4199e292011-02-23 20:31:08 +0900133 <switch>
134 <case latin:hasSettingsKey="true">
135 <Key
136 latin:keyStyle="settingsKeyStyle"
137 latin:keyWidth="8.042%p" />
138 </case>
139 <default>
140 <Spacer
141 latin:horizontalGap="8.042%p" />
142 </default>
143 </switch>
Tadashi G. Takaoka4d3a4dc2010-10-09 01:06:26 +0900144 <Key
Tadashi G. Takaoka7f0befe2010-11-23 23:59:56 -0800145 latin:keyStyle="nonSpecialBackgroundSpaceKeyStyle"
Tadashi G. Takaoka7ab9f602011-01-18 14:08:40 +0900146 latin:keyWidth="16.084%p" />
Tadashi G. Takaoka58bfa352010-10-19 17:08:54 +0900147 <Spacer
Tadashi G. Takaoka7c25ad42010-11-20 16:17:04 -0800148 latin:horizontalGap="8.479%p" />
Tadashi G. Takaoka4d3a4dc2010-10-09 01:06:26 +0900149 <Key
Tadashi G. Takaoka7f0befe2010-11-23 23:59:56 -0800150 latin:keyStyle="numStarKeyStyle" />
Tadashi G. Takaoka4d3a4dc2010-10-09 01:06:26 +0900151 <Key
Tadashi G. Takaoka7f0befe2010-11-23 23:59:56 -0800152 latin:keyStyle="num0KeyStyle" />
Tadashi G. Takaoka4d3a4dc2010-10-09 01:06:26 +0900153 <Key
Tadashi G. Takaoka7f0befe2010-11-23 23:59:56 -0800154 latin:keyStyle="numPoundKeyStyle" />
Tadashi G. Takaoka0f901aa2011-01-13 13:43:39 +0900155 <switch>
156 <case
157 latin:voiceKeyEnabled="true"
158 >
159 <Key
160 latin:keyStyle="micKeyStyle"
161 latin:keyWidth="8.042%p" />
162 </case>
163 </switch>
Tadashi G. Takaoka58bfa352010-10-19 17:08:54 +0900164 <!-- There is an empty area bellow the "Enter" key and right of the "#" key. To ignore
165 the touch event on the area, "#" is intentionally not marked as a right edge key. -->
Tadashi G. Takaoka4d3a4dc2010-10-09 01:06:26 +0900166 </Row>
167</Keyboard>