blob: fdeca258ff8109ea1a1b8850bfc1a6e694962d3c [file] [log] [blame]
satok979f8692010-08-20 14:35:02 +09001<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2010 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
17<resources>
Tadashi G. Takaoka13a74192011-05-24 21:08:20 +090018 <declare-styleable name="KeyboardTheme">
Tadashi G. Takaokab7758d62011-06-15 13:38:58 +090019 <!-- Keyboard style -->
20 <attr name="keyboardStyle" format="reference" />
Tadashi G. Takaokaa6196732011-06-16 17:20:29 +090021 <!-- LatinKeyboard style -->
22 <attr name="latinKeyboardStyle" format="reference" />
Tadashi G. Takaoka13a74192011-05-24 21:08:20 +090023 <!-- KeyboardView style -->
24 <attr name="keyboardViewStyle" format="reference" />
Tadashi G. Takaoka9237a722011-08-31 14:22:53 +090025 <!-- MiniKeyboardView style -->
26 <attr name="miniKeyboardViewStyle" format="reference" />
27 <attr name="miniKeyboardPanelStyle" format="reference" />
Tadashi G. Takaoka13a74192011-05-24 21:08:20 +090028 <!-- Suggestions strip style -->
29 <attr name="suggestionsStripBackgroundStyle" format="reference" />
30 <attr name="suggestionBackgroundStyle" format="reference" />
31 <attr name="suggestionPreviewBackgroundStyle" format="reference" />
Tadashi G. Takaoka08a6f2a2011-06-15 11:49:57 +090032 <attr name="candidateViewStyle" format="reference" />
Tadashi G. Takaoka13a74192011-05-24 21:08:20 +090033 </declare-styleable>
satok979f8692010-08-20 14:35:02 +090034
Tadashi G. Takaoka5a309f52010-12-02 18:46:21 +090035 <declare-styleable name="KeyboardView">
satok979f8692010-08-20 14:35:02 +090036 <!-- Image for the key. This image needs to be a StateListDrawable, with the following
37 possible states: normal, pressed, checkable, checkable+pressed, checkable+checked,
38 checkable+checked+pressed. -->
39 <attr name="keyBackground" format="reference" />
40
Tadashi G. Takaoka83da6c12011-08-29 20:28:46 +090041 <!-- Size of the text for one letter keys. If not defined, keyLetterRatio takes effect. -->
Tadashi G. Takaoka2d804002011-08-30 14:15:55 +090042 <attr name="keyLetterSize" format="dimension" />
Tadashi G. Takaoka83da6c12011-08-29 20:28:46 +090043 <!-- Size of the text for keys with multiple letters. If not defined, keyLabelRatio takes
44 effect. -->
Tadashi G. Takaoka2d804002011-08-30 14:15:55 +090045 <attr name="keyLabelSize" format="dimension" />
Tadashi G. Takaoka9d9522a2011-06-15 12:36:53 +090046 <!-- Size of the text for one letter keys, in the proportion of key height. -->
Tadashi G. Takaokad1578342011-05-12 23:49:19 +090047 <attr name="keyLetterRatio" format="float" />
Tadashi G. Takaoka520a2972011-06-25 19:38:55 +090048 <!-- Large size of the text for one letter keys, in the proportion of key height. -->
49 <attr name="keyLargeLetterRatio" format="float" />
Tadashi G. Takaoka83da6c12011-08-29 20:28:46 +090050 <!-- Size of the text for keys with multiple letters, in the proportion of key height. -->
Tadashi G. Takaoka9d9522a2011-06-15 12:36:53 +090051 <attr name="keyLabelRatio" format="float" />
Tadashi G. Takaoka520a2972011-06-25 19:38:55 +090052 <!-- Size of the text for hint letter (= one character hint label), in the proportion of
53 key height. -->
Tadashi G. Takaoka9d9522a2011-06-15 12:36:53 +090054 <attr name="keyHintLetterRatio" format="float" />
Tadashi G. Takaoka520a2972011-06-25 19:38:55 +090055 <!-- Size of the text for hint label, in the proportion of key height. -->
56 <attr name="keyHintLabelRatio" format="float" />
Tadashi G. Takaoka9d9522a2011-06-15 12:36:53 +090057 <!-- Size of the text for upper case letter, in the proportion of key height. -->
58 <attr name="keyUppercaseLetterRatio" format="float" />
Tadashi G. Takaokad773bf32011-06-28 16:32:39 +090059 <!-- Horizontal padding of left/right aligned key label to the edge of the key. -->
60 <attr name="keyLabelHorizontalPadding" format="dimension" />
61 <!-- Top and right padding of hint letter to the edge of the key.-->
62 <attr name="keyHintLetterPadding" format="dimension" />
63 <!-- Top and right padding of upper case letter to the edge of the key.-->
64 <attr name="keyUppercaseLetterPadding" format="dimension" />
satok979f8692010-08-20 14:35:02 +090065
66 <!-- Color to use for the label in a key. -->
67 <attr name="keyTextColor" format="color" />
Tadashi G. Takaoka9d9522a2011-06-15 12:36:53 +090068 <!-- Color to use for the label in a key when in inactivated state. -->
69 <attr name="keyTextInactivatedColor" format="color" />
Tadashi G. Takaoka520a2972011-06-25 19:38:55 +090070 <!-- Key hint letter (= one character hint label) color -->
Tadashi G. Takaoka9d9522a2011-06-15 12:36:53 +090071 <attr name="keyHintLetterColor" format="color" />
Tadashi G. Takaoka520a2972011-06-25 19:38:55 +090072 <!-- Key hint label color -->
73 <attr name="keyHintLabelColor" format="color" />
Tadashi G. Takaoka9d9522a2011-06-15 12:36:53 +090074 <!-- Upper case letter colors -->
75 <attr name="keyUppercaseLetterInactivatedColor" format="color" />
76 <attr name="keyUppercaseLetterActivatedColor" format="color" />
satok979f8692010-08-20 14:35:02 +090077
78 <!-- Layout resource for key press feedback.-->
79 <attr name="keyPreviewLayout" format="reference" />
Tadashi G. Takaoka8aee7592011-06-27 17:51:36 +090080 <!-- The background for key press feedback. -->
81 <attr name="keyPreviewBackground" format="reference" />
Tadashi G. Takaokad87f28f2011-06-28 03:01:35 +090082 <!-- The background for the left edge key press feedback. -->
83 <attr name="keyPreviewLeftBackground" format="reference" />
84 <!-- The background for the right edge key press feedback. -->
85 <attr name="keyPreviewRightBackground" format="reference" />
Tadashi G. Takaoka8aee7592011-06-27 17:51:36 +090086 <!-- The text color for key press feedback. -->
87 <attr name="keyPreviewTextColor" format="color" />
satok979f8692010-08-20 14:35:02 +090088 <!-- Vertical offset of the key press feedback from the key. -->
89 <attr name="keyPreviewOffset" format="dimension" />
satok979f8692010-08-20 14:35:02 +090090 <!-- Height of the key press feedback popup. -->
91 <attr name="keyPreviewHeight" format="dimension" />
Tadashi G. Takaoka520a2972011-06-25 19:38:55 +090092 <!-- Size of the text for key press feedback popup, int the proportion of key height -->
93 <attr name="keyPreviewTextRatio" format="float" />
satok979f8692010-08-20 14:35:02 +090094
95 <!-- Amount to offset the touch Y coordinate by, for bias correction. -->
96 <attr name="verticalCorrection" format="dimension" />
97
Tadashi G. Takaoka9d5601e2011-08-31 15:26:32 +090098 <!-- Layout resource for more keys panel -->
99 <attr name="moreKeysLayout" format="reference" />
satok979f8692010-08-20 14:35:02 +0900100
101 <attr name="shadowColor" format="color" />
102 <attr name="shadowRadius" format="float" />
103 <attr name="backgroundDimAmount" format="float" />
104
Tadashi G. Takaoka9d9522a2011-06-15 12:36:53 +0900105 <attr name="keyTextStyle" format="enum">
Tadashi G. Takaoka5d040422010-12-01 12:22:19 +0900106 <!-- This should be aligned with Typeface.NORMAL etc. -->
Tadashi G. Takaoka59c99302010-11-21 16:40:38 -0800107 <enum name="normal" value="0" />
108 <enum name="bold" value="1" />
109 <enum name="italic" value="2" />
Tadashi G. Takaoka5d040422010-12-01 12:22:19 +0900110 <enum name="boldItalic" value="3" />
satok979f8692010-08-20 14:35:02 +0900111 </attr>
satok979f8692010-08-20 14:35:02 +0900112 </declare-styleable>
113
Tadashi G. Takaoka08a6f2a2011-06-15 11:49:57 +0900114 <declare-styleable name="CandidateView">
Tadashi G. Takaokad47a9552011-08-16 18:18:58 -0700115 <attr name="suggestionStripOption" format="integer">
Tadashi G. Takaoka08a6f2a2011-06-15 11:49:57 +0900116 <flag name="autoCorrectBold" value="0x01" />
117 <flag name="autoCorrectUnderline" value="0x02" />
118 <flag name="autoCorrectInvert" value="0x04" />
Tadashi G. Takaokad47a9552011-08-16 18:18:58 -0700119 <flag name="validTypedWordBold" value="0x08" />
Tadashi G. Takaoka08a6f2a2011-06-15 11:49:57 +0900120 </attr>
121 <attr name="colorTypedWord" format="color" />
122 <attr name="colorAutoCorrect" format="color" />
123 <attr name="colorSuggested" format="color" />
Tadashi G. Takaoka74b68972011-06-30 10:09:21 +0900124 <attr name="candidateCountInStrip" format="integer" />
Tadashi G. Takaoka60a004f2011-08-05 02:54:52 -0700125 <attr name="centerCandidatePercentile" format="integer" />
Tadashi G. Takaoka08a6f2a2011-06-15 11:49:57 +0900126 </declare-styleable>
127
Tadashi G. Takaoka5a309f52010-12-02 18:46:21 +0900128 <declare-styleable name="Keyboard">
Tadashi G. Takaoka9f01ed52010-12-08 14:36:41 +0900129 <!-- Default keyboard height -->
130 <attr name="keyboardHeight" format="dimension" />
131 <!-- Maximum keyboard height, in pixels or percentage of display height -->
132 <attr name="maxKeyboardHeight" format="dimension|fraction" />
Tadashi G. Takaokaff483e82011-05-12 14:49:18 +0900133 <!-- Minimum keyboard height represented in pixels, percentage of display height if fraction
134 is positive, or percentage of display width if fraction is negative. -->
135 <attr name="minKeyboardHeight" format="dimension|fraction" />
Tadashi G. Takaoka9116bf12011-06-21 20:10:51 +0900136 <!-- Keyboard top and bottom paddings. -->
137 <attr name="keyboardTopPadding" format="dimension" />
138 <attr name="keyboardBottomPadding" format="dimension" />
Tadashi G. Takaoka327763e2011-05-30 20:05:50 +0900139 <!-- Default width of a key, in pixels or percentage of display width.
140 If the value is zero, the actual key width will be determined to fill out the area up
141 to the right edge of the keyboard.
142 If the value is negative, the actual key width will be determined to fill out the
143 area between the nearest key on the left hand side and the right edge of the keyboard.
144 -->
145 <attr name="keyWidth" format="dimension|fraction|enum">
146 <enum name="fillRight" value="0" />
147 <enum name="fillBoth" value="-1" />
148 </attr>
Tadashi G. Takaoka9f01ed52010-12-08 14:36:41 +0900149 <!-- Default height of a row (key height + vertical gap), in pixels or percentage of
150 keyboard height. -->
151 <attr name="rowHeight" format="dimension|fraction" />
satok4fc510a2010-10-01 19:40:44 +0900152 <!-- Default horizontal gap between keys. -->
153 <attr name="horizontalGap" format="dimension|fraction" />
154 <!-- Default vertical gap between rows of keys. -->
155 <attr name="verticalGap" format="dimension|fraction" />
Tadashi G. Takaoka9d5601e2011-08-31 15:26:32 +0900156 <!-- More keys keyboard layout template -->
157 <attr name="moreKeysTemplate" format="reference" />
satok15a0ba62011-04-21 15:35:07 +0900158 <!-- Locale of the keyboard layout -->
159 <attr name="keyboardLocale" format="string" />
Tadashi G. Takaoka71393352011-07-24 16:35:54 -0700160 <!-- True if the keyboard is Right-To-Left -->
161 <attr name="isRtlKeyboard" format="boolean" />
Tadashi G. Takaokac2a21782011-06-21 23:38:42 +0900162 <!-- Icon set for key top and key preview. -->
163 <attr name="iconShiftKey" format="reference" />
Tadashi G. Takaokac2a21782011-06-21 23:38:42 +0900164 <attr name="iconDeleteKey" format="reference" />
165 <attr name="iconSettingsKey" format="reference" />
Tadashi G. Takaokac2a21782011-06-21 23:38:42 +0900166 <attr name="iconSpaceKey" format="reference" />
167 <attr name="iconReturnKey" format="reference" />
168 <attr name="iconSearchKey" format="reference" />
169 <attr name="iconTabKey" format="reference" />
Tadashi G. Takaoka62d4a962011-08-02 21:29:24 -0700170 <attr name="iconShortcutKey" format="reference" />
171 <attr name="iconShortcutForLabel" format="reference" />
Tadashi G. Takaokac2a21782011-06-21 23:38:42 +0900172 <attr name="iconShiftedShiftKey" format="reference" />
Tadashi G. Takaokac2a21782011-06-21 23:38:42 +0900173 <attr name="iconPreviewTabKey" format="reference" />
174 <attr name="iconPreviewSettingsKey" format="reference" />
175 <attr name="iconPreviewShortcutKey" format="reference" />
satok4fc510a2010-10-01 19:40:44 +0900176 </declare-styleable>
177
Tadashi G. Takaoka5a309f52010-12-02 18:46:21 +0900178 <declare-styleable name="Keyboard_Key">
Tadashi G. Takaokac4f71662010-12-20 20:30:26 +0900179 <!-- The unicode value that this key outputs. -->
180 <attr name="code" format="integer" />
Tadashi G. Takaoka9d5601e2011-08-31 15:26:32 +0900181 <!-- The keys to display in the more keys keyboard. -->
182 <attr name="moreKeys" format="string" />
183 <!-- Maximum column of more keys keyboard -->
184 <attr name="maxMoreKeysColumn" format="integer" />
Tadashi G. Takaokae7c0e732011-04-07 16:12:00 +0900185 <!-- Whether this is a functional key which has different key top than normal key. -->
186 <attr name="isFunctional" format="boolean" />
satok4fc510a2010-10-01 19:40:44 +0900187 <!-- Whether this is a toggle key. -->
188 <attr name="isSticky" format="boolean" />
189 <!-- Whether long-pressing on this key will make it repeat. -->
190 <attr name="isRepeatable" format="boolean" />
satok4fc510a2010-10-01 19:40:44 +0900191 <!-- The string of characters to output when this key is pressed. -->
192 <attr name="keyOutputText" format="string" />
193 <!-- The label to display on the key. -->
194 <attr name="keyLabel" format="string" />
Tadashi G. Takaoka520a2972011-06-25 19:38:55 +0900195 <!-- The hint label to display on the key in conjunction with the label. -->
196 <attr name="keyHintLabel" format="string" />
Tadashi G. Takaoka9d9522a2011-06-15 12:36:53 +0900197 <!-- The key label option. -->
Tadashi G. Takaoka58592052011-06-03 02:18:57 +0900198 <attr name="keyLabelOption" format="integer">
Tadashi G. Takaoka9d9522a2011-06-15 12:36:53 +0900199 <!-- This should be aligned with Key.LABEL_OPTION_* -->
Tadashi G. Takaokab7758d62011-06-15 13:38:58 +0900200 <flag name="alignLeft" value="0x01" />
201 <flag name="alignRight" value="0x02" />
Tadashi G. Takaoka520a2972011-06-25 19:38:55 +0900202 <flag name="alignLeftOfCenter" value="0x08" />
203 <flag name="largeLetter" value="0x10" />
204 <flag name="fontNormal" value="0x20" />
205 <flag name="fontMonoSpace" value="0x40" />
206 <flag name="followKeyLetterRatio" value="0x80" />
207 <flag name="followKeyHintLabelRatio" value="0x100" />
208 <flag name="hasPopupHint" value="0x200" />
209 <flag name="hasUppercaseLetter" value="0x400" />
210 <flag name="hasHintLabel" value="0x800" />
Tadashi G. Takaoka62d4a962011-08-02 21:29:24 -0700211 <flag name="withIconLeft" value="0x1000" />
212 <flag name="withIconRight" value="0x2000" />
Tadashi G. Takaokacd39f2a2010-11-20 08:03:24 -0800213 </attr>
satok4fc510a2010-10-01 19:40:44 +0900214 <!-- The icon to display on the key instead of the label. -->
Tadashi G. Takaokac2a21782011-06-21 23:38:42 +0900215 <attr name="keyIcon" format="enum">
216 <!-- This should be aligned with KeyboardIcons.ICON_* -->
217 <enum name="iconShiftKey" value="1" />
Tadashi G. Takaoka62d4a962011-08-02 21:29:24 -0700218 <enum name="iconDeleteKey" value="2" />
219 <enum name="iconSettingsKey" value="3" />
220 <enum name="iconSpaceKey" value="4" />
221 <enum name="iconReturnKey" value="5" />
222 <enum name="iconSearchKey" value="6" />
223 <enum name="iconTabKey" value="7" />
224 <enum name="iconShortcutKey" value="8" />
225 <enum name="iconShortcutForLabel" value="9" />
Tadashi G. Takaokac2a21782011-06-21 23:38:42 +0900226 </attr>
227 <!-- Shift key icon for shifted state -->
228 <attr name="keyIconShifted" format="enum">
229 <!-- This should be aligned with KeyboardIcons.ICON_SHIFTED_* -->
Tadashi G. Takaoka62d4a962011-08-02 21:29:24 -0700230 <enum name="iconShiftedShiftKey" value="10" />
Tadashi G. Takaokac2a21782011-06-21 23:38:42 +0900231 </attr>
232 <!-- The icon to show in the popup preview. -->
233 <attr name="keyIconPreview" format="enum">
234 <!-- This should be aligned with KeyboardIcons.ICON_PREVIEW_* -->
Tadashi G. Takaoka62d4a962011-08-02 21:29:24 -0700235 <enum name="iconPreviewTabKey" value="11" />
236 <enum name="iconPreviewSettingsKey" value="12" />
237 <enum name="iconPreviewShortcutKey" value="13" />
Tadashi G. Takaokac2a21782011-06-21 23:38:42 +0900238 </attr>
Tadashi G. Takaoka0b60f832010-11-19 14:57:24 -0800239 <!-- The key style to specify a set of key attributes defined by <key_style/> -->
240 <attr name="keyStyle" format="string" />
Tadashi G. Takaokaaa721c42011-02-18 11:28:17 +0900241 <!-- The key is enabled and responds on press. -->
242 <attr name="enabled" format="boolean" />
Tadashi G. Takaoka56abeab2011-04-11 11:30:15 +0900243 <!-- Visual insets -->
244 <attr name="visualInsetsLeft" format="dimension|fraction" />
245 <attr name="visualInsetsRight" format="dimension|fraction" />
Tadashi G. Takaoka327763e2011-05-30 20:05:50 +0900246 <!-- The X-coordinate of upper right corner of this key including horizontal gap.
247 If the value is negative, the origin is the right edge of the keyboard. -->
248 <attr name="keyXPos" format="dimension|fraction" />
satok4fc510a2010-10-01 19:40:44 +0900249 </declare-styleable>
250
Tadashi G. Takaoka5a309f52010-12-02 18:46:21 +0900251 <declare-styleable name="Keyboard_Include">
Tadashi G. Takaokad6635552010-10-07 17:13:30 +0900252 <attr name="keyboardLayout" format="reference" />
253 </declare-styleable>
Tadashi G. Takaokab0465112010-11-11 15:28:14 -0800254
Tadashi G. Takaoka5a309f52010-12-02 18:46:21 +0900255 <declare-styleable name="Keyboard_Case">
256 <!-- This should be aligned with KeyboardId.MODE_* -->
Tadashi G. Takaoka58592052011-06-03 02:18:57 +0900257 <attr name="mode" format="enum|string">
Tadashi G. Takaokacd39f2a2010-11-20 08:03:24 -0800258 <enum name="text" value="0" />
259 <enum name="url" value="1" />
260 <enum name="email" value="2" />
261 <enum name="im" value="3" />
Tadashi G. Takaoka9e2d8102011-05-27 21:41:13 +0900262 <enum name="phone" value="4" />
263 <enum name="number" value="5" />
Tadashi G. Takaoka1d8196c2010-11-19 14:57:24 -0800264 </attr>
Tadashi G. Takaoka28a38fd2011-06-17 18:25:54 +0900265 <attr name="navigateAction" format="boolean" />
Tadashi G. Takaoka4b13b4f2011-02-20 12:54:14 +0900266 <attr name="passwordInput" format="boolean" />
Tadashi G. Takaokab7758d62011-06-15 13:38:58 +0900267 <attr name="hasSettingsKey" format="boolean" />
Tadashi G. Takaokacd96a692011-06-23 21:55:56 +0900268 <!-- This should be aligned with KeyboardID.F2KEY_MODE_* -->
269 <attr name="f2KeyMode" format="enum">
270 <enum name="none" value="0" />
271 <enum name="settings" value="1" />
272 <enum name="shortcutIme" value="2" />
273 <enum name="shortcutImeOrSettings" value="3" />
274 </attr>
275 <attr name="clobberSettingsKey" format="boolean" />
Tadashi G. Takaokac3afe2c2011-07-31 18:34:54 -0700276 <attr name="shortcutKeyEnabled" format="boolean" />
277 <attr name="hasShortcutKey" format="boolean" />
Tadashi G. Takaoka58592052011-06-03 02:18:57 +0900278 <attr name="imeAction" format="enum">
Tadashi G. Takaoka6624fd82010-11-19 16:04:52 -0800279 <!-- This should be aligned with EditorInfo.IME_ACTION_* -->
Tadashi G. Takaoka58592052011-06-03 02:18:57 +0900280 <enum name="actionUnspecified" value="0" />
281 <enum name="actionNone" value="1" />
282 <enum name="actionGo" value="2" />
283 <enum name="actionSearch" value="3" />
284 <enum name="actionSend" value="4" />
285 <enum name="actionNext" value="5" />
286 <enum name="actionDone" value="6" />
287 <enum name="actionPrevious" value="7" />
Tadashi G. Takaoka6624fd82010-11-19 16:04:52 -0800288 </attr>
Tadashi G. Takaoka58592052011-06-03 02:18:57 +0900289 <attr name="localeCode" format="string" />
Tadashi G. Takaokaea6c2e32011-02-18 15:33:44 +0900290 <attr name="languageCode" format="string" />
Tadashi G. Takaoka912ade32011-02-23 17:09:24 +0900291 <attr name="countryCode" format="string" />
Tadashi G. Takaokab0465112010-11-11 15:28:14 -0800292 </declare-styleable>
Tadashi G. Takaoka0b60f832010-11-19 14:57:24 -0800293
Tadashi G. Takaoka5a309f52010-12-02 18:46:21 +0900294 <declare-styleable name="Keyboard_KeyStyle">
Tadashi G. Takaoka0b60f832010-11-19 14:57:24 -0800295 <attr name="styleName" format="string" />
296 <attr name="parentStyle" format="string" />
297 </declare-styleable>
Tadashi G. Takaokaa6196732011-06-16 17:20:29 +0900298
299 <declare-styleable name="LatinKeyboard">
Tadashi G. Takaoka9116bf12011-06-21 20:10:51 +0900300 <attr name="autoCorrectionSpacebarLedEnabled" format="boolean" />
Tadashi G. Takaokaa6196732011-06-16 17:20:29 +0900301 <attr name="autoCorrectionSpacebarLedIcon" format="reference" />
302 <attr name="disabledShortcutIcon" format="reference" />
303 <attr name="spacebarTextColor" format="color" />
304 <attr name="spacebarTextShadowColor" format="color" />
Tadashi G. Takaokaa6196732011-06-16 17:20:29 +0900305 </declare-styleable>
satok979f8692010-08-20 14:35:02 +0900306</resources>