2010-08-20 05:35:02 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2013-08-27 08:04:06 +00:00
|
|
|
<!--
|
|
|
|
/*
|
|
|
|
**
|
|
|
|
** Copyright 2010, The Android Open Source Project
|
|
|
|
**
|
|
|
|
** Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
** you may not use this file except in compliance with the License.
|
|
|
|
** You may obtain a copy of the License at
|
|
|
|
**
|
|
|
|
** http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
**
|
|
|
|
** Unless required by applicable law or agreed to in writing, software
|
|
|
|
** distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
** See the License for the specific language governing permissions and
|
|
|
|
** limitations under the License.
|
|
|
|
*/
|
2010-08-20 05:35:02 +00:00
|
|
|
-->
|
|
|
|
|
|
|
|
<resources>
|
2011-05-24 12:08:20 +00:00
|
|
|
<declare-styleable name="KeyboardTheme">
|
2011-06-15 04:38:58 +00:00
|
|
|
<!-- Keyboard style -->
|
|
|
|
<attr name="keyboardStyle" format="reference" />
|
2011-05-24 12:08:20 +00:00
|
|
|
<!-- KeyboardView style -->
|
2010-08-20 05:35:02 +00:00
|
|
|
<attr name="keyboardViewStyle" format="reference" />
|
2012-07-23 01:27:14 +00:00
|
|
|
<!-- MainKeyboardView style -->
|
|
|
|
<attr name="mainKeyboardViewStyle" format="reference" />
|
2013-10-07 02:28:57 +00:00
|
|
|
<!-- EmojiPalettesView style -->
|
|
|
|
<attr name="emojiPalettesViewStyle" format="reference" />
|
2012-02-08 07:12:11 +00:00
|
|
|
<!-- MoreKeysKeyboard style -->
|
|
|
|
<attr name="moreKeysKeyboardStyle" format="reference" />
|
|
|
|
<!-- MoreKeysKeyboardView style -->
|
|
|
|
<attr name="moreKeysKeyboardViewStyle" format="reference" />
|
2011-05-24 12:08:20 +00:00
|
|
|
<!-- Suggestions strip style -->
|
2012-07-23 06:28:28 +00:00
|
|
|
<attr name="suggestionStripViewStyle" format="reference" />
|
2013-08-28 06:59:49 +00:00
|
|
|
<!-- Suggestion word style -->
|
|
|
|
<attr name="suggestionWordStyle" format="reference" />
|
2011-09-29 02:53:51 +00:00
|
|
|
</declare-styleable>
|
2010-08-20 05:35:02 +00:00
|
|
|
|
2011-05-24 12:08:20 +00:00
|
|
|
<declare-styleable name="KeyboardView">
|
2014-05-14 06:30:37 +00:00
|
|
|
<!-- Background image for the key. This image needs to be a {@link StateListDrawable},
|
|
|
|
with the following possible states: normal, pressed, checkable, checkable+pressed,
|
2013-12-13 08:09:16 +00:00
|
|
|
checkable+checked, checkable+checked+pressed. -->
|
2010-08-20 05:35:02 +00:00
|
|
|
<attr name="keyBackground" format="reference" />
|
2014-05-14 06:30:37 +00:00
|
|
|
<!-- Background image for the functional key. This image needs to be a
|
|
|
|
{@link StateListDrawable}, with the following possible states: normal, pressed. -->
|
|
|
|
<attr name="functionalKeyBackground" format="reference" />
|
|
|
|
<!-- Background image for the spacebar. This image needs to be a
|
|
|
|
{@link StateListDrawable}, with the following possible states: normal, pressed. -->
|
|
|
|
<attr name="spacebarBackground" format="reference" />
|
2014-05-15 08:28:54 +00:00
|
|
|
<attr name="spacebarIconWidthRatio" format="float" />
|
2012-08-31 01:09:43 +00:00
|
|
|
<!-- Horizontal padding of left/right aligned key label to the edge of the key. -->
|
|
|
|
<attr name="keyLabelHorizontalPadding" format="dimension" />
|
|
|
|
<!-- Right padding of hint letter to the edge of the key.-->
|
|
|
|
<attr name="keyHintLetterPadding" format="dimension" />
|
|
|
|
<!-- Bottom padding of popup hint letter "..." to the edge of the key.-->
|
|
|
|
<attr name="keyPopupHintLetterPadding" format="dimension" />
|
|
|
|
<!-- Right padding of shifted letter hint to the edge of the key.-->
|
|
|
|
<attr name="keyShiftedLetterHintPadding" format="dimension" />
|
2012-08-30 08:42:49 +00:00
|
|
|
<!-- Blur radius of key text shadow. -->
|
|
|
|
<attr name="keyTextShadowRadius" format="float" />
|
2012-08-31 01:09:43 +00:00
|
|
|
|
2012-09-05 06:34:51 +00:00
|
|
|
<!-- Key preview background states -->
|
|
|
|
<attr name="state_left_edge" format="boolean" />
|
|
|
|
<attr name="state_right_edge" format="boolean" />
|
|
|
|
<attr name="state_has_morekeys" format="boolean" />
|
2010-08-20 05:35:02 +00:00
|
|
|
|
|
|
|
<!-- Amount to offset the touch Y coordinate by, for bias correction. -->
|
|
|
|
<attr name="verticalCorrection" format="dimension" />
|
|
|
|
</declare-styleable>
|
|
|
|
|
2012-07-23 01:27:14 +00:00
|
|
|
<declare-styleable name="MainKeyboardView">
|
2011-12-17 23:13:36 +00:00
|
|
|
<!-- Size of the text for spacebar language label, in the proportion of key height. -->
|
2013-12-13 08:09:16 +00:00
|
|
|
<attr name="languageOnSpacebarTextRatio" format="fraction" />
|
|
|
|
<attr name="languageOnSpacebarTextColor" format="color" />
|
2014-05-13 02:19:43 +00:00
|
|
|
<attr name="languageOnSpacebarTextShadowRadius" format="float" />
|
2013-12-13 08:09:16 +00:00
|
|
|
<attr name="languageOnSpacebarTextShadowColor" format="color" />
|
2012-03-14 03:33:03 +00:00
|
|
|
<!-- Fadeout animator for spacebar language label. -->
|
2012-03-16 05:05:20 +00:00
|
|
|
<attr name="languageOnSpacebarFinalAlpha" format="integer" />
|
2012-03-14 03:33:03 +00:00
|
|
|
<attr name="languageOnSpacebarFadeoutAnimator" format="reference" />
|
2012-03-14 05:46:22 +00:00
|
|
|
<!-- Fadeout and fadein animator for altCodeWhileTyping keys. -->
|
|
|
|
<attr name="altCodeKeyWhileTypingFadeoutAnimator" format="reference" />
|
|
|
|
<attr name="altCodeKeyWhileTypingFadeinAnimator" format="reference" />
|
2012-01-25 11:14:39 +00:00
|
|
|
<!-- Key detection hysteresis distance. -->
|
|
|
|
<attr name="keyHysteresisDistance" format="dimension" />
|
2012-10-06 14:22:36 +00:00
|
|
|
<!-- Key detection hysteresis distance for shift/symbols sliding input. -->
|
|
|
|
<attr name="keyHysteresisDistanceForSlidingModifier" format="dimension" />
|
2012-01-25 11:14:39 +00:00
|
|
|
<!-- Touch noise threshold time in millisecond -->
|
|
|
|
<attr name="touchNoiseThresholdTime" format="integer" />
|
|
|
|
<!-- Touch noise threshold distance in millimeter -->
|
|
|
|
<attr name="touchNoiseThresholdDistance" format="dimension" />
|
2013-12-13 08:09:16 +00:00
|
|
|
<!-- Enable key selection by dragging finger -->
|
|
|
|
<attr name="keySelectionByDraggingFinger" format="boolean" />
|
2013-01-24 07:08:33 +00:00
|
|
|
<attr name="slidingKeyInputPreviewColor" format="color" />
|
|
|
|
<attr name="slidingKeyInputPreviewWidth" format="dimension" />
|
2013-04-16 07:44:23 +00:00
|
|
|
<attr name="slidingKeyInputPreviewBodyRatio" format="integer" />
|
|
|
|
<attr name="slidingKeyInputPreviewShadowRatio" format="integer" />
|
2012-01-25 11:14:39 +00:00
|
|
|
<!-- Key repeat start timeout -->
|
|
|
|
<attr name="keyRepeatStartTimeout" format="integer" />
|
|
|
|
<!-- Key repeat interval in millisecond. -->
|
|
|
|
<attr name="keyRepeatInterval" format="integer" />
|
2013-01-18 03:19:59 +00:00
|
|
|
<!-- Long press timeout of shift key to shift lock in millisecond. -->
|
|
|
|
<attr name="longPressShiftLockTimeout" format="integer" />
|
2012-01-25 11:14:39 +00:00
|
|
|
<!-- Ignore special key timeout while typing in millisecond. -->
|
2012-03-14 05:46:22 +00:00
|
|
|
<attr name="ignoreAltCodeKeyTimeout" format="integer" />
|
2014-06-18 00:42:36 +00:00
|
|
|
<!-- Background resource for key press feedback.-->
|
|
|
|
<attr name="keyPreviewBackground" format="reference" />
|
2013-01-21 06:23:32 +00:00
|
|
|
<!-- Vertical offset of the key press feedback from the key. -->
|
|
|
|
<attr name="keyPreviewOffset" format="dimension" />
|
|
|
|
<!-- Height of the key press feedback popup. -->
|
|
|
|
<attr name="keyPreviewHeight" format="dimension" />
|
2014-02-17 03:10:09 +00:00
|
|
|
<!-- TODO: consolidate key preview linger timeout with the key preview animation parameters. -->
|
2013-01-21 06:23:32 +00:00
|
|
|
<!-- Delay after key releasing and key press feedback dismissing in millisecond -->
|
|
|
|
<attr name="keyPreviewLingerTimeout" format="integer" />
|
2013-01-21 05:41:33 +00:00
|
|
|
<!-- Layout resource for more keys keyboard -->
|
|
|
|
<attr name="moreKeysKeyboardLayout" format="reference" />
|
2013-01-21 07:36:25 +00:00
|
|
|
<attr name="backgroundDimAlpha" format="integer" />
|
2012-02-08 07:12:11 +00:00
|
|
|
<!-- More keys keyboard will shown at touched point. -->
|
|
|
|
<attr name="showMoreKeysKeyboardAtTouchedPoint" format="boolean" />
|
2013-05-13 04:12:12 +00:00
|
|
|
<!-- Minimum distance between gesture trail sampling points. -->
|
|
|
|
<attr name="gestureTrailMinSamplingDistance" format="dimension" />
|
|
|
|
<!-- Maximum angular threshold between gesture trail interpolation segments in degree. -->
|
|
|
|
<attr name="gestureTrailMaxInterpolationAngularThreshold" format="integer" />
|
|
|
|
<!-- Maximum distance threshold between gesture trail interpolation segments. -->
|
|
|
|
<attr name="gestureTrailMaxInterpolationDistanceThreshold" format="dimension" />
|
|
|
|
<!-- Maximum number of gesture trail interpolation segments. -->
|
|
|
|
<attr name="gestureTrailMaxInterpolationSegments" format="integer" />
|
2013-01-21 07:16:48 +00:00
|
|
|
<!-- Delay after gesture trail starts fading out in millisecond. -->
|
2013-05-13 04:12:12 +00:00
|
|
|
<attr name="gestureTrailFadeoutStartDelay" format="integer" />
|
|
|
|
<!-- Duration while gesture trail is fading out in millisecond. -->
|
|
|
|
<attr name="gestureTrailFadeoutDuration" format="integer" />
|
|
|
|
<!-- Interval of updating gesture trail in millisecond. -->
|
|
|
|
<attr name="gestureTrailUpdateInterval" format="integer" />
|
|
|
|
<attr name="gestureTrailColor" format="color" />
|
|
|
|
<attr name="gestureTrailStartWidth" format="dimension" />
|
|
|
|
<attr name="gestureTrailEndWidth" format="dimension" />
|
|
|
|
<attr name="gestureTrailBodyRatio" format="integer" />
|
|
|
|
<attr name="gestureTrailShadowRatio" format="integer" />
|
2013-01-21 06:57:32 +00:00
|
|
|
<!-- Delay after gesture input and gesture floating preview text dismissing in millisecond -->
|
|
|
|
<attr name="gestureFloatingPreviewTextLingerTimeout" format="integer" />
|
2013-01-21 07:16:48 +00:00
|
|
|
<!-- Attributes for GestureFloatingPreviewText -->
|
|
|
|
<attr name="gestureFloatingPreviewTextSize" format="dimension" />
|
|
|
|
<attr name="gestureFloatingPreviewTextColor" format="color" />
|
|
|
|
<attr name="gestureFloatingPreviewTextOffset" format="dimension" />
|
|
|
|
<attr name="gestureFloatingPreviewColor" format="color" />
|
|
|
|
<attr name="gestureFloatingPreviewHorizontalPadding" format="dimension" />
|
|
|
|
<attr name="gestureFloatingPreviewVerticalPadding" format="dimension" />
|
|
|
|
<attr name="gestureFloatingPreviewRoundRadius" format="dimension" />
|
2012-10-05 03:12:54 +00:00
|
|
|
<!-- Static threshold for gesture after fast typing (msec) -->
|
|
|
|
<attr name="gestureStaticTimeThresholdAfterFastTyping" format="integer" />
|
|
|
|
<!-- Static threshold for starting gesture detection (keyWidth%/sec) -->
|
|
|
|
<attr name="gestureDetectFastMoveSpeedThreshold" format="fraction" />
|
|
|
|
<!-- Dynamic threshold for gesture after fast typing (msec) -->
|
|
|
|
<attr name="gestureDynamicThresholdDecayDuration" format="integer" />
|
|
|
|
<!-- Time based threshold values for gesture detection (msec) -->
|
|
|
|
<attr name="gestureDynamicTimeThresholdFrom" format="integer" />
|
|
|
|
<attr name="gestureDynamicTimeThresholdTo" format="integer" />
|
|
|
|
<!-- Distance based threshold values for gesture detection (keyWidth%/sec) -->
|
|
|
|
<attr name="gestureDynamicDistanceThresholdFrom" format="fraction" />
|
|
|
|
<attr name="gestureDynamicDistanceThresholdTo" format="fraction" />
|
|
|
|
<!-- Parameter for gesture sampling (keyWidth%/sec) -->
|
|
|
|
<attr name="gestureSamplingMinimumDistance" format="fraction" />
|
|
|
|
<!-- Parameters for gesture recognition (msec) and (keyWidth%/sec) -->
|
|
|
|
<attr name="gestureRecognitionMinimumTime" format="integer" />
|
2012-11-22 02:04:41 +00:00
|
|
|
<attr name="gestureRecognitionUpdateTime" format="integer" />
|
2012-10-05 03:12:54 +00:00
|
|
|
<attr name="gestureRecognitionSpeedThreshold" format="fraction" />
|
2012-10-05 05:37:22 +00:00
|
|
|
<!-- Suppress showing key preview duration after batch input in millisecond -->
|
|
|
|
<attr name="suppressKeyPreviewAfterBatchInputDuration" format="integer" />
|
2011-12-17 19:55:17 +00:00
|
|
|
</declare-styleable>
|
|
|
|
|
2013-10-07 02:28:57 +00:00
|
|
|
<declare-styleable name="EmojiPalettesView">
|
2014-05-23 07:04:39 +00:00
|
|
|
<attr name="categoryIndicatorEnabled" format="boolean" />
|
|
|
|
<attr name="categoryIndicatorDrawable" format="reference" />
|
|
|
|
<attr name="categoryIndicatorBackground" format="reference" />
|
|
|
|
<attr name="categoryPageIndicatorColor" format="color" />
|
|
|
|
<attr name="categoryPageIndicatorBackground" format="color" />
|
2014-05-16 01:32:04 +00:00
|
|
|
<attr name="iconEmojiRecentsTab" format="reference" />
|
|
|
|
<attr name="iconEmojiCategory1Tab" format="reference" />
|
|
|
|
<attr name="iconEmojiCategory2Tab" format="reference" />
|
|
|
|
<attr name="iconEmojiCategory3Tab" format="reference" />
|
|
|
|
<attr name="iconEmojiCategory4Tab" format="reference" />
|
|
|
|
<attr name="iconEmojiCategory5Tab" format="reference" />
|
|
|
|
<attr name="iconEmojiCategory6Tab" format="reference" />
|
2013-08-26 08:30:23 +00:00
|
|
|
</declare-styleable>
|
|
|
|
|
2012-07-23 06:28:28 +00:00
|
|
|
<declare-styleable name="SuggestionStripView">
|
2014-02-25 05:52:18 +00:00
|
|
|
<attr name="suggestionStripOptions" format="integer">
|
2013-05-30 14:47:54 +00:00
|
|
|
<!-- This should be aligned with SuggestionStripLayoutHelper.AUTO_CORRECT_* and etc. -->
|
2011-06-15 02:49:57 +00:00
|
|
|
<flag name="autoCorrectBold" value="0x01" />
|
|
|
|
<flag name="autoCorrectUnderline" value="0x02" />
|
2011-09-21 06:04:50 +00:00
|
|
|
<flag name="validTypedWordBold" value="0x04" />
|
2011-06-15 02:49:57 +00:00
|
|
|
</attr>
|
2011-12-15 07:38:17 +00:00
|
|
|
<attr name="colorValidTypedWord" format="color" />
|
2011-06-15 02:49:57 +00:00
|
|
|
<attr name="colorTypedWord" format="color" />
|
|
|
|
<attr name="colorAutoCorrect" format="color" />
|
|
|
|
<attr name="colorSuggested" format="color" />
|
2012-08-28 04:10:03 +00:00
|
|
|
<attr name="alphaObsoleted" format="fraction" />
|
2011-09-01 05:54:28 +00:00
|
|
|
<attr name="suggestionsCountInStrip" format="integer" />
|
2012-08-28 04:10:03 +00:00
|
|
|
<attr name="centerSuggestionPercentile" format="fraction" />
|
2011-09-05 08:22:34 +00:00
|
|
|
<attr name="maxMoreSuggestionsRow" format="integer" />
|
|
|
|
<attr name="minMoreSuggestionsWidth" format="float" />
|
2011-06-15 02:49:57 +00:00
|
|
|
</declare-styleable>
|
|
|
|
|
2010-12-02 09:46:21 +00:00
|
|
|
<declare-styleable name="Keyboard">
|
2011-09-30 12:12:20 +00:00
|
|
|
<attr name="themeId" format="integer" />
|
|
|
|
<!-- Touch position correction -->
|
|
|
|
<attr name="touchPositionCorrectionData" format="reference" />
|
2013-01-30 04:08:44 +00:00
|
|
|
<!-- Keyboard top, bottom, left, right edges paddings, in propotion of keyboard height. -->
|
2013-01-29 09:30:42 +00:00
|
|
|
<attr name="keyboardTopPadding" format="fraction" />
|
|
|
|
<attr name="keyboardBottomPadding" format="fraction" />
|
2013-01-30 04:08:44 +00:00
|
|
|
<attr name="keyboardLeftPadding" format="fraction" />
|
|
|
|
<attr name="keyboardRightPadding" format="fraction" />
|
2013-01-29 09:30:42 +00:00
|
|
|
<!-- Default height of a row (key height + vertical gap), in pixels or in the proportion of
|
2010-12-08 05:36:41 +00:00
|
|
|
keyboard height. -->
|
|
|
|
<attr name="rowHeight" format="dimension|fraction" />
|
2013-01-29 09:30:42 +00:00
|
|
|
<!-- Default horizontal gap between keys, in the proportion of keyboard width. -->
|
|
|
|
<attr name="horizontalGap" format="fraction" />
|
|
|
|
<!-- Default vertical gap between rows of keys, in the proportion of keyboard height. -->
|
|
|
|
<attr name="verticalGap" format="fraction" />
|
2011-08-31 06:26:32 +00:00
|
|
|
<!-- More keys keyboard layout template -->
|
|
|
|
<attr name="moreKeysTemplate" format="reference" />
|
2012-04-19 21:24:51 +00:00
|
|
|
<!-- Icon set for key top and key preview.
|
|
|
|
These should be aligned with KeyboardIconsSet.NAMES_AND_ATTR_IDS[] -->
|
2011-06-21 14:38:42 +00:00
|
|
|
<attr name="iconShiftKey" format="reference" />
|
|
|
|
<attr name="iconDeleteKey" format="reference" />
|
|
|
|
<attr name="iconSettingsKey" format="reference" />
|
|
|
|
<attr name="iconSpaceKey" format="reference" />
|
2012-04-19 21:24:51 +00:00
|
|
|
<attr name="iconEnterKey" format="reference" />
|
2014-05-13 02:02:42 +00:00
|
|
|
<attr name="iconGoKey" format="reference" />
|
2011-06-21 14:38:42 +00:00
|
|
|
<attr name="iconSearchKey" format="reference" />
|
2014-05-13 02:02:42 +00:00
|
|
|
<attr name="iconSendKey" format="reference" />
|
|
|
|
<attr name="iconNextKey" format="reference" />
|
|
|
|
<attr name="iconDoneKey" format="reference" />
|
|
|
|
<attr name="iconPreviousKey" format="reference" />
|
2011-06-21 14:38:42 +00:00
|
|
|
<attr name="iconTabKey" format="reference" />
|
2011-08-03 04:29:24 +00:00
|
|
|
<attr name="iconShortcutKey" format="reference" />
|
2011-12-17 23:00:07 +00:00
|
|
|
<attr name="iconSpaceKeyForNumberLayout" format="reference" />
|
|
|
|
<attr name="iconShiftKeyShifted" format="reference" />
|
2012-04-19 21:24:51 +00:00
|
|
|
<attr name="iconShortcutKeyDisabled" format="reference" />
|
2012-02-18 01:46:01 +00:00
|
|
|
<attr name="iconLanguageSwitchKey" format="reference" />
|
2012-03-23 10:14:32 +00:00
|
|
|
<attr name="iconZwnjKey" format="reference" />
|
|
|
|
<attr name="iconZwjKey" format="reference" />
|
2013-08-26 08:30:23 +00:00
|
|
|
<attr name="iconImeKey" format="reference" />
|
2013-08-05 09:21:55 +00:00
|
|
|
<attr name="iconEmojiKey" format="reference" />
|
2010-10-01 10:40:44 +00:00
|
|
|
</declare-styleable>
|
|
|
|
|
2013-08-26 04:09:19 +00:00
|
|
|
<declare-styleable name="Keyboard_GridRows">
|
|
|
|
<attr name="codesArray" format="reference" />
|
|
|
|
<attr name="textsArray" format="reference" />
|
|
|
|
</declare-styleable>
|
|
|
|
|
2010-12-02 09:46:21 +00:00
|
|
|
<declare-styleable name="Keyboard_Key">
|
2012-04-09 08:48:32 +00:00
|
|
|
<!-- The alternate unicode value that this key outputs while typing.
|
|
|
|
Code value represented in hexadecimal prefixed with "0x" or code value reference using
|
|
|
|
"!code/<code_name>" notation. -->
|
|
|
|
<attr name="altCode" format="string" />
|
2011-08-31 06:26:32 +00:00
|
|
|
<!-- The keys to display in the more keys keyboard. -->
|
|
|
|
<attr name="moreKeys" format="string" />
|
2012-01-30 02:14:45 +00:00
|
|
|
<!-- The keys to display in the more keys keyboard in addition to moreKeys.
|
|
|
|
The additional more keys are inserted at the '%' markers in the moreKeys if any.
|
|
|
|
They are inserted at the head of moreKeys if none.
|
|
|
|
If there are remaining entries of additionalMoreKeys even after all '%' markers have
|
|
|
|
been replaced, those remaining entries are appended at the end of moreKeys. -->
|
|
|
|
<attr name="additionalMoreKeys" format="string" />
|
2011-08-31 06:26:32 +00:00
|
|
|
<!-- Maximum column of more keys keyboard -->
|
2012-02-07 08:07:23 +00:00
|
|
|
<attr name="maxMoreKeysColumn" format="integer" />
|
2011-09-15 05:21:46 +00:00
|
|
|
<attr name="backgroundType" format="enum">
|
|
|
|
<!-- This should be aligned with Key.BACKGROUND_TYPE_* -->
|
2013-08-14 08:55:21 +00:00
|
|
|
<enum name="empty" value="0" />
|
|
|
|
<enum name="normal" value="1" />
|
|
|
|
<enum name="functional" value="2" />
|
|
|
|
<enum name="action" value="3" />
|
|
|
|
<enum name="stickyOff" value="4" />
|
|
|
|
<enum name="stickyOn" value="5" />
|
2011-09-15 05:21:46 +00:00
|
|
|
</attr>
|
2011-11-22 03:55:38 +00:00
|
|
|
<!-- The key action flags. -->
|
|
|
|
<attr name="keyActionFlags" format="integer">
|
|
|
|
<!-- This should be aligned with Key.ACTION_FLAGS_* -->
|
|
|
|
<flag name="isRepeatable" value="0x01" />
|
|
|
|
<flag name="noKeyPreview" value="0x02" />
|
2011-11-30 08:54:58 +00:00
|
|
|
<flag name="altCodeWhileTyping" value="0x04" />
|
2012-02-01 06:07:25 +00:00
|
|
|
<flag name="enableLongPress" value="0x08" />
|
2011-11-22 03:55:38 +00:00
|
|
|
</attr>
|
2014-02-06 06:11:05 +00:00
|
|
|
<!-- The label, icon to display on the key. And code, outputText of the key. -->
|
|
|
|
<attr name="keySpec" format="string" />
|
2011-06-25 10:38:55 +00:00
|
|
|
<!-- The hint label to display on the key in conjunction with the label. -->
|
|
|
|
<attr name="keyHintLabel" format="string" />
|
2013-12-13 08:09:16 +00:00
|
|
|
<!-- The vertical adjustment of key hint label in proportion to its height. -->
|
|
|
|
<attr name="keyHintLabelVerticalAdjustment" format="fraction" />
|
2011-11-22 03:55:38 +00:00
|
|
|
<!-- The key label flags. -->
|
|
|
|
<attr name="keyLabelFlags" format="integer">
|
|
|
|
<!-- This should be aligned with Key.LABEL_FLAGS__* -->
|
2011-06-15 04:38:58 +00:00
|
|
|
<flag name="alignLeft" value="0x01" />
|
|
|
|
<flag name="alignRight" value="0x02" />
|
2014-05-15 08:28:54 +00:00
|
|
|
<flag name="alignButtom" value="0x04" />
|
2011-06-25 10:38:55 +00:00
|
|
|
<flag name="alignLeftOfCenter" value="0x08" />
|
2012-04-11 03:34:30 +00:00
|
|
|
<flag name="fontNormal" value="0x10" />
|
|
|
|
<flag name="fontMonoSpace" value="0x20" />
|
2014-07-07 07:54:00 +00:00
|
|
|
<flag name="fontDefault" value="0x30" />
|
2012-04-11 03:34:30 +00:00
|
|
|
<flag name="followKeyLargeLetterRatio" value="0x40" />
|
2011-06-25 10:38:55 +00:00
|
|
|
<flag name="followKeyLetterRatio" value="0x80" />
|
2012-04-11 03:34:30 +00:00
|
|
|
<flag name="followKeyLabelRatio" value="0xC0" />
|
2012-05-17 10:30:38 +00:00
|
|
|
<flag name="followKeyLargeLabelRatio" value="0x100" />
|
|
|
|
<flag name="followKeyHintLabelRatio" value="0x140" />
|
2011-06-25 10:38:55 +00:00
|
|
|
<flag name="hasPopupHint" value="0x200" />
|
2012-01-26 09:03:30 +00:00
|
|
|
<flag name="hasShiftedLetterHint" value="0x400" />
|
2011-06-25 10:38:55 +00:00
|
|
|
<flag name="hasHintLabel" value="0x800" />
|
2013-12-13 08:09:16 +00:00
|
|
|
<!-- These two flags are currently unused. Leave these for possible future use. -->
|
2011-08-03 04:29:24 +00:00
|
|
|
<flag name="withIconLeft" value="0x1000" />
|
|
|
|
<flag name="withIconRight" value="0x2000" />
|
2011-09-12 07:29:24 +00:00
|
|
|
<flag name="autoXScale" value="0x4000" />
|
2013-12-13 08:09:16 +00:00
|
|
|
<!-- The autoScale value implies autoXScale bit on to optimize scaling code path. -->
|
|
|
|
<flag name="autoScale" value="0xc000" />
|
2012-01-25 10:43:13 +00:00
|
|
|
<!-- If true, character case of code, altCode, moreKeys, keyOutputText, keyLabel,
|
|
|
|
or keyHintLabel will never be subject to change. -->
|
2013-12-13 08:09:16 +00:00
|
|
|
<flag name="preserveCase" value="0x10000" />
|
2012-01-26 09:03:30 +00:00
|
|
|
<!-- If true, use keyShiftedLetterHintActivatedColor for the shifted letter hint and
|
|
|
|
keyTextInactivatedColor for the primary key top label. -->
|
2013-12-13 08:09:16 +00:00
|
|
|
<flag name="shiftedLetterActivated" value="0x20000" />
|
2012-02-07 08:07:23 +00:00
|
|
|
<!-- If true, use EditorInfo.actionLabel for the key label. -->
|
2013-12-13 08:09:16 +00:00
|
|
|
<flag name="fromCustomActionLabel" value="0x40000" />
|
2014-05-15 06:39:01 +00:00
|
|
|
<!-- If true, use functionalTextColor instead of ketTextColor to drawing the label on
|
|
|
|
the key -->
|
|
|
|
<flag name="followFunctionalTextColor" value="0x80000" />
|
2012-03-12 07:30:59 +00:00
|
|
|
<!-- If true, disable keyHintLabel. -->
|
|
|
|
<flag name="disableKeyHintLabel" value="0x40000000" />
|
|
|
|
<!-- If true, disable additionalMoreKeys. -->
|
|
|
|
<flag name="disableAdditionalMoreKeys" value="0x80000000" />
|
2010-11-20 16:03:24 +00:00
|
|
|
</attr>
|
2011-12-18 16:11:09 +00:00
|
|
|
<!-- The icon for disabled key -->
|
2012-04-19 21:24:51 +00:00
|
|
|
<attr name="keyIconDisabled" format="string" />
|
2010-11-19 22:57:24 +00:00
|
|
|
<!-- The key style to specify a set of key attributes defined by <key_style/> -->
|
|
|
|
<attr name="keyStyle" format="string" />
|
2013-01-29 09:30:42 +00:00
|
|
|
<!-- Visual insets, in the proportion of keyboard width. -->
|
|
|
|
<attr name="visualInsetsLeft" format="fraction" />
|
|
|
|
<attr name="visualInsetsRight" format="fraction" />
|
|
|
|
<!-- Width of the key, in the proportion of keyboard width.
|
|
|
|
If the value is fillRight, the actual key width will be determined to fill out the
|
|
|
|
area up to the right edge of the keyboard. -->
|
2011-09-26 02:26:38 +00:00
|
|
|
<!-- This should be aligned with KeyboardBuilder.Row.KEYWIDTH_* -->
|
2013-01-29 09:30:42 +00:00
|
|
|
<attr name="keyWidth" format="fraction|enum">
|
2011-09-26 02:26:38 +00:00
|
|
|
<enum name="fillRight" value="-1" />
|
|
|
|
</attr>
|
2013-01-29 09:30:42 +00:00
|
|
|
<!-- The X-coordinate of upper right corner of this key including horizontal gap, in the
|
|
|
|
proportion of keyboard width.
|
2011-05-30 11:05:50 +00:00
|
|
|
If the value is negative, the origin is the right edge of the keyboard. -->
|
2013-01-29 09:30:42 +00:00
|
|
|
<attr name="keyXPos" format="fraction" />
|
2012-08-30 07:05:40 +00:00
|
|
|
|
|
|
|
<!-- Key top visual attributes -->
|
|
|
|
<attr name="keyTypeface" format="enum">
|
|
|
|
<!-- This should be aligned with Typeface.NORMAL etc. -->
|
|
|
|
<enum name="normal" value="0" />
|
|
|
|
<enum name="bold" value="1" />
|
|
|
|
<enum name="italic" value="2" />
|
|
|
|
<enum name="boldItalic" value="3" />
|
|
|
|
</attr>
|
|
|
|
<!-- Size of the text for one letter keys. If specified as fraction, the text size is
|
|
|
|
measured in the proportion of key height. -->
|
|
|
|
<attr name="keyLetterSize" format="dimension|fraction" />
|
|
|
|
<!-- Size of the text for keys with multiple letters. If specified as fraction, the text
|
|
|
|
size is measured in the proportion of key height. -->
|
|
|
|
<attr name="keyLabelSize" format="dimension|fraction" />
|
|
|
|
<!-- Large size of the text for one letter keys, in the proportion of key height. -->
|
|
|
|
<attr name="keyLargeLetterRatio" format="fraction" />
|
|
|
|
<!-- Large size of the text for keys with multiple letters, in the proportion of key height. -->
|
|
|
|
<attr name="keyLargeLabelRatio" format="fraction" />
|
|
|
|
<!-- Size of the text for hint letter (= one character hint label), in the proportion of
|
|
|
|
key height. -->
|
|
|
|
<attr name="keyHintLetterRatio" format="fraction" />
|
|
|
|
<!-- Size of the text for hint label, in the proportion of key height. -->
|
|
|
|
<attr name="keyHintLabelRatio" format="fraction" />
|
|
|
|
<!-- Size of the text for shifted letter hint, in the proportion of key height. -->
|
2012-08-31 01:09:43 +00:00
|
|
|
<attr name="keyShiftedLetterHintRatio" format="fraction" />
|
2012-08-30 07:05:40 +00:00
|
|
|
<!-- Color to use for the label in a key. -->
|
|
|
|
<attr name="keyTextColor" format="color" />
|
|
|
|
<attr name="keyTextShadowColor" format="color" />
|
|
|
|
<!-- Color to use for the label in a key when in inactivated state. -->
|
|
|
|
<attr name="keyTextInactivatedColor" format="color" />
|
2014-05-15 06:39:01 +00:00
|
|
|
<!-- Color to use for the label in a key that has followFunctionalTextColor keyLabelFlags. -->
|
|
|
|
<attr name="functionalTextColor" format="color" />
|
2012-08-30 07:05:40 +00:00
|
|
|
<!-- Key hint letter (= one character hint label) color -->
|
|
|
|
<attr name="keyHintLetterColor" format="color" />
|
|
|
|
<!-- Key hint label color -->
|
|
|
|
<attr name="keyHintLabelColor" format="color" />
|
|
|
|
<!-- Shifted letter hint colors -->
|
|
|
|
<attr name="keyShiftedLetterHintInactivatedColor" format="color" />
|
|
|
|
<attr name="keyShiftedLetterHintActivatedColor" format="color" />
|
|
|
|
|
|
|
|
<!-- Key preview visual parameters -->
|
|
|
|
<!-- The text color for key press feedback. -->
|
|
|
|
<attr name="keyPreviewTextColor" format="color" />
|
|
|
|
<!-- Size of the text for key press feedback popup, in the proportion of key height. -->
|
|
|
|
<attr name="keyPreviewTextRatio" format="fraction" />
|
2010-10-01 10:40:44 +00:00
|
|
|
</declare-styleable>
|
|
|
|
|
2010-12-02 09:46:21 +00:00
|
|
|
<declare-styleable name="Keyboard_Include">
|
2010-10-07 08:13:30 +00:00
|
|
|
<attr name="keyboardLayout" format="reference" />
|
|
|
|
</declare-styleable>
|
2010-11-11 23:28:14 +00:00
|
|
|
|
2010-12-02 09:46:21 +00:00
|
|
|
<declare-styleable name="Keyboard_Case">
|
2013-08-29 00:50:45 +00:00
|
|
|
<attr name="keyboardLayoutSet" format="string" />
|
2012-04-04 05:30:42 +00:00
|
|
|
<!-- This should be aligned with KeyboardLayoutSet_Element's elementName. -->
|
|
|
|
<attr name="keyboardLayoutSetElement" format="enum|string">
|
2012-01-25 04:14:59 +00:00
|
|
|
<enum name="alphabet" value="0" />
|
|
|
|
<enum name="alphabetManualShifted" value="1" />
|
|
|
|
<enum name="alphabetAutomaticShifted" value="2" />
|
|
|
|
<enum name="alphabetShiftLocked" value="3" />
|
|
|
|
<enum name="alphabetShiftLockShifted" value="4" />
|
|
|
|
<enum name="symbols" value="5" />
|
2013-09-04 03:57:04 +00:00
|
|
|
<enum name="symbolsShifted" value="6" />
|
2012-01-25 04:14:59 +00:00
|
|
|
<enum name="phone" value="7" />
|
2012-02-01 06:07:25 +00:00
|
|
|
<enum name="phoneSymbols" value="8" />
|
2012-01-25 04:14:59 +00:00
|
|
|
<enum name="number" value="9" />
|
2013-08-26 03:27:38 +00:00
|
|
|
<enum name="emojiRecents" value="10" />
|
|
|
|
<enum name="emojiCategory1" value="11" />
|
|
|
|
<enum name="emojiCategory2" value="12" />
|
|
|
|
<enum name="emojiCategory3" value="13" />
|
|
|
|
<enum name="emojiCategory4" value="14" />
|
|
|
|
<enum name="emojiCategory5" value="15" />
|
|
|
|
<enum name="emojiCategory6" value="16" />
|
2012-01-25 04:14:59 +00:00
|
|
|
</attr>
|
2010-12-02 09:46:21 +00:00
|
|
|
<!-- This should be aligned with KeyboardId.MODE_* -->
|
2011-06-02 17:18:57 +00:00
|
|
|
<attr name="mode" format="enum|string">
|
2010-11-20 16:03:24 +00:00
|
|
|
<enum name="text" value="0" />
|
|
|
|
<enum name="url" value="1" />
|
|
|
|
<enum name="email" value="2" />
|
|
|
|
<enum name="im" value="3" />
|
2011-05-27 12:41:13 +00:00
|
|
|
<enum name="phone" value="4" />
|
|
|
|
<enum name="number" value="5" />
|
2010-11-19 22:57:24 +00:00
|
|
|
</attr>
|
2012-02-17 07:14:14 +00:00
|
|
|
<attr name="navigateNext" format="boolean" />
|
|
|
|
<attr name="navigatePrevious" format="boolean" />
|
2011-02-20 03:54:14 +00:00
|
|
|
<attr name="passwordInput" format="boolean" />
|
2011-06-23 12:55:56 +00:00
|
|
|
<attr name="clobberSettingsKey" format="boolean" />
|
2011-08-01 01:34:54 +00:00
|
|
|
<attr name="hasShortcutKey" format="boolean" />
|
2012-02-18 01:46:01 +00:00
|
|
|
<attr name="languageSwitchKeyEnabled" format="boolean" />
|
2012-02-07 08:07:23 +00:00
|
|
|
<attr name="isMultiLine" format="boolean" />
|
2011-06-02 17:18:57 +00:00
|
|
|
<attr name="imeAction" format="enum">
|
2010-11-20 00:04:52 +00:00
|
|
|
<!-- This should be aligned with EditorInfo.IME_ACTION_* -->
|
2011-06-02 17:18:57 +00:00
|
|
|
<enum name="actionUnspecified" value="0" />
|
|
|
|
<enum name="actionNone" value="1" />
|
|
|
|
<enum name="actionGo" value="2" />
|
|
|
|
<enum name="actionSearch" value="3" />
|
|
|
|
<enum name="actionSend" value="4" />
|
|
|
|
<enum name="actionNext" value="5" />
|
|
|
|
<enum name="actionDone" value="6" />
|
|
|
|
<enum name="actionPrevious" value="7" />
|
2012-02-07 08:07:23 +00:00
|
|
|
<!-- This should be aligned with KeyboardId.IME_ACTION_* -->
|
|
|
|
<enum name="actionCustomLabel" value="0x100" />
|
2010-11-20 00:04:52 +00:00
|
|
|
</attr>
|
2014-05-12 09:50:51 +00:00
|
|
|
<attr name="isIconDefined" format="string" />
|
2011-06-02 17:18:57 +00:00
|
|
|
<attr name="localeCode" format="string" />
|
2011-02-18 06:33:44 +00:00
|
|
|
<attr name="languageCode" format="string" />
|
2011-02-23 08:09:24 +00:00
|
|
|
<attr name="countryCode" format="string" />
|
2010-11-11 23:28:14 +00:00
|
|
|
</declare-styleable>
|
2010-11-19 22:57:24 +00:00
|
|
|
|
2010-12-02 09:46:21 +00:00
|
|
|
<declare-styleable name="Keyboard_KeyStyle">
|
2010-11-19 22:57:24 +00:00
|
|
|
<attr name="styleName" format="string" />
|
|
|
|
<attr name="parentStyle" format="string" />
|
|
|
|
</declare-styleable>
|
2011-06-16 08:20:29 +00:00
|
|
|
|
2012-04-04 05:30:42 +00:00
|
|
|
<declare-styleable name="KeyboardLayoutSet_Element">
|
2011-12-13 08:30:51 +00:00
|
|
|
<!-- This should be aligned with KeyboardId.ELEMENT_* -->
|
|
|
|
<attr name="elementName" format="enum">
|
2012-01-24 09:03:50 +00:00
|
|
|
<enum name="alphabet" value="0" />
|
|
|
|
<enum name="alphabetManualShifted" value="1" />
|
|
|
|
<enum name="alphabetAutomaticShifted" value="2" />
|
|
|
|
<enum name="alphabetShiftLocked" value="3" />
|
|
|
|
<enum name="alphabetShiftLockShifted" value="4" />
|
|
|
|
<enum name="symbols" value="5" />
|
2013-09-04 03:57:04 +00:00
|
|
|
<enum name="symbolsShifted" value="6" />
|
2012-01-24 09:03:50 +00:00
|
|
|
<enum name="phone" value="7" />
|
2012-02-01 06:07:25 +00:00
|
|
|
<enum name="phoneSymbols" value="8" />
|
2012-01-24 09:03:50 +00:00
|
|
|
<enum name="number" value="9" />
|
2013-08-26 03:27:38 +00:00
|
|
|
<enum name="emojiRecents" value="10" />
|
|
|
|
<enum name="emojiCategory1" value="11" />
|
|
|
|
<enum name="emojiCategory2" value="12" />
|
|
|
|
<enum name="emojiCategory3" value="13" />
|
|
|
|
<enum name="emojiCategory4" value="14" />
|
|
|
|
<enum name="emojiCategory5" value="15" />
|
|
|
|
<enum name="emojiCategory6" value="16" />
|
2011-12-13 08:30:51 +00:00
|
|
|
</attr>
|
2012-01-24 09:03:50 +00:00
|
|
|
<attr name="elementKeyboard" format="reference"/>
|
2012-03-28 08:33:25 +00:00
|
|
|
<!-- Enable proximity characters correction. Disabled by default. -->
|
|
|
|
<attr name="enableProximityCharsCorrection" format="boolean" />
|
2011-12-13 08:30:51 +00:00
|
|
|
</declare-styleable>
|
2013-01-18 07:47:49 +00:00
|
|
|
|
2014-06-26 07:20:59 +00:00
|
|
|
<declare-styleable name="KeyboardLayoutSet_Feature">
|
|
|
|
<!-- This should be aligned with ScriptUtils.SCRIPT_* -->
|
|
|
|
<attr name="supportedScript" format="enum">
|
|
|
|
<enum name="latin" value="0" />
|
|
|
|
<enum name="cyrillic" value="1" />
|
|
|
|
<enum name="greek" value="2" />
|
|
|
|
<enum name="arabic" value="3" />
|
|
|
|
<enum name="hebrew" value="4" />
|
2014-06-30 09:25:56 +00:00
|
|
|
<enum name="armenian" value="5" />
|
|
|
|
<enum name="georgian" value="6" />
|
2014-06-26 07:20:59 +00:00
|
|
|
</attr>
|
|
|
|
</declare-styleable>
|
|
|
|
|
2013-01-18 07:47:49 +00:00
|
|
|
<declare-styleable name="SeekBarDialogPreference">
|
|
|
|
<attr name="maxValue" format="integer" />
|
2013-01-22 03:32:04 +00:00
|
|
|
<attr name="minValue" format="integer" />
|
|
|
|
<attr name="stepValue" format="integer" />
|
2013-01-18 07:47:49 +00:00
|
|
|
</declare-styleable>
|
2010-08-20 05:35:02 +00:00
|
|
|
</resources>
|