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