blob: 72dcb0e35f0b9ce76f5cf8e7f1dc78b3421e3990 [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. Takaoka13a74192011-05-24 21:08:20 +090021 <!-- KeyboardView style -->
22 <attr name="keyboardViewStyle" format="reference" />
Tadashi G. Takaokac8e45dd2012-07-23 10:27:14 +090023 <!-- MainKeyboardView style -->
24 <attr name="mainKeyboardViewStyle" format="reference" />
Tadashi G. Takaoka2affaf92012-02-08 16:12:11 +090025 <!-- MoreKeysKeyboard style -->
26 <attr name="moreKeysKeyboardStyle" format="reference" />
27 <!-- MoreKeysKeyboardView style -->
28 <attr name="moreKeysKeyboardViewStyle" format="reference" />
29 <attr name="moreKeysKeyboardPanelStyle" format="reference" />
Tadashi G. Takaoka13a74192011-05-24 21:08:20 +090030 <!-- Suggestions strip style -->
31 <attr name="suggestionsStripBackgroundStyle" format="reference" />
Tadashi G. Takaoka47026712012-07-23 15:28:28 +090032 <attr name="suggestionStripViewStyle" format="reference" />
Tadashi G. Takaoka0e2fa662011-09-05 16:46:15 +090033 <attr name="moreSuggestionsViewStyle" format="reference" />
Tadashi G. Takaoka13a74192011-05-24 21:08:20 +090034 <attr name="suggestionBackgroundStyle" format="reference" />
35 <attr name="suggestionPreviewBackgroundStyle" format="reference" />
Yusuke Nojimad6339632011-09-29 11:53:51 +090036 </declare-styleable>
satok979f8692010-08-20 14:35:02 +090037
Tadashi G. Takaoka5a309f52010-12-02 18:46:21 +090038 <declare-styleable name="KeyboardView">
satok979f8692010-08-20 14:35:02 +090039 <!-- Image for the key. This image needs to be a StateListDrawable, with the following
40 possible states: normal, pressed, checkable, checkable+pressed, checkable+checked,
41 checkable+checked+pressed. -->
42 <attr name="keyBackground" format="reference" />
43
Tadashi G. Takaoka71b52a82012-08-31 10:09:43 +090044 <!-- Horizontal padding of left/right aligned key label to the edge of the key. -->
45 <attr name="keyLabelHorizontalPadding" format="dimension" />
46 <!-- Right padding of hint letter to the edge of the key.-->
47 <attr name="keyHintLetterPadding" format="dimension" />
48 <!-- Bottom padding of popup hint letter "..." to the edge of the key.-->
49 <attr name="keyPopupHintLetterPadding" format="dimension" />
50 <!-- Right padding of shifted letter hint to the edge of the key.-->
51 <attr name="keyShiftedLetterHintPadding" format="dimension" />
Tadashi G. Takaokadc34da22012-08-30 17:42:49 +090052 <!-- Blur radius of key text shadow. -->
53 <attr name="keyTextShadowRadius" format="float" />
Tadashi G. Takaoka71b52a82012-08-31 10:09:43 +090054
satok979f8692010-08-20 14:35:02 +090055 <!-- Layout resource for key press feedback.-->
56 <attr name="keyPreviewLayout" format="reference" />
Tadashi G. Takaokae8c6d5a2012-09-05 15:34:51 +090057 <!-- Key preview background states -->
58 <attr name="state_left_edge" format="boolean" />
59 <attr name="state_right_edge" format="boolean" />
60 <attr name="state_has_morekeys" format="boolean" />
satok979f8692010-08-20 14:35:02 +090061 <!-- Vertical offset of the key press feedback from the key. -->
62 <attr name="keyPreviewOffset" format="dimension" />
satok979f8692010-08-20 14:35:02 +090063 <!-- Height of the key press feedback popup. -->
64 <attr name="keyPreviewHeight" format="dimension" />
Tadashi G. Takaoka160f0122012-01-25 20:14:39 +090065 <!-- Delay after key releasing and key press feedback dismissing in millisecond -->
66 <attr name="keyPreviewLingerTimeout" format="integer" />
satok979f8692010-08-20 14:35:02 +090067
68 <!-- Amount to offset the touch Y coordinate by, for bias correction. -->
69 <attr name="verticalCorrection" format="dimension" />
70
Tadashi G. Takaoka9d5601e2011-08-31 15:26:32 +090071 <!-- Layout resource for more keys panel -->
72 <attr name="moreKeysLayout" format="reference" />
satok979f8692010-08-20 14:35:02 +090073
Tadashi G. Takaoka299ac262012-03-13 17:28:52 +090074 <attr name="backgroundDimAlpha" format="integer" />
satok979f8692010-08-20 14:35:02 +090075
Tadashi G. Takaoka27e48442012-08-07 11:48:10 +090076 <!-- Attributes for PreviewPlacerView -->
Tadashi G. Takaokaca57f5b2012-07-30 16:06:19 +090077 <attr name="gestureFloatingPreviewTextSize" format="dimension" />
78 <attr name="gestureFloatingPreviewTextColor" format="color" />
79 <attr name="gestureFloatingPreviewTextOffset" format="dimension" />
Tadashi G. Takaoka71e2e812012-09-05 19:03:02 +090080 <attr name="gestureFloatingPreviewColor" format="color" />
81 <attr name="gestureFloatingPreviewHorizontalPadding" format="dimension" />
82 <attr name="gestureFloatingPreviewVerticalPadding" format="dimension" />
83 <attr name="gestureFloatingPreviewRoundRadius" format="dimension" />
Tadashi G. Takaoka27e48442012-08-07 11:48:10 +090084 <!-- Delay after gesture input and gesture floating preview text dismissing in millisecond -->
85 <attr name="gestureFloatingPreviewTextLingerTimeout" format="integer" />
Tadashi G. Takaoka333a3002012-08-20 12:57:34 +090086 <!-- Delay after gesture trail starts fading out in millisecond. -->
87 <attr name="gesturePreviewTrailFadeoutStartDelay" format="integer" />
88 <!-- Duration while gesture preview trail is fading out in millisecond. -->
89 <attr name="gesturePreviewTrailFadeoutDuration" format="integer" />
90 <!-- Interval of updating gesture preview trail in millisecond. -->
91 <attr name="gesturePreviewTrailUpdateInterval" format="integer" />
Tadashi G. Takaokaca57f5b2012-07-30 16:06:19 +090092 <attr name="gesturePreviewTrailColor" format="color" />
Tadashi G. Takaokac1780c12012-09-06 12:12:10 +090093 <attr name="gesturePreviewTrailStartWidth" format="dimension" />
94 <attr name="gesturePreviewTrailEndWidth" format="dimension" />
satok979f8692010-08-20 14:35:02 +090095 </declare-styleable>
96
Tadashi G. Takaokac8e45dd2012-07-23 10:27:14 +090097 <declare-styleable name="MainKeyboardView">
Tadashi G. Takaoka4112dc02011-12-18 08:13:36 +090098 <attr name="autoCorrectionSpacebarLedEnabled" format="boolean" />
99 <attr name="autoCorrectionSpacebarLedIcon" format="reference" />
100 <!-- Size of the text for spacebar language label, in the proportion of key height. -->
101 <attr name="spacebarTextRatio" format="fraction" />
102 <attr name="spacebarTextColor" format="color" />
103 <attr name="spacebarTextShadowColor" format="color" />
Tadashi G. Takaokad7c4ba12012-03-14 12:33:03 +0900104 <!-- Fadeout animator for spacebar language label. -->
Tadashi G. Takaoka31c94ce2012-03-16 14:05:20 +0900105 <attr name="languageOnSpacebarFinalAlpha" format="integer" />
Tadashi G. Takaokad7c4ba12012-03-14 12:33:03 +0900106 <attr name="languageOnSpacebarFadeoutAnimator" format="reference" />
Tadashi G. Takaoka73a46bf2012-03-14 14:46:22 +0900107 <!-- Fadeout and fadein animator for altCodeWhileTyping keys. -->
108 <attr name="altCodeKeyWhileTypingFadeoutAnimator" format="reference" />
109 <attr name="altCodeKeyWhileTypingFadeinAnimator" format="reference" />
Tadashi G. Takaoka160f0122012-01-25 20:14:39 +0900110 <!-- Key detection hysteresis distance. -->
111 <attr name="keyHysteresisDistance" format="dimension" />
112 <!-- Touch noise threshold time in millisecond -->
113 <attr name="touchNoiseThresholdTime" format="integer" />
114 <!-- Touch noise threshold distance in millimeter -->
115 <attr name="touchNoiseThresholdDistance" format="dimension" />
116 <!-- Sliding key input enable -->
117 <attr name="slidingKeyInputEnable" format="boolean" />
118 <!-- Key repeat start timeout -->
119 <attr name="keyRepeatStartTimeout" format="integer" />
120 <!-- Key repeat interval in millisecond. -->
121 <attr name="keyRepeatInterval" format="integer" />
122 <!-- Long press timeout of letter key in millisecond. -->
123 <attr name="longPressKeyTimeout" format="integer" />
124 <!-- Long press timeout of shift key in millisecond. -->
125 <attr name="longPressShiftKeyTimeout" format="integer" />
Tadashi G. Takaoka160f0122012-01-25 20:14:39 +0900126 <!-- Ignore special key timeout while typing in millisecond. -->
Tadashi G. Takaoka73a46bf2012-03-14 14:46:22 +0900127 <attr name="ignoreAltCodeKeyTimeout" format="integer" />
Tadashi G. Takaoka2affaf92012-02-08 16:12:11 +0900128 <!-- More keys keyboard will shown at touched point. -->
129 <attr name="showMoreKeysKeyboardAtTouchedPoint" format="boolean" />
Tadashi G. Takaoka80bcb992012-10-05 12:12:54 +0900130 <!-- Static threshold for gesture after fast typing (msec) -->
131 <attr name="gestureStaticTimeThresholdAfterFastTyping" format="integer" />
132 <!-- Static threshold for starting gesture detection (keyWidth%/sec) -->
133 <attr name="gestureDetectFastMoveSpeedThreshold" format="fraction" />
134 <!-- Dynamic threshold for gesture after fast typing (msec) -->
135 <attr name="gestureDynamicThresholdDecayDuration" format="integer" />
136 <!-- Time based threshold values for gesture detection (msec) -->
137 <attr name="gestureDynamicTimeThresholdFrom" format="integer" />
138 <attr name="gestureDynamicTimeThresholdTo" format="integer" />
139 <!-- Distance based threshold values for gesture detection (keyWidth%/sec) -->
140 <attr name="gestureDynamicDistanceThresholdFrom" format="fraction" />
141 <attr name="gestureDynamicDistanceThresholdTo" format="fraction" />
142 <!-- Parameter for gesture sampling (keyWidth%/sec) -->
143 <attr name="gestureSamplingMinimumDistance" format="fraction" />
144 <!-- Parameters for gesture recognition (msec) and (keyWidth%/sec) -->
145 <attr name="gestureRecognitionMinimumTime" format="integer" />
146 <attr name="gestureRecognitionSpeedThreshold" format="fraction" />
Tadashi G. Takaoka3623b972012-10-05 14:37:22 +0900147 <!-- Suppress showing key preview duration after batch input in millisecond -->
148 <attr name="suppressKeyPreviewAfterBatchInputDuration" format="integer" />
Tadashi G. Takaoka5afc3ae2011-12-18 04:55:17 +0900149 </declare-styleable>
150
Tadashi G. Takaoka47026712012-07-23 15:28:28 +0900151 <declare-styleable name="SuggestionStripView">
Tadashi G. Takaokad47a9552011-08-16 18:18:58 -0700152 <attr name="suggestionStripOption" format="integer">
Tadashi G. Takaoka47026712012-07-23 15:28:28 +0900153 <!-- This should be aligned with SuggestionStripViewParams.AUTO_CORRECT_* and etc. -->
Tadashi G. Takaoka08a6f2a2011-06-15 11:49:57 +0900154 <flag name="autoCorrectBold" value="0x01" />
155 <flag name="autoCorrectUnderline" value="0x02" />
Tadashi G. Takaoka77a87e32011-09-21 15:04:50 +0900156 <flag name="validTypedWordBold" value="0x04" />
Tadashi G. Takaoka08a6f2a2011-06-15 11:49:57 +0900157 </attr>
Tadashi G. Takaokaa44685a2011-12-15 16:38:17 +0900158 <attr name="colorValidTypedWord" format="color" />
Tadashi G. Takaoka08a6f2a2011-06-15 11:49:57 +0900159 <attr name="colorTypedWord" format="color" />
160 <attr name="colorAutoCorrect" format="color" />
161 <attr name="colorSuggested" format="color" />
Tadashi G. Takaokaef2bfad2012-08-28 13:10:03 +0900162 <attr name="alphaValidTypedWord" format="fraction" />
163 <attr name="alphaTypedWord" format="fraction" />
164 <attr name="alphaAutoCorrect" format="fraction" />
165 <attr name="alphaSuggested" format="fraction" />
166 <attr name="alphaObsoleted" format="fraction" />
Tadashi G. Takaoka913e2ae2011-09-01 14:54:28 +0900167 <attr name="suggestionsCountInStrip" format="integer" />
Tadashi G. Takaokaef2bfad2012-08-28 13:10:03 +0900168 <attr name="centerSuggestionPercentile" format="fraction" />
Tadashi G. Takaoka96760382011-09-05 17:22:34 +0900169 <attr name="maxMoreSuggestionsRow" format="integer" />
170 <attr name="minMoreSuggestionsWidth" format="float" />
Tadashi G. Takaoka08a6f2a2011-06-15 11:49:57 +0900171 </declare-styleable>
172
Tadashi G. Takaoka5a309f52010-12-02 18:46:21 +0900173 <declare-styleable name="Keyboard">
Tadashi G. Takaoka5c269222011-09-30 21:12:20 +0900174 <attr name="themeId" format="integer" />
175 <!-- Touch position correction -->
176 <attr name="touchPositionCorrectionData" format="reference" />
Tadashi G. Takaoka9f01ed52010-12-08 14:36:41 +0900177 <!-- Default keyboard height -->
Tadashi G. Takaokaea0c5672011-09-05 18:58:30 +0900178 <attr name="keyboardHeight" format="dimension|fraction" />
Tadashi G. Takaoka9f01ed52010-12-08 14:36:41 +0900179 <!-- Maximum keyboard height, in pixels or percentage of display height -->
180 <attr name="maxKeyboardHeight" format="dimension|fraction" />
Tadashi G. Takaokaff483e82011-05-12 14:49:18 +0900181 <!-- Minimum keyboard height represented in pixels, percentage of display height if fraction
182 is positive, or percentage of display width if fraction is negative. -->
183 <attr name="minKeyboardHeight" format="dimension|fraction" />
Tadashi G. Takaoka287f4f82011-09-26 11:26:38 +0900184 <!-- Keyboard top, bottom, both horizontal edges paddings. -->
Tadashi G. Takaokaea0c5672011-09-05 18:58:30 +0900185 <attr name="keyboardTopPadding" format="dimension|fraction" />
186 <attr name="keyboardBottomPadding" format="dimension|fraction" />
Tadashi G. Takaoka287f4f82011-09-26 11:26:38 +0900187 <attr name="keyboardHorizontalEdgesPadding" format="dimension|fraction" />
Tadashi G. Takaoka9f01ed52010-12-08 14:36:41 +0900188 <!-- Default height of a row (key height + vertical gap), in pixels or percentage of
189 keyboard height. -->
190 <attr name="rowHeight" format="dimension|fraction" />
Tadashi G. Takaokae0c965d2012-03-23 17:06:18 +0900191 <!-- Default horizontal gap between keys, in pixels or percentage of keyboard width. -->
satok4fc510a2010-10-01 19:40:44 +0900192 <attr name="horizontalGap" format="dimension|fraction" />
Tadashi G. Takaokae0c965d2012-03-23 17:06:18 +0900193 <!-- Default vertical gap between rows of keys, in pixels or percentage of keyboard
194 height. -->
satok4fc510a2010-10-01 19:40:44 +0900195 <attr name="verticalGap" format="dimension|fraction" />
Tadashi G. Takaoka9d5601e2011-08-31 15:26:32 +0900196 <!-- More keys keyboard layout template -->
197 <attr name="moreKeysTemplate" format="reference" />
Tadashi G. Takaokacf41aff2012-04-20 06:24:51 +0900198 <!-- Icon set for key top and key preview.
199 These should be aligned with KeyboardIconsSet.NAMES_AND_ATTR_IDS[] -->
Tadashi G. Takaokac2a21782011-06-21 23:38:42 +0900200 <attr name="iconShiftKey" format="reference" />
Tadashi G. Takaokac2a21782011-06-21 23:38:42 +0900201 <attr name="iconDeleteKey" format="reference" />
202 <attr name="iconSettingsKey" format="reference" />
Tadashi G. Takaokac2a21782011-06-21 23:38:42 +0900203 <attr name="iconSpaceKey" format="reference" />
Tadashi G. Takaokacf41aff2012-04-20 06:24:51 +0900204 <attr name="iconEnterKey" format="reference" />
Tadashi G. Takaokac2a21782011-06-21 23:38:42 +0900205 <attr name="iconSearchKey" format="reference" />
206 <attr name="iconTabKey" format="reference" />
Tadashi G. Takaoka62d4a962011-08-02 21:29:24 -0700207 <attr name="iconShortcutKey" format="reference" />
208 <attr name="iconShortcutForLabel" format="reference" />
Tadashi G. Takaoka7bd714c2011-12-18 08:00:07 +0900209 <attr name="iconSpaceKeyForNumberLayout" format="reference" />
Tadashi G. Takaoka7bd714c2011-12-18 08:00:07 +0900210 <attr name="iconShiftKeyShifted" format="reference" />
Tadashi G. Takaokacf41aff2012-04-20 06:24:51 +0900211 <attr name="iconShortcutKeyDisabled" format="reference" />
212 <attr name="iconTabKeyPreview" format="reference" />
Tadashi G. Takaoka81d4e3c2012-02-17 17:46:01 -0800213 <attr name="iconLanguageSwitchKey" format="reference" />
Tadashi G. Takaoka39390d32012-03-23 19:14:32 +0900214 <attr name="iconZwnjKey" format="reference" />
215 <attr name="iconZwjKey" format="reference" />
satok4fc510a2010-10-01 19:40:44 +0900216 </declare-styleable>
217
Tadashi G. Takaoka5a309f52010-12-02 18:46:21 +0900218 <declare-styleable name="Keyboard_Key">
Tadashi G. Takaokaed3bac92012-04-09 17:48:32 +0900219 <!-- The unicode value that this key outputs.
220 Code value represented in hexadecimal prefixed with "0x" or code value reference using
221 "!code/<code_name>" notation. -->
222 <attr name="code" format="string" />
223 <!-- The alternate unicode value that this key outputs while typing.
224 Code value represented in hexadecimal prefixed with "0x" or code value reference using
225 "!code/<code_name>" notation. -->
226 <attr name="altCode" format="string" />
Tadashi G. Takaoka9d5601e2011-08-31 15:26:32 +0900227 <!-- The keys to display in the more keys keyboard. -->
228 <attr name="moreKeys" format="string" />
Tadashi G. Takaoka15c99e92012-01-30 11:14:45 +0900229 <!-- The keys to display in the more keys keyboard in addition to moreKeys.
230 The additional more keys are inserted at the '%' markers in the moreKeys if any.
231 They are inserted at the head of moreKeys if none.
232 If there are remaining entries of additionalMoreKeys even after all '%' markers have
233 been replaced, those remaining entries are appended at the end of moreKeys. -->
234 <attr name="additionalMoreKeys" format="string" />
Tadashi G. Takaoka9d5601e2011-08-31 15:26:32 +0900235 <!-- Maximum column of more keys keyboard -->
Tadashi G. Takaoka7a39bd42012-02-07 17:07:23 +0900236 <attr name="maxMoreKeysColumn" format="integer" />
Tadashi G. Takaoka7918ed02011-09-15 14:21:46 +0900237 <attr name="backgroundType" format="enum">
238 <!-- This should be aligned with Key.BACKGROUND_TYPE_* -->
239 <enum name="normal" value="0" />
240 <enum name="functional" value="1" />
Tadashi G. Takaokaa6d3a4d2011-09-15 16:13:04 +0900241 <enum name="action" value="2" />
Tadashi G. Takaokaca2f0512012-01-26 18:03:30 +0900242 <enum name="stickyOff" value="3" />
243 <enum name="stickyOn" value="4" />
Tadashi G. Takaoka7918ed02011-09-15 14:21:46 +0900244 </attr>
Tadashi G. Takaoka13d5f662011-11-21 19:55:38 -0800245 <!-- The key action flags. -->
246 <attr name="keyActionFlags" format="integer">
247 <!-- This should be aligned with Key.ACTION_FLAGS_* -->
248 <flag name="isRepeatable" value="0x01" />
249 <flag name="noKeyPreview" value="0x02" />
Tadashi G. Takaoka2013bab2011-11-30 17:54:58 +0900250 <flag name="altCodeWhileTyping" value="0x04" />
Tadashi G. Takaokaa5c96f32012-02-01 15:07:25 +0900251 <flag name="enableLongPress" value="0x08" />
Tadashi G. Takaoka13d5f662011-11-21 19:55:38 -0800252 </attr>
satok4fc510a2010-10-01 19:40:44 +0900253 <!-- The string of characters to output when this key is pressed. -->
254 <attr name="keyOutputText" format="string" />
255 <!-- The label to display on the key. -->
256 <attr name="keyLabel" format="string" />
Tadashi G. Takaoka520a2972011-06-25 19:38:55 +0900257 <!-- The hint label to display on the key in conjunction with the label. -->
258 <attr name="keyHintLabel" format="string" />
Tadashi G. Takaoka13d5f662011-11-21 19:55:38 -0800259 <!-- The key label flags. -->
260 <attr name="keyLabelFlags" format="integer">
261 <!-- This should be aligned with Key.LABEL_FLAGS__* -->
Tadashi G. Takaokab7758d62011-06-15 13:38:58 +0900262 <flag name="alignLeft" value="0x01" />
263 <flag name="alignRight" value="0x02" />
Tadashi G. Takaoka520a2972011-06-25 19:38:55 +0900264 <flag name="alignLeftOfCenter" value="0x08" />
Tadashi G. Takaokaab0d0d82012-04-11 12:34:30 +0900265 <flag name="fontNormal" value="0x10" />
266 <flag name="fontMonoSpace" value="0x20" />
267 <flag name="followKeyLargeLetterRatio" value="0x40" />
Tadashi G. Takaoka520a2972011-06-25 19:38:55 +0900268 <flag name="followKeyLetterRatio" value="0x80" />
Tadashi G. Takaokaab0d0d82012-04-11 12:34:30 +0900269 <flag name="followKeyLabelRatio" value="0xC0" />
Tadashi G. Takaokaa08759f2012-05-17 19:30:38 +0900270 <flag name="followKeyLargeLabelRatio" value="0x100" />
271 <flag name="followKeyHintLabelRatio" value="0x140" />
Tadashi G. Takaoka520a2972011-06-25 19:38:55 +0900272 <flag name="hasPopupHint" value="0x200" />
Tadashi G. Takaokaca2f0512012-01-26 18:03:30 +0900273 <flag name="hasShiftedLetterHint" value="0x400" />
Tadashi G. Takaoka520a2972011-06-25 19:38:55 +0900274 <flag name="hasHintLabel" value="0x800" />
Tadashi G. Takaoka62d4a962011-08-02 21:29:24 -0700275 <flag name="withIconLeft" value="0x1000" />
276 <flag name="withIconRight" value="0x2000" />
Tadashi G. Takaoka4486d772011-09-12 16:29:24 +0900277 <flag name="autoXScale" value="0x4000" />
Tadashi G. Takaoka09f8b122012-01-25 19:43:13 +0900278 <!-- If true, character case of code, altCode, moreKeys, keyOutputText, keyLabel,
279 or keyHintLabel will never be subject to change. -->
280 <flag name="preserveCase" value="0x8000" />
Tadashi G. Takaokaca2f0512012-01-26 18:03:30 +0900281 <!-- If true, use keyShiftedLetterHintActivatedColor for the shifted letter hint and
282 keyTextInactivatedColor for the primary key top label. -->
283 <flag name="shiftedLetterActivated" value="0x10000" />
Tadashi G. Takaoka7a39bd42012-02-07 17:07:23 +0900284 <!-- If true, use EditorInfo.actionLabel for the key label. -->
285 <flag name="fromCustomActionLabel" value="0x20000" />
Tadashi G. Takaokab03529a2012-03-12 16:30:59 +0900286 <!-- If true, disable keyHintLabel. -->
287 <flag name="disableKeyHintLabel" value="0x40000000" />
288 <!-- If true, disable additionalMoreKeys. -->
289 <flag name="disableAdditionalMoreKeys" value="0x80000000" />
Tadashi G. Takaokacd39f2a2010-11-20 08:03:24 -0800290 </attr>
satok4fc510a2010-10-01 19:40:44 +0900291 <!-- The icon to display on the key instead of the label. -->
Tadashi G. Takaokacf41aff2012-04-20 06:24:51 +0900292 <attr name="keyIcon" format="string" />
Tadashi G. Takaoka42fcb2d2011-12-19 01:11:09 +0900293 <!-- The icon for disabled key -->
Tadashi G. Takaokacf41aff2012-04-20 06:24:51 +0900294 <attr name="keyIconDisabled" format="string" />
Tadashi G. Takaokac2a21782011-06-21 23:38:42 +0900295 <!-- The icon to show in the popup preview. -->
Tadashi G. Takaokacf41aff2012-04-20 06:24:51 +0900296 <attr name="keyIconPreview" format="string" />
Tadashi G. Takaoka0b60f832010-11-19 14:57:24 -0800297 <!-- The key style to specify a set of key attributes defined by <key_style/> -->
298 <attr name="keyStyle" format="string" />
Tadashi G. Takaoka56abeab2011-04-11 11:30:15 +0900299 <!-- Visual insets -->
300 <attr name="visualInsetsLeft" format="dimension|fraction" />
301 <attr name="visualInsetsRight" format="dimension|fraction" />
Tadashi G. Takaoka287f4f82011-09-26 11:26:38 +0900302 <!-- Width of the key, in pixels or percentage of display width.
303 If the value is fillRight, the actual key width will be determined to fill out the area
Tadashi G. Takaoka30236ef2012-05-14 19:17:09 +0900304 up to the right edge of the keyboard. -->
Tadashi G. Takaoka287f4f82011-09-26 11:26:38 +0900305 <!-- This should be aligned with KeyboardBuilder.Row.KEYWIDTH_* -->
306 <attr name="keyWidth" format="dimension|fraction|enum">
307 <enum name="fillRight" value="-1" />
Tadashi G. Takaoka287f4f82011-09-26 11:26:38 +0900308 </attr>
Tadashi G. Takaoka327763e2011-05-30 20:05:50 +0900309 <!-- The X-coordinate of upper right corner of this key including horizontal gap.
310 If the value is negative, the origin is the right edge of the keyboard. -->
311 <attr name="keyXPos" format="dimension|fraction" />
Tadashi G. Takaoka749cc182012-08-30 16:05:40 +0900312
313 <!-- Key top visual attributes -->
314 <attr name="keyTypeface" format="enum">
315 <!-- This should be aligned with Typeface.NORMAL etc. -->
316 <enum name="normal" value="0" />
317 <enum name="bold" value="1" />
318 <enum name="italic" value="2" />
319 <enum name="boldItalic" value="3" />
320 </attr>
321 <!-- Size of the text for one letter keys. If specified as fraction, the text size is
322 measured in the proportion of key height. -->
323 <attr name="keyLetterSize" format="dimension|fraction" />
324 <!-- Size of the text for keys with multiple letters. If specified as fraction, the text
325 size is measured in the proportion of key height. -->
326 <attr name="keyLabelSize" format="dimension|fraction" />
327 <!-- Large size of the text for one letter keys, in the proportion of key height. -->
328 <attr name="keyLargeLetterRatio" format="fraction" />
329 <!-- Large size of the text for keys with multiple letters, in the proportion of key height. -->
330 <attr name="keyLargeLabelRatio" format="fraction" />
331 <!-- Size of the text for hint letter (= one character hint label), in the proportion of
332 key height. -->
333 <attr name="keyHintLetterRatio" format="fraction" />
334 <!-- Size of the text for hint label, in the proportion of key height. -->
335 <attr name="keyHintLabelRatio" format="fraction" />
336 <!-- Size of the text for shifted letter hint, in the proportion of key height. -->
Tadashi G. Takaoka71b52a82012-08-31 10:09:43 +0900337 <attr name="keyShiftedLetterHintRatio" format="fraction" />
Tadashi G. Takaoka749cc182012-08-30 16:05:40 +0900338 <!-- Color to use for the label in a key. -->
339 <attr name="keyTextColor" format="color" />
340 <attr name="keyTextShadowColor" format="color" />
Tadashi G. Takaoka749cc182012-08-30 16:05:40 +0900341 <!-- Color to use for the label in a key when in inactivated state. -->
342 <attr name="keyTextInactivatedColor" format="color" />
343 <!-- Key hint letter (= one character hint label) color -->
344 <attr name="keyHintLetterColor" format="color" />
345 <!-- Key hint label color -->
346 <attr name="keyHintLabelColor" format="color" />
347 <!-- Shifted letter hint colors -->
348 <attr name="keyShiftedLetterHintInactivatedColor" format="color" />
349 <attr name="keyShiftedLetterHintActivatedColor" format="color" />
350
351 <!-- Key preview visual parameters -->
352 <!-- The text color for key press feedback. -->
353 <attr name="keyPreviewTextColor" format="color" />
354 <!-- Size of the text for key press feedback popup, in the proportion of key height. -->
355 <attr name="keyPreviewTextRatio" format="fraction" />
satok4fc510a2010-10-01 19:40:44 +0900356 </declare-styleable>
357
Tadashi G. Takaoka5a309f52010-12-02 18:46:21 +0900358 <declare-styleable name="Keyboard_Include">
Tadashi G. Takaokad6635552010-10-07 17:13:30 +0900359 <attr name="keyboardLayout" format="reference" />
360 </declare-styleable>
Tadashi G. Takaokab0465112010-11-11 15:28:14 -0800361
Tadashi G. Takaoka5a309f52010-12-02 18:46:21 +0900362 <declare-styleable name="Keyboard_Case">
Tadashi G. Takaoka11d9ee72012-04-04 14:30:42 +0900363 <!-- This should be aligned with KeyboardLayoutSet_Element's elementName. -->
364 <attr name="keyboardLayoutSetElement" format="enum|string">
Tadashi G. Takaoka83306b92012-01-25 13:14:59 +0900365 <enum name="alphabet" value="0" />
366 <enum name="alphabetManualShifted" value="1" />
367 <enum name="alphabetAutomaticShifted" value="2" />
368 <enum name="alphabetShiftLocked" value="3" />
369 <enum name="alphabetShiftLockShifted" value="4" />
370 <enum name="symbols" value="5" />
371 <enum name="symbolsShifted" value="6" />
372 <enum name="phone" value="7" />
Tadashi G. Takaokaa5c96f32012-02-01 15:07:25 +0900373 <enum name="phoneSymbols" value="8" />
Tadashi G. Takaoka83306b92012-01-25 13:14:59 +0900374 <enum name="number" value="9" />
375 </attr>
Tadashi G. Takaoka5a309f52010-12-02 18:46:21 +0900376 <!-- This should be aligned with KeyboardId.MODE_* -->
Tadashi G. Takaoka58592052011-06-03 02:18:57 +0900377 <attr name="mode" format="enum|string">
Tadashi G. Takaokacd39f2a2010-11-20 08:03:24 -0800378 <enum name="text" value="0" />
379 <enum name="url" value="1" />
380 <enum name="email" value="2" />
381 <enum name="im" value="3" />
Tadashi G. Takaoka9e2d8102011-05-27 21:41:13 +0900382 <enum name="phone" value="4" />
383 <enum name="number" value="5" />
Tadashi G. Takaoka1d8196c2010-11-19 14:57:24 -0800384 </attr>
Tadashi G. Takaoka05bfd182012-02-16 23:14:14 -0800385 <attr name="navigateNext" format="boolean" />
386 <attr name="navigatePrevious" format="boolean" />
Tadashi G. Takaoka4b13b4f2011-02-20 12:54:14 +0900387 <attr name="passwordInput" format="boolean" />
Tadashi G. Takaokacd96a692011-06-23 21:55:56 +0900388 <attr name="clobberSettingsKey" format="boolean" />
Tadashi G. Takaokac3afe2c2011-07-31 18:34:54 -0700389 <attr name="shortcutKeyEnabled" format="boolean" />
390 <attr name="hasShortcutKey" format="boolean" />
Tadashi G. Takaoka81d4e3c2012-02-17 17:46:01 -0800391 <attr name="languageSwitchKeyEnabled" format="boolean" />
Tadashi G. Takaoka7a39bd42012-02-07 17:07:23 +0900392 <attr name="isMultiLine" format="boolean" />
Tadashi G. Takaoka58592052011-06-03 02:18:57 +0900393 <attr name="imeAction" format="enum">
Tadashi G. Takaoka6624fd82010-11-19 16:04:52 -0800394 <!-- This should be aligned with EditorInfo.IME_ACTION_* -->
Tadashi G. Takaoka58592052011-06-03 02:18:57 +0900395 <enum name="actionUnspecified" value="0" />
396 <enum name="actionNone" value="1" />
397 <enum name="actionGo" value="2" />
398 <enum name="actionSearch" value="3" />
399 <enum name="actionSend" value="4" />
400 <enum name="actionNext" value="5" />
401 <enum name="actionDone" value="6" />
402 <enum name="actionPrevious" value="7" />
Tadashi G. Takaoka7a39bd42012-02-07 17:07:23 +0900403 <!-- This should be aligned with KeyboardId.IME_ACTION_* -->
404 <enum name="actionCustomLabel" value="0x100" />
Tadashi G. Takaoka6624fd82010-11-19 16:04:52 -0800405 </attr>
Tadashi G. Takaoka58592052011-06-03 02:18:57 +0900406 <attr name="localeCode" format="string" />
Tadashi G. Takaokaea6c2e32011-02-18 15:33:44 +0900407 <attr name="languageCode" format="string" />
Tadashi G. Takaoka912ade32011-02-23 17:09:24 +0900408 <attr name="countryCode" format="string" />
Tadashi G. Takaokab0465112010-11-11 15:28:14 -0800409 </declare-styleable>
Tadashi G. Takaoka0b60f832010-11-19 14:57:24 -0800410
Tadashi G. Takaoka5a309f52010-12-02 18:46:21 +0900411 <declare-styleable name="Keyboard_KeyStyle">
Tadashi G. Takaoka0b60f832010-11-19 14:57:24 -0800412 <attr name="styleName" format="string" />
413 <attr name="parentStyle" format="string" />
414 </declare-styleable>
Tadashi G. Takaokaa6196732011-06-16 17:20:29 +0900415
Tadashi G. Takaoka11d9ee72012-04-04 14:30:42 +0900416 <declare-styleable name="KeyboardLayoutSet_Element">
Tadashi G. Takaokaf86109c2011-12-13 17:30:51 +0900417 <!-- This should be aligned with KeyboardId.ELEMENT_* -->
418 <attr name="elementName" format="enum">
Tadashi G. Takaoka117c1242012-01-24 18:03:50 +0900419 <enum name="alphabet" value="0" />
420 <enum name="alphabetManualShifted" value="1" />
421 <enum name="alphabetAutomaticShifted" value="2" />
422 <enum name="alphabetShiftLocked" value="3" />
423 <enum name="alphabetShiftLockShifted" value="4" />
424 <enum name="symbols" value="5" />
425 <enum name="symbolsShifted" value="6" />
426 <enum name="phone" value="7" />
Tadashi G. Takaokaa5c96f32012-02-01 15:07:25 +0900427 <enum name="phoneSymbols" value="8" />
Tadashi G. Takaoka117c1242012-01-24 18:03:50 +0900428 <enum name="number" value="9" />
Tadashi G. Takaokaf86109c2011-12-13 17:30:51 +0900429 </attr>
Tadashi G. Takaoka117c1242012-01-24 18:03:50 +0900430 <attr name="elementKeyboard" format="reference"/>
Tadashi G. Takaoka8dcad2e2012-03-28 17:33:25 +0900431 <!-- Enable proximity characters correction. Disabled by default. -->
432 <attr name="enableProximityCharsCorrection" format="boolean" />
Tadashi G. Takaokaf86109c2011-12-13 17:30:51 +0900433 </declare-styleable>
satok979f8692010-08-20 14:35:02 +0900434</resources>