attrs.xml revision 017e9f7e7fa45add58af80165902843fe1e8dedb
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        <!-- Right padding of hint letter to the edge of the key.-->
54        <attr name="keyHintLetterPadding" format="dimension" />
55        <!-- Popup hint letter string-->
56        <attr name="keyPopupHintLetter" format="string" />
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="iconLanguageSwitchKey" format="reference" />
242        <attr name="iconZwnjKey" format="reference" />
243        <attr name="iconZwjKey" format="reference" />
244        <attr name="iconImeKey" format="reference" />
245        <attr name="iconEmojiKey" format="reference" />
246    </declare-styleable>
247
248    <declare-styleable name="Keyboard_GridRows">
249        <attr name="codesArray" format="reference" />
250        <attr name="textsArray" format="reference" />
251    </declare-styleable>
252
253    <declare-styleable name="Keyboard_Key">
254        <!-- The alternate unicode value that this key outputs while typing.
255             Code value represented in hexadecimal prefixed with "0x" or code value reference using
256             "!code/<code_name>" notation. -->
257        <attr name="altCode" format="string" />
258        <!-- The keys to display in the more keys keyboard. -->
259        <attr name="moreKeys" format="string" />
260        <!-- The keys to display in the more keys keyboard in addition to moreKeys.
261             The additional more keys are inserted at the '%' markers in the moreKeys if any.
262             They are inserted at the head of moreKeys if none.
263             If there are remaining entries of additionalMoreKeys even after all '%' markers have
264             been replaced, those remaining entries are appended at the end of moreKeys. -->
265        <attr name="additionalMoreKeys" format="string" />
266        <!-- Maximum column of more keys keyboard -->
267        <attr name="maxMoreKeysColumn" format="integer" />
268        <attr name="backgroundType" format="enum">
269            <!-- This should be aligned with Key.BACKGROUND_TYPE_* -->
270            <enum name="empty" value="0" />
271            <enum name="normal" value="1" />
272            <enum name="functional" value="2" />
273            <enum name="stickyOff" value="3" />
274            <enum name="stickyOn" value="4" />
275            <enum name="action" value="5" />
276            <enum name="customAction" value="6" />
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="alignLeftOfCenter" value="0x08" />
296            <flag name="fontNormal" value="0x10" />
297            <flag name="fontMonoSpace" value="0x20" />
298            <flag name="fontDefault" value="0x30" />
299            <flag name="followKeyLargeLetterRatio" value="0x40" />
300            <flag name="followKeyLetterRatio" value="0x80" />
301            <flag name="followKeyLabelRatio" value="0xC0" />
302            <flag name="followKeyLargeLabelRatio" value="0x100" />
303            <flag name="followKeyHintLabelRatio" value="0x140" />
304            <flag name="hasPopupHint" value="0x200" />
305            <flag name="hasShiftedLetterHint" value="0x400" />
306            <flag name="hasHintLabel" value="0x800" />
307            <flag name="autoXScale" value="0x4000" />
308            <!-- The autoScale value implies autoXScale bit on to optimize scaling code path. -->
309            <flag name="autoScale" value="0xc000" />
310            <!-- If true, character case of code, altCode, moreKeys, keyOutputText, keyLabel,
311                 or keyHintLabel will never be subject to change. -->
312            <flag name="preserveCase" value="0x10000" />
313            <!-- If true, use keyShiftedLetterHintActivatedColor for the shifted letter hint and
314                 keyTextInactivatedColor for the primary key top label. -->
315            <flag name="shiftedLetterActivated" value="0x20000" />
316            <!-- If true, use EditorInfo.actionLabel for the key label. -->
317            <flag name="fromCustomActionLabel" value="0x40000" />
318            <!-- If true, use functionalTextColor instead of ketTextColor to drawing the label on
319                 the key -->
320            <flag name="followFunctionalTextColor" value="0x80000" />
321            <!-- If true, disable keyHintLabel. -->
322            <flag name="disableKeyHintLabel" value="0x40000000" />
323            <!-- If true, disable additionalMoreKeys. -->
324            <flag name="disableAdditionalMoreKeys" value="0x80000000" />
325        </attr>
326        <!-- The icon for disabled key -->
327        <attr name="keyIconDisabled" format="string" />
328        <!-- The key style to specify a set of key attributes defined by <key_style/> -->
329        <attr name="keyStyle" format="string" />
330        <!-- Visual insets, in the proportion of keyboard width. -->
331        <attr name="visualInsetsLeft" format="fraction" />
332        <attr name="visualInsetsRight" format="fraction" />
333        <!-- Width of the key, in the proportion of keyboard width.
334             If the value is fillRight, the actual key width will be determined to fill out the
335             area up to the right edge of the keyboard. -->
336        <!-- This should be aligned with KeyboardBuilder.Row.KEYWIDTH_* -->
337        <attr name="keyWidth" format="fraction|enum">
338            <enum name="fillRight" value="-1" />
339        </attr>
340        <!-- The X-coordinate of upper right corner of this key including horizontal gap, in the
341             proportion of keyboard width.
342             If the value is negative, the origin is the right edge of the keyboard. -->
343        <attr name="keyXPos" format="fraction" />
344
345        <!-- Key top visual attributes -->
346        <attr name="keyTypeface" format="enum">
347            <!-- This should be aligned with Typeface.NORMAL etc. -->
348            <enum name="normal" value="0" />
349            <enum name="bold" value="1" />
350            <enum name="italic" value="2" />
351            <enum name="boldItalic" value="3" />
352        </attr>
353        <!-- Size of the text for one letter keys. If specified as fraction, the text size is
354             measured in the proportion of key height. -->
355        <attr name="keyLetterSize" format="dimension|fraction" />
356        <!-- Size of the text for keys with multiple letters. If specified as fraction, the text
357             size is measured in the proportion of key height. -->
358        <attr name="keyLabelSize" format="dimension|fraction" />
359        <!-- Large size of the text for one letter keys, in the proportion of key height. -->
360        <attr name="keyLargeLetterRatio" format="fraction" />
361        <!-- Large size of the text for keys with multiple letters, in the proportion of key height. -->
362        <attr name="keyLargeLabelRatio" format="fraction" />
363        <!-- Size of the text for hint letter (= one character hint label), in the proportion of
364             key height. -->
365        <attr name="keyHintLetterRatio" format="fraction" />
366        <!-- Size of the text for hint label, in the proportion of key height. -->
367        <attr name="keyHintLabelRatio" format="fraction" />
368        <!-- Size of the text for shifted letter hint, in the proportion of key height. -->
369        <attr name="keyShiftedLetterHintRatio" format="fraction" />
370        <!-- Color to use for the label in a key. -->
371        <attr name="keyTextColor" format="color" />
372        <attr name="keyTextShadowColor" format="color" />
373        <!-- Color to use for the label in a key when in inactivated state. -->
374        <attr name="keyTextInactivatedColor" format="color" />
375        <!-- Color to use for the label in a key that has followFunctionalTextColor keyLabelFlags. -->
376        <attr name="functionalTextColor" format="color" />
377        <!-- Key hint letter (= one character hint label) color -->
378        <attr name="keyHintLetterColor" format="color" />
379        <!-- Key hint label color -->
380        <attr name="keyHintLabelColor" format="color" />
381        <!-- Shifted letter hint colors -->
382        <attr name="keyShiftedLetterHintInactivatedColor" format="color" />
383        <attr name="keyShiftedLetterHintActivatedColor" format="color" />
384
385        <!-- Key preview visual parameters -->
386        <!-- The text color for key press feedback. -->
387        <attr name="keyPreviewTextColor" format="color" />
388        <!-- Size of the text for key press feedback popup, in the proportion of key height. -->
389        <attr name="keyPreviewTextRatio" format="fraction" />
390    </declare-styleable>
391
392    <declare-styleable name="Keyboard_Include">
393        <attr name="keyboardLayout" format="reference" />
394    </declare-styleable>
395
396    <declare-styleable name="Keyboard_Case">
397        <attr name="keyboardLayoutSet" format="string" />
398        <!-- This should be aligned with KeyboardLayoutSet_Element's elementName. -->
399        <attr name="keyboardLayoutSetElement" format="enum|string">
400            <enum name="alphabet" value="0" />
401            <enum name="alphabetManualShifted" value="1" />
402            <enum name="alphabetAutomaticShifted" value="2" />
403            <enum name="alphabetShiftLocked" value="3" />
404            <enum name="alphabetShiftLockShifted" value="4" />
405            <enum name="symbols" value="5" />
406            <enum name="symbolsShifted" value="6"  />
407            <enum name="phone" value="7"  />
408            <enum name="phoneSymbols" value="8"  />
409            <enum name="number" value="9"  />
410            <enum name="emojiRecents" value="10" />
411            <enum name="emojiCategory1" value="11" />
412            <enum name="emojiCategory2" value="12" />
413            <enum name="emojiCategory3" value="13" />
414            <enum name="emojiCategory4" value="14" />
415            <enum name="emojiCategory5" value="15" />
416            <enum name="emojiCategory6" value="16" />
417        </attr>
418        <!-- This should be aligned with KeyboardId.MODE_* -->
419        <attr name="mode" format="enum|string">
420            <enum name="text" value="0" />
421            <enum name="url" value="1" />
422            <enum name="email" value="2" />
423            <enum name="im" value="3" />
424            <enum name="phone" value="4" />
425            <enum name="number" value="5" />
426        </attr>
427        <attr name="navigateNext" format="boolean" />
428        <attr name="navigatePrevious" format="boolean" />
429        <attr name="passwordInput" format="boolean" />
430        <attr name="clobberSettingsKey" format="boolean" />
431        <attr name="hasShortcutKey" format="boolean" />
432        <attr name="languageSwitchKeyEnabled" format="boolean" />
433        <attr name="isMultiLine" format="boolean" />
434        <attr name="imeAction" format="enum">
435            <!-- This should be aligned with EditorInfo.IME_ACTION_* -->
436            <enum name="actionUnspecified" value="0" />
437            <enum name="actionNone" value="1" />
438            <enum name="actionGo" value="2" />
439            <enum name="actionSearch" value="3" />
440            <enum name="actionSend" value="4" />
441            <enum name="actionNext" value="5" />
442            <enum name="actionDone" value="6" />
443            <enum name="actionPrevious" value="7" />
444            <!--  This should be aligned with KeyboardId.IME_ACTION_* -->
445            <enum name="actionCustomLabel" value="0x100" />
446        </attr>
447        <attr name="isIconDefined" format="string" />
448        <attr name="localeCode" format="string" />
449        <attr name="languageCode" format="string" />
450        <attr name="countryCode" format="string" />
451    </declare-styleable>
452
453    <declare-styleable name="Keyboard_KeyStyle">
454        <attr name="styleName" format="string" />
455        <attr name="parentStyle" format="string" />
456    </declare-styleable>
457
458    <declare-styleable name="KeyboardLayoutSet_Element">
459        <!-- This should be aligned with KeyboardId.ELEMENT_* -->
460        <attr name="elementName" format="enum">
461            <enum name="alphabet" value="0" />
462            <enum name="alphabetManualShifted" value="1" />
463            <enum name="alphabetAutomaticShifted" value="2" />
464            <enum name="alphabetShiftLocked" value="3" />
465            <enum name="alphabetShiftLockShifted" value="4" />
466            <enum name="symbols" value="5" />
467            <enum name="symbolsShifted" value="6"  />
468            <enum name="phone" value="7"  />
469            <enum name="phoneSymbols" value="8"  />
470            <enum name="number" value="9"  />
471            <enum name="emojiRecents" value="10" />
472            <enum name="emojiCategory1" value="11" />
473            <enum name="emojiCategory2" value="12" />
474            <enum name="emojiCategory3" value="13" />
475            <enum name="emojiCategory4" value="14" />
476            <enum name="emojiCategory5" value="15" />
477            <enum name="emojiCategory6" value="16" />
478        </attr>
479        <attr name="elementKeyboard" format="reference"/>
480        <!-- Enable proximity characters correction. Disabled by default. -->
481        <attr name="enableProximityCharsCorrection" format="boolean" />
482    </declare-styleable>
483
484    <declare-styleable name="KeyboardLayoutSet_Feature">
485        <!-- This should be aligned with ScriptUtils.SCRIPT_* -->
486        <attr name="supportedScript" format="enum">
487            <enum name="arabic" value="0" />
488            <enum name="armenian" value="1" />
489            <enum name="bengali" value="2" />
490            <enum name="cyrillic" value="3" />
491            <enum name="devanagari" value="4" />
492            <enum name="georgian" value="5" />
493            <enum name="greek" value="6" />
494            <enum name="hebrew" value="7" />
495            <enum name="kannada" value="8" />
496            <enum name="khmer" value="9" />
497            <enum name="lao" value="10" />
498            <enum name="latin" value="11" />
499            <enum name="malayalam" value="12" />
500            <enum name="myanmar" value="13" />
501            <enum name="sinhala" value="14" />
502            <enum name="tamil" value="15" />
503            <enum name="telugu" value="16" />
504            <enum name="thai" value="17" />
505        </attr>
506    </declare-styleable>
507
508    <declare-styleable name="SeekBarDialogPreference">
509        <attr name="maxValue" format="integer" />
510        <attr name="minValue" format="integer" />
511        <attr name="stepValue" format="integer" />
512    </declare-styleable>
513</resources>
514