attrs.xml revision aca2ef85e1af82ccadbd0cbdd691a680a03a824d
1<?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<resources>
22    <declare-styleable name="KeyboardTheme">
23        <!-- Keyboard style -->
24        <attr name="keyboardStyle" format="reference" />
25        <!-- KeyboardView style -->
26        <attr name="keyboardViewStyle" format="reference" />
27        <!-- MainKeyboardView style -->
28        <attr name="mainKeyboardViewStyle" format="reference" />
29        <!-- EmojiPalettesView style -->
30        <attr name="emojiPalettesViewStyle" format="reference" />
31        <!-- MoreKeysKeyboard style -->
32        <attr name="moreKeysKeyboardStyle" format="reference" />
33        <!-- MoreKeysKeyboardView style -->
34        <attr name="moreKeysKeyboardViewStyle" format="reference" />
35        <!-- Suggestions strip style -->
36        <attr name="suggestionStripViewStyle" format="reference" />
37        <!-- Suggestion word style -->
38        <attr name="suggestionWordStyle" format="reference" />
39    </declare-styleable>
40
41    <declare-styleable name="KeyboardView">
42        <!-- Background image for the key. This image needs to be a {@link StateListDrawable},
43             with the following possible states: normal, pressed, checkable, checkable+pressed,
44             checkable+checked, checkable+checked+pressed. -->
45        <attr name="keyBackground" format="reference" />
46        <!-- Background image for the functional key. This image needs to be a
47             {@link StateListDrawable}, with the following possible states: normal, pressed. -->
48        <attr name="functionalKeyBackground" format="reference" />
49        <!-- Background image for the spacebar.  This image needs to be a
50             {@link StateListDrawable}, with the following possible states: normal, pressed. -->
51        <attr name="spacebarBackground" format="reference" />
52        <attr name="spacebarIconWidthRatio" format="float" />
53        <!-- Horizontal padding of left/right aligned key label to the edge of the key. -->
54        <attr name="keyLabelHorizontalPadding" format="dimension" />
55        <!-- Right padding of hint letter to the edge of the key.-->
56        <attr name="keyHintLetterPadding" format="dimension" />
57        <!-- Bottom padding of popup hint letter "..." to the edge of the key.-->
58        <attr name="keyPopupHintLetterPadding" format="dimension" />
59        <!-- Right padding of shifted letter hint to the edge of the key.-->
60        <attr name="keyShiftedLetterHintPadding" format="dimension" />
61        <!-- Blur radius of key text shadow. -->
62        <attr name="keyTextShadowRadius" format="float" />
63
64        <!-- Key preview background states -->
65        <attr name="state_left_edge" format="boolean" />
66        <attr name="state_right_edge" format="boolean" />
67        <attr name="state_has_morekeys" format="boolean" />
68
69        <!-- Amount to offset the touch Y coordinate by, for bias correction. -->
70        <attr name="verticalCorrection" format="dimension" />
71    </declare-styleable>
72
73    <declare-styleable name="MainKeyboardView">
74        <!-- Size of the text for spacebar language label, in the proportion of key height. -->
75        <attr name="languageOnSpacebarTextRatio" format="fraction" />
76        <attr name="languageOnSpacebarTextColor" format="color" />
77        <attr name="languageOnSpacebarTextShadowRadius" format="float" />
78        <attr name="languageOnSpacebarTextShadowColor" format="color" />
79        <!-- Fadeout animator for spacebar language label. -->
80        <attr name="languageOnSpacebarFinalAlpha" format="integer" />
81        <attr name="languageOnSpacebarFadeoutAnimator" format="reference" />
82        <!-- Fadeout and fadein animator for altCodeWhileTyping keys. -->
83        <attr name="altCodeKeyWhileTypingFadeoutAnimator" format="reference" />
84        <attr name="altCodeKeyWhileTypingFadeinAnimator" format="reference" />
85        <!-- Key detection hysteresis distance. -->
86        <attr name="keyHysteresisDistance" format="dimension" />
87        <!-- Key detection hysteresis distance for shift/symbols sliding input. -->
88        <attr name="keyHysteresisDistanceForSlidingModifier" format="dimension" />
89        <!-- Touch noise threshold time in millisecond -->
90        <attr name="touchNoiseThresholdTime" format="integer" />
91        <!-- Touch noise threshold distance in millimeter -->
92        <attr name="touchNoiseThresholdDistance" format="dimension" />
93        <!-- Enable key selection by dragging finger -->
94        <attr name="keySelectionByDraggingFinger" format="boolean" />
95        <attr name="slidingKeyInputPreviewColor" format="color" />
96        <attr name="slidingKeyInputPreviewWidth" format="dimension" />
97        <attr name="slidingKeyInputPreviewBodyRatio" format="integer" />
98        <attr name="slidingKeyInputPreviewShadowRatio" format="integer" />
99        <!-- Key repeat start timeout -->
100        <attr name="keyRepeatStartTimeout" format="integer" />
101        <!-- Key repeat interval in millisecond. -->
102        <attr name="keyRepeatInterval" format="integer" />
103        <!-- Long press timeout of shift key to shift lock in millisecond. -->
104        <attr name="longPressShiftLockTimeout" format="integer" />
105        <!-- Ignore special key timeout while typing in millisecond. -->
106        <attr name="ignoreAltCodeKeyTimeout" format="integer" />
107        <!-- Background resource for key press feedback.-->
108        <attr name="keyPreviewBackground" format="reference" />
109        <!-- Vertical offset of the key press feedback from the key. -->
110        <attr name="keyPreviewOffset" format="dimension" />
111        <!-- Height of the key press feedback popup. -->
112        <attr name="keyPreviewHeight" format="dimension" />
113        <!-- TODO: consolidate key preview linger timeout with the key preview animation parameters. -->
114        <!-- Delay after key releasing and key press feedback dismissing in millisecond -->
115        <attr name="keyPreviewLingerTimeout" format="integer" />
116        <!-- Layout resource for more keys keyboard -->
117        <attr name="moreKeysKeyboardLayout" format="reference" />
118        <attr name="backgroundDimAlpha" format="integer" />
119        <!-- More keys keyboard will shown at touched point. -->
120        <attr name="showMoreKeysKeyboardAtTouchedPoint" format="boolean" />
121        <!-- Minimum distance between gesture trail sampling points. -->
122        <attr name="gestureTrailMinSamplingDistance" format="dimension" />
123        <!-- Maximum angular threshold between gesture trail interpolation segments in degree. -->
124        <attr name="gestureTrailMaxInterpolationAngularThreshold" format="integer" />
125        <!-- Maximum distance threshold between gesture trail interpolation segments. -->
126        <attr name="gestureTrailMaxInterpolationDistanceThreshold" format="dimension" />
127        <!-- Maximum number of gesture trail interpolation segments. -->
128        <attr name="gestureTrailMaxInterpolationSegments" format="integer" />
129        <!-- Delay after gesture trail starts fading out in millisecond. -->
130        <attr name="gestureTrailFadeoutStartDelay" format="integer" />
131        <!-- Duration while gesture trail is fading out in millisecond. -->
132        <attr name="gestureTrailFadeoutDuration" format="integer" />
133        <!-- Interval of updating gesture trail in millisecond. -->
134        <attr name="gestureTrailUpdateInterval" format="integer" />
135        <attr name="gestureTrailColor" format="color" />
136        <attr name="gestureTrailStartWidth" format="dimension" />
137        <attr name="gestureTrailEndWidth" format="dimension" />
138        <attr name="gestureTrailBodyRatio" format="integer" />
139        <attr name="gestureTrailShadowRatio" format="integer" />
140        <!-- Delay after gesture input and gesture floating preview text dismissing in millisecond -->
141        <attr name="gestureFloatingPreviewTextLingerTimeout" format="integer" />
142        <!-- Attributes for GestureFloatingPreviewText -->
143        <attr name="gestureFloatingPreviewTextSize" format="dimension" />
144        <attr name="gestureFloatingPreviewTextColor" format="color" />
145        <attr name="gestureFloatingPreviewTextOffset" format="dimension" />
146        <attr name="gestureFloatingPreviewColor" format="color" />
147        <attr name="gestureFloatingPreviewHorizontalPadding" format="dimension" />
148        <attr name="gestureFloatingPreviewVerticalPadding" format="dimension" />
149        <attr name="gestureFloatingPreviewRoundRadius" format="dimension" />
150        <!-- Static threshold for gesture after fast typing (msec) -->
151        <attr name="gestureStaticTimeThresholdAfterFastTyping" format="integer" />
152        <!-- Static threshold for starting gesture detection (keyWidth%/sec) -->
153        <attr name="gestureDetectFastMoveSpeedThreshold" format="fraction" />
154        <!-- Dynamic threshold for gesture after fast typing (msec) -->
155        <attr name="gestureDynamicThresholdDecayDuration" format="integer" />
156        <!-- Time based threshold values for gesture detection (msec) -->
157        <attr name="gestureDynamicTimeThresholdFrom" format="integer" />
158        <attr name="gestureDynamicTimeThresholdTo" format="integer" />
159        <!-- Distance based threshold values for gesture detection (keyWidth%/sec) -->
160        <attr name="gestureDynamicDistanceThresholdFrom" format="fraction" />
161        <attr name="gestureDynamicDistanceThresholdTo" format="fraction" />
162        <!-- Parameter for gesture sampling (keyWidth%/sec) -->
163        <attr name="gestureSamplingMinimumDistance" format="fraction" />
164        <!-- Parameters for gesture recognition (msec) and (keyWidth%/sec) -->
165        <attr name="gestureRecognitionMinimumTime" format="integer" />
166        <attr name="gestureRecognitionUpdateTime" format="integer" />
167        <attr name="gestureRecognitionSpeedThreshold" format="fraction" />
168        <!-- Suppress showing key preview duration after batch input in millisecond -->
169        <attr name="suppressKeyPreviewAfterBatchInputDuration" format="integer" />
170    </declare-styleable>
171
172    <declare-styleable name="EmojiPalettesView">
173        <attr name="categoryIndicatorEnabled" format="boolean" />
174        <attr name="categoryIndicatorDrawable" format="reference" />
175        <attr name="categoryIndicatorBackground" format="reference" />
176        <attr name="categoryPageIndicatorColor" format="color" />
177        <attr name="categoryPageIndicatorBackground" format="color" />
178        <attr name="iconEmojiRecentsTab" format="reference" />
179        <attr name="iconEmojiCategory1Tab" format="reference" />
180        <attr name="iconEmojiCategory2Tab" format="reference" />
181        <attr name="iconEmojiCategory3Tab" format="reference" />
182        <attr name="iconEmojiCategory4Tab" format="reference" />
183        <attr name="iconEmojiCategory5Tab" format="reference" />
184        <attr name="iconEmojiCategory6Tab" format="reference" />
185    </declare-styleable>
186
187    <declare-styleable name="SuggestionStripView">
188        <attr name="suggestionStripOptions" format="integer">
189            <!-- This should be aligned with SuggestionStripLayoutHelper.AUTO_CORRECT_* and etc. -->
190            <flag name="autoCorrectBold" value="0x01" />
191            <flag name="autoCorrectUnderline" value="0x02" />
192            <flag name="validTypedWordBold" value="0x04" />
193        </attr>
194        <attr name="colorValidTypedWord" format="color" />
195        <attr name="colorTypedWord" format="color" />
196        <attr name="colorAutoCorrect" format="color" />
197        <attr name="colorSuggested" format="color" />
198        <attr name="alphaObsoleted" format="fraction" />
199        <attr name="suggestionsCountInStrip" format="integer" />
200        <attr name="centerSuggestionPercentile" format="fraction" />
201        <attr name="maxMoreSuggestionsRow" format="integer" />
202        <attr name="minMoreSuggestionsWidth" format="float" />
203    </declare-styleable>
204
205    <declare-styleable name="Keyboard">
206        <attr name="themeId" format="integer" />
207        <!-- Touch position correction -->
208        <attr name="touchPositionCorrectionData" format="reference" />
209        <!-- Keyboard top, bottom, left, right edges paddings, in propotion of keyboard height. -->
210        <attr name="keyboardTopPadding" format="fraction" />
211        <attr name="keyboardBottomPadding" format="fraction" />
212        <attr name="keyboardLeftPadding" format="fraction" />
213        <attr name="keyboardRightPadding" format="fraction" />
214        <!-- Default height of a row (key height + vertical gap), in pixels or in the proportion of
215             keyboard height. -->
216        <attr name="rowHeight" format="dimension|fraction" />
217        <!-- Default horizontal gap between keys, in the proportion of keyboard width. -->
218        <attr name="horizontalGap" format="fraction" />
219        <!-- Default vertical gap between rows of keys, in the proportion of keyboard height. -->
220        <attr name="verticalGap" format="fraction" />
221        <!-- More keys keyboard layout template -->
222        <attr name="moreKeysTemplate" format="reference" />
223        <!-- Icon set for key top and key preview.
224             These should be aligned with KeyboardIconsSet.NAMES_AND_ATTR_IDS[] -->
225        <attr name="iconShiftKey" format="reference" />
226        <attr name="iconDeleteKey" format="reference" />
227        <attr name="iconSettingsKey" format="reference" />
228        <attr name="iconSpaceKey" format="reference" />
229        <attr name="iconEnterKey" format="reference" />
230        <attr name="iconGoKey" format="reference" />
231        <attr name="iconSearchKey" format="reference" />
232        <attr name="iconSendKey" format="reference" />
233        <attr name="iconNextKey" format="reference" />
234        <attr name="iconDoneKey" format="reference" />
235        <attr name="iconPreviousKey" format="reference" />
236        <attr name="iconTabKey" format="reference" />
237        <attr name="iconShortcutKey" format="reference" />
238        <attr name="iconSpaceKeyForNumberLayout" format="reference" />
239        <attr name="iconShiftKeyShifted" format="reference" />
240        <attr name="iconShortcutKeyDisabled" format="reference" />
241        <attr name="iconTabKeyPreview" format="reference" />
242        <attr name="iconLanguageSwitchKey" format="reference" />
243        <attr name="iconZwnjKey" format="reference" />
244        <attr name="iconZwjKey" format="reference" />
245        <attr name="iconImeKey" format="reference" />
246        <attr name="iconEmojiKey" format="reference" />
247    </declare-styleable>
248
249    <declare-styleable name="Keyboard_GridRows">
250        <attr name="codesArray" format="reference" />
251        <attr name="textsArray" format="reference" />
252    </declare-styleable>
253
254    <declare-styleable name="Keyboard_Key">
255        <!-- The alternate unicode value that this key outputs while typing.
256             Code value represented in hexadecimal prefixed with "0x" or code value reference using
257             "!code/<code_name>" notation. -->
258        <attr name="altCode" format="string" />
259        <!-- The keys to display in the more keys keyboard. -->
260        <attr name="moreKeys" format="string" />
261        <!-- The keys to display in the more keys keyboard in addition to moreKeys.
262             The additional more keys are inserted at the '%' markers in the moreKeys if any.
263             They are inserted at the head of moreKeys if none.
264             If there are remaining entries of additionalMoreKeys even after all '%' markers have
265             been replaced, those remaining entries are appended at the end of moreKeys. -->
266        <attr name="additionalMoreKeys" format="string" />
267        <!-- Maximum column of more keys keyboard -->
268        <attr name="maxMoreKeysColumn" format="integer" />
269        <attr name="backgroundType" format="enum">
270            <!-- This should be aligned with Key.BACKGROUND_TYPE_* -->
271            <enum name="empty" value="0" />
272            <enum name="normal" value="1" />
273            <enum name="functional" value="2" />
274            <enum name="action" value="3" />
275            <enum name="stickyOff" value="4" />
276            <enum name="stickyOn" value="5" />
277        </attr>
278        <!-- The key action flags. -->
279        <attr name="keyActionFlags" format="integer">
280            <!-- This should be aligned with Key.ACTION_FLAGS_* -->
281            <flag name="isRepeatable" value="0x01" />
282            <flag name="noKeyPreview" value="0x02" />
283            <flag name="altCodeWhileTyping" value="0x04" />
284            <flag name="enableLongPress" value="0x08" />
285        </attr>
286        <!-- The label, icon to display on the key. And code, outputText of the key. -->
287        <attr name="keySpec" format="string" />
288        <!-- The hint label to display on the key in conjunction with the label. -->
289        <attr name="keyHintLabel" format="string" />
290        <!-- The vertical adjustment of key hint label in proportion to its height. -->
291        <attr name="keyHintLabelVerticalAdjustment" format="fraction" />
292        <!-- The key label flags. -->
293        <attr name="keyLabelFlags" format="integer">
294            <!-- This should be aligned with Key.LABEL_FLAGS__* -->
295            <flag name="alignLeft" value="0x01" />
296            <flag name="alignRight" value="0x02" />
297            <flag name="alignButtom" value="0x04" />
298            <flag name="alignLeftOfCenter" value="0x08" />
299            <flag name="fontNormal" value="0x10" />
300            <flag name="fontMonoSpace" value="0x20" />
301            <flag name="followKeyLargeLetterRatio" value="0x40" />
302            <flag name="followKeyLetterRatio" value="0x80" />
303            <flag name="followKeyLabelRatio" value="0xC0" />
304            <flag name="followKeyLargeLabelRatio" value="0x100" />
305            <flag name="followKeyHintLabelRatio" value="0x140" />
306            <flag name="hasPopupHint" value="0x200" />
307            <flag name="hasShiftedLetterHint" value="0x400" />
308            <flag name="hasHintLabel" value="0x800" />
309            <!-- These two flags are currently unused. Leave these for possible future use. -->
310            <flag name="withIconLeft" value="0x1000" />
311            <flag name="withIconRight" value="0x2000" />
312            <flag name="autoXScale" value="0x4000" />
313            <!-- The autoScale value implies autoXScale bit on to optimize scaling code path. -->
314            <flag name="autoScale" value="0xc000" />
315            <!-- If true, character case of code, altCode, moreKeys, keyOutputText, keyLabel,
316                 or keyHintLabel will never be subject to change. -->
317            <flag name="preserveCase" value="0x10000" />
318            <!-- If true, use keyShiftedLetterHintActivatedColor for the shifted letter hint and
319                 keyTextInactivatedColor for the primary key top label. -->
320            <flag name="shiftedLetterActivated" value="0x20000" />
321            <!-- If true, use EditorInfo.actionLabel for the key label. -->
322            <flag name="fromCustomActionLabel" value="0x40000" />
323            <!-- If true, use functionalTextColor instead of ketTextColor to drawing the label on
324                 the key -->
325            <flag name="followFunctionalTextColor" value="0x80000" />
326            <!-- If true, disable keyHintLabel. -->
327            <flag name="disableKeyHintLabel" value="0x40000000" />
328            <!-- If true, disable additionalMoreKeys. -->
329            <flag name="disableAdditionalMoreKeys" value="0x80000000" />
330        </attr>
331        <!-- The icon for disabled key -->
332        <attr name="keyIconDisabled" format="string" />
333        <!-- The icon to show in the popup preview. -->
334        <attr name="keyIconPreview" format="string" />
335        <!-- The key style to specify a set of key attributes defined by <key_style/> -->
336        <attr name="keyStyle" format="string" />
337        <!-- Visual insets, in the proportion of keyboard width. -->
338        <attr name="visualInsetsLeft" format="fraction" />
339        <attr name="visualInsetsRight" format="fraction" />
340        <!-- Width of the key, in the proportion of keyboard width.
341             If the value is fillRight, the actual key width will be determined to fill out the
342             area up to the right edge of the keyboard. -->
343        <!-- This should be aligned with KeyboardBuilder.Row.KEYWIDTH_* -->
344        <attr name="keyWidth" format="fraction|enum">
345            <enum name="fillRight" value="-1" />
346        </attr>
347        <!-- The X-coordinate of upper right corner of this key including horizontal gap, in the
348             proportion of keyboard width.
349             If the value is negative, the origin is the right edge of the keyboard. -->
350        <attr name="keyXPos" format="fraction" />
351
352        <!-- Key top visual attributes -->
353        <attr name="keyTypeface" format="enum">
354            <!-- This should be aligned with Typeface.NORMAL etc. -->
355            <enum name="normal" value="0" />
356            <enum name="bold" value="1" />
357            <enum name="italic" value="2" />
358            <enum name="boldItalic" value="3" />
359        </attr>
360        <!-- Size of the text for one letter keys. If specified as fraction, the text size is
361             measured in the proportion of key height. -->
362        <attr name="keyLetterSize" format="dimension|fraction" />
363        <!-- Size of the text for keys with multiple letters. If specified as fraction, the text
364             size is measured in the proportion of key height. -->
365        <attr name="keyLabelSize" format="dimension|fraction" />
366        <!-- Large size of the text for one letter keys, in the proportion of key height. -->
367        <attr name="keyLargeLetterRatio" format="fraction" />
368        <!-- Large size of the text for keys with multiple letters, in the proportion of key height. -->
369        <attr name="keyLargeLabelRatio" format="fraction" />
370        <!-- Size of the text for hint letter (= one character hint label), in the proportion of
371             key height. -->
372        <attr name="keyHintLetterRatio" format="fraction" />
373        <!-- Size of the text for hint label, in the proportion of key height. -->
374        <attr name="keyHintLabelRatio" format="fraction" />
375        <!-- Size of the text for shifted letter hint, in the proportion of key height. -->
376        <attr name="keyShiftedLetterHintRatio" format="fraction" />
377        <!-- Color to use for the label in a key. -->
378        <attr name="keyTextColor" format="color" />
379        <attr name="keyTextShadowColor" format="color" />
380        <!-- Color to use for the label in a key when in inactivated state. -->
381        <attr name="keyTextInactivatedColor" format="color" />
382        <!-- Color to use for the label in a key that has followFunctionalTextColor keyLabelFlags. -->
383        <attr name="functionalTextColor" format="color" />
384        <!-- Key hint letter (= one character hint label) color -->
385        <attr name="keyHintLetterColor" format="color" />
386        <!-- Key hint label color -->
387        <attr name="keyHintLabelColor" format="color" />
388        <!-- Shifted letter hint colors -->
389        <attr name="keyShiftedLetterHintInactivatedColor" format="color" />
390        <attr name="keyShiftedLetterHintActivatedColor" format="color" />
391
392        <!-- Key preview visual parameters -->
393        <!-- The text color for key press feedback. -->
394        <attr name="keyPreviewTextColor" format="color" />
395        <!-- Size of the text for key press feedback popup, in the proportion of key height. -->
396        <attr name="keyPreviewTextRatio" format="fraction" />
397    </declare-styleable>
398
399    <declare-styleable name="Keyboard_Include">
400        <attr name="keyboardLayout" format="reference" />
401    </declare-styleable>
402
403    <declare-styleable name="Keyboard_Case">
404        <attr name="keyboardLayoutSet" format="string" />
405        <!-- This should be aligned with KeyboardLayoutSet_Element's elementName. -->
406        <attr name="keyboardLayoutSetElement" format="enum|string">
407            <enum name="alphabet" value="0" />
408            <enum name="alphabetManualShifted" value="1" />
409            <enum name="alphabetAutomaticShifted" value="2" />
410            <enum name="alphabetShiftLocked" value="3" />
411            <enum name="alphabetShiftLockShifted" value="4" />
412            <enum name="symbols" value="5" />
413            <enum name="symbolsShifted" value="6"  />
414            <enum name="phone" value="7"  />
415            <enum name="phoneSymbols" value="8"  />
416            <enum name="number" value="9"  />
417            <enum name="emojiRecents" value="10" />
418            <enum name="emojiCategory1" value="11" />
419            <enum name="emojiCategory2" value="12" />
420            <enum name="emojiCategory3" value="13" />
421            <enum name="emojiCategory4" value="14" />
422            <enum name="emojiCategory5" value="15" />
423            <enum name="emojiCategory6" value="16" />
424        </attr>
425        <!-- This should be aligned with KeyboardId.MODE_* -->
426        <attr name="mode" format="enum|string">
427            <enum name="text" value="0" />
428            <enum name="url" value="1" />
429            <enum name="email" value="2" />
430            <enum name="im" value="3" />
431            <enum name="phone" value="4" />
432            <enum name="number" value="5" />
433        </attr>
434        <attr name="navigateNext" format="boolean" />
435        <attr name="navigatePrevious" format="boolean" />
436        <attr name="passwordInput" format="boolean" />
437        <attr name="clobberSettingsKey" format="boolean" />
438        <attr name="hasShortcutKey" format="boolean" />
439        <attr name="languageSwitchKeyEnabled" format="boolean" />
440        <attr name="isMultiLine" format="boolean" />
441        <attr name="imeAction" format="enum">
442            <!-- This should be aligned with EditorInfo.IME_ACTION_* -->
443            <enum name="actionUnspecified" value="0" />
444            <enum name="actionNone" value="1" />
445            <enum name="actionGo" value="2" />
446            <enum name="actionSearch" value="3" />
447            <enum name="actionSend" value="4" />
448            <enum name="actionNext" value="5" />
449            <enum name="actionDone" value="6" />
450            <enum name="actionPrevious" value="7" />
451            <!--  This should be aligned with KeyboardId.IME_ACTION_* -->
452            <enum name="actionCustomLabel" value="0x100" />
453        </attr>
454        <attr name="isIconDefined" format="string" />
455        <attr name="localeCode" format="string" />
456        <attr name="languageCode" format="string" />
457        <attr name="countryCode" format="string" />
458    </declare-styleable>
459
460    <declare-styleable name="Keyboard_KeyStyle">
461        <attr name="styleName" format="string" />
462        <attr name="parentStyle" format="string" />
463    </declare-styleable>
464
465    <declare-styleable name="KeyboardLayoutSet_Element">
466        <!-- This should be aligned with KeyboardId.ELEMENT_* -->
467        <attr name="elementName" format="enum">
468            <enum name="alphabet" value="0" />
469            <enum name="alphabetManualShifted" value="1" />
470            <enum name="alphabetAutomaticShifted" value="2" />
471            <enum name="alphabetShiftLocked" value="3" />
472            <enum name="alphabetShiftLockShifted" value="4" />
473            <enum name="symbols" value="5" />
474            <enum name="symbolsShifted" value="6"  />
475            <enum name="phone" value="7"  />
476            <enum name="phoneSymbols" value="8"  />
477            <enum name="number" value="9"  />
478            <enum name="emojiRecents" value="10" />
479            <enum name="emojiCategory1" value="11" />
480            <enum name="emojiCategory2" value="12" />
481            <enum name="emojiCategory3" value="13" />
482            <enum name="emojiCategory4" value="14" />
483            <enum name="emojiCategory5" value="15" />
484            <enum name="emojiCategory6" value="16" />
485        </attr>
486        <attr name="elementKeyboard" format="reference"/>
487        <!-- Enable proximity characters correction. Disabled by default. -->
488        <attr name="enableProximityCharsCorrection" format="boolean" />
489    </declare-styleable>
490
491    <declare-styleable name="KeyboardLayoutSet_Feature">
492        <!-- This should be aligned with ScriptUtils.SCRIPT_* -->
493        <attr name="supportedScript" format="enum">
494            <enum name="latin" value="0" />
495            <enum name="cyrillic" value="1" />
496            <enum name="greek" value="2" />
497            <enum name="arabic" value="3" />
498            <enum name="hebrew" value="4" />
499        </attr>
500    </declare-styleable>
501
502    <declare-styleable name="SeekBarDialogPreference">
503        <attr name="maxValue" format="integer" />
504        <attr name="minValue" format="integer" />
505        <attr name="stepValue" format="integer" />
506    </declare-styleable>
507</resources>
508