2010-08-20 05:35:02 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<!-- Copyright (C) 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.
|
|
|
|
-->
|
|
|
|
|
|
|
|
<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-12-17 19:55:17 +00:00
|
|
|
<!-- TODO: Get rid of latinKeyboardStyle -->
|
2011-06-16 08:20:29 +00:00
|
|
|
<!-- LatinKeyboard style -->
|
|
|
|
<attr name="latinKeyboardStyle" 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" />
|
2011-12-17 19:55:17 +00:00
|
|
|
<!-- LatinKeyboardView style -->
|
|
|
|
<attr name="latinKeyboardViewStyle" format="reference" />
|
2012-02-08 07:12:11 +00:00
|
|
|
<!-- MoreKeysKeyboard style -->
|
|
|
|
<attr name="moreKeysKeyboardStyle" format="reference" />
|
|
|
|
<!-- MoreKeysKeyboardView style -->
|
|
|
|
<attr name="moreKeysKeyboardViewStyle" format="reference" />
|
|
|
|
<attr name="moreKeysKeyboardPanelStyle" format="reference" />
|
2011-05-24 12:08:20 +00:00
|
|
|
<!-- Suggestions strip style -->
|
|
|
|
<attr name="suggestionsStripBackgroundStyle" format="reference" />
|
2011-09-05 07:46:15 +00:00
|
|
|
<attr name="suggestionsViewStyle" format="reference" />
|
|
|
|
<attr name="moreSuggestionsViewStyle" format="reference" />
|
2011-05-24 12:08:20 +00:00
|
|
|
<attr name="suggestionBackgroundStyle" format="reference" />
|
|
|
|
<attr name="suggestionPreviewBackgroundStyle" 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">
|
2010-08-20 05:35:02 +00:00
|
|
|
<!-- Image for the key. This image needs to be a StateListDrawable, with the following
|
|
|
|
possible states: normal, pressed, checkable, checkable+pressed, checkable+checked,
|
|
|
|
checkable+checked+pressed. -->
|
|
|
|
<attr name="keyBackground" format="reference" />
|
|
|
|
|
2011-08-29 11:28:46 +00:00
|
|
|
<!-- Size of the text for one letter keys. If not defined, keyLetterRatio takes effect. -->
|
2011-08-30 05:15:55 +00:00
|
|
|
<attr name="keyLetterSize" format="dimension" />
|
2011-08-29 11:28:46 +00:00
|
|
|
<!-- Size of the text for keys with multiple letters. If not defined, keyLabelRatio takes
|
|
|
|
effect. -->
|
2011-08-30 05:15:55 +00:00
|
|
|
<attr name="keyLabelSize" format="dimension" />
|
2011-06-15 03:36:53 +00:00
|
|
|
<!-- Size of the text for one letter keys, in the proportion of key height. -->
|
2011-05-12 14:49:19 +00:00
|
|
|
<attr name="keyLetterRatio" format="float" />
|
2011-06-25 10:38:55 +00:00
|
|
|
<!-- Large size of the text for one letter keys, in the proportion of key height. -->
|
|
|
|
<attr name="keyLargeLetterRatio" format="float" />
|
2011-08-29 11:28:46 +00:00
|
|
|
<!-- Size of the text for keys with multiple letters, in the proportion of key height. -->
|
2011-06-15 03:36:53 +00:00
|
|
|
<attr name="keyLabelRatio" format="float" />
|
2011-06-25 10:38:55 +00:00
|
|
|
<!-- Size of the text for hint letter (= one character hint label), in the proportion of
|
|
|
|
key height. -->
|
2011-06-15 03:36:53 +00:00
|
|
|
<attr name="keyHintLetterRatio" format="float" />
|
2011-06-25 10:38:55 +00:00
|
|
|
<!-- Size of the text for hint label, in the proportion of key height. -->
|
|
|
|
<attr name="keyHintLabelRatio" format="float" />
|
2012-01-26 09:03:30 +00:00
|
|
|
<!-- Size of the text for shifted letter hint, in the proportion of key height. -->
|
|
|
|
<attr name="keyShiftedLetterHintRatio" format="float" />
|
2011-06-28 07:32:39 +00:00
|
|
|
<!-- Horizontal padding of left/right aligned key label to the edge of the key. -->
|
|
|
|
<attr name="keyLabelHorizontalPadding" format="dimension" />
|
|
|
|
<!-- Top and right padding of hint letter to the edge of the key.-->
|
|
|
|
<attr name="keyHintLetterPadding" format="dimension" />
|
2011-09-07 12:56:42 +00:00
|
|
|
<!-- Bottom padding of popup hint letter "..." to the edge of the key.-->
|
|
|
|
<attr name="keyPopupHintLetterPadding" format="dimension" />
|
2012-01-26 09:03:30 +00:00
|
|
|
<!-- Top and right padding of shifted letter hint to the edge of the key.-->
|
|
|
|
<attr name="keyShiftedLetterHintPadding" format="dimension" />
|
2010-08-20 05:35:02 +00:00
|
|
|
|
|
|
|
<!-- Color to use for the label in a key. -->
|
|
|
|
<attr name="keyTextColor" format="color" />
|
2011-06-15 03:36:53 +00:00
|
|
|
<!-- Color to use for the label in a key when in inactivated state. -->
|
|
|
|
<attr name="keyTextInactivatedColor" format="color" />
|
2011-06-25 10:38:55 +00:00
|
|
|
<!-- Key hint letter (= one character hint label) color -->
|
2011-06-15 03:36:53 +00:00
|
|
|
<attr name="keyHintLetterColor" format="color" />
|
2011-06-25 10:38:55 +00:00
|
|
|
<!-- Key hint label color -->
|
|
|
|
<attr name="keyHintLabelColor" format="color" />
|
2012-01-26 09:03:30 +00:00
|
|
|
<!-- Shifted letter hint colors -->
|
|
|
|
<attr name="keyShiftedLetterHintInactivatedColor" format="color" />
|
|
|
|
<attr name="keyShiftedLetterHintActivatedColor" format="color" />
|
2010-08-20 05:35:02 +00:00
|
|
|
|
|
|
|
<!-- Layout resource for key press feedback.-->
|
|
|
|
<attr name="keyPreviewLayout" format="reference" />
|
2011-06-27 08:51:36 +00:00
|
|
|
<!-- The background for key press feedback. -->
|
|
|
|
<attr name="keyPreviewBackground" format="reference" />
|
2011-06-27 18:01:35 +00:00
|
|
|
<!-- The background for the left edge key press feedback. -->
|
|
|
|
<attr name="keyPreviewLeftBackground" format="reference" />
|
|
|
|
<!-- The background for the right edge key press feedback. -->
|
|
|
|
<attr name="keyPreviewRightBackground" format="reference" />
|
2011-10-12 09:50:04 +00:00
|
|
|
<!-- The width of rectangle part of the key press feedback background. -->
|
|
|
|
<attr name="keyPreviewBackgroundWidth" format="dimension" />
|
|
|
|
<!-- The height of rectangle part of the key press feedback background. -->
|
|
|
|
<attr name="keyPreviewBackgroundHeight" format="dimension" />
|
2011-06-27 08:51:36 +00:00
|
|
|
<!-- The text color for key press feedback. -->
|
|
|
|
<attr name="keyPreviewTextColor" format="color" />
|
2010-08-20 05:35:02 +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" />
|
2011-06-25 10:38:55 +00:00
|
|
|
<!-- Size of the text for key press feedback popup, int the proportion of key height -->
|
|
|
|
<attr name="keyPreviewTextRatio" format="float" />
|
2012-01-25 11:14:39 +00:00
|
|
|
<!-- Delay after key releasing and key press feedback dismissing in millisecond -->
|
|
|
|
<attr name="keyPreviewLingerTimeout" format="integer" />
|
2010-08-20 05:35:02 +00:00
|
|
|
|
|
|
|
<!-- Amount to offset the touch Y coordinate by, for bias correction. -->
|
|
|
|
<attr name="verticalCorrection" format="dimension" />
|
|
|
|
|
2011-08-31 06:26:32 +00:00
|
|
|
<!-- Layout resource for more keys panel -->
|
|
|
|
<attr name="moreKeysLayout" format="reference" />
|
2010-08-20 05:35:02 +00:00
|
|
|
|
|
|
|
<attr name="shadowColor" format="color" />
|
|
|
|
<attr name="shadowRadius" format="float" />
|
2012-03-13 08:28:52 +00:00
|
|
|
<attr name="backgroundDimAlpha" format="integer" />
|
2010-08-20 05:35:02 +00:00
|
|
|
|
2011-06-15 03:36:53 +00:00
|
|
|
<attr name="keyTextStyle" format="enum">
|
2010-12-01 03:22:19 +00:00
|
|
|
<!-- This should be aligned with Typeface.NORMAL etc. -->
|
2010-11-22 00:40:38 +00:00
|
|
|
<enum name="normal" value="0" />
|
|
|
|
<enum name="bold" value="1" />
|
|
|
|
<enum name="italic" value="2" />
|
2010-12-01 03:22:19 +00:00
|
|
|
<enum name="boldItalic" value="3" />
|
2010-08-20 05:35:02 +00:00
|
|
|
</attr>
|
|
|
|
</declare-styleable>
|
|
|
|
|
2011-12-17 19:55:17 +00:00
|
|
|
<declare-styleable name="LatinKeyboardView">
|
2011-12-17 23:13:36 +00:00
|
|
|
<attr name="autoCorrectionSpacebarLedEnabled" format="boolean" />
|
|
|
|
<attr name="autoCorrectionSpacebarLedIcon" format="reference" />
|
|
|
|
<!-- Size of the text for spacebar language label, in the proportion of key height. -->
|
|
|
|
<attr name="spacebarTextRatio" format="fraction" />
|
|
|
|
<attr name="spacebarTextColor" format="color" />
|
|
|
|
<attr name="spacebarTextShadowColor" format="color" />
|
2012-03-13 05:15:39 +00:00
|
|
|
<!-- Animation parameters for spacebar language label. -->
|
|
|
|
<attr name="durationOfFadeoutLanguageOnSpacebar" format="integer|enum">
|
|
|
|
<!-- This should be aligned with LatinKeyboardView.LANGUAGE_ON_SPACEBAR_* -->
|
|
|
|
<enum name="neverDisplay" value="0" />
|
|
|
|
<enum name="alwaysDisplay" value="-1" />
|
|
|
|
</attr>
|
|
|
|
<attr name="delayBeforeFadeoutLangageOnSpacebar" format="integer" />
|
2012-03-13 07:47:45 +00:00
|
|
|
<attr name="finalAlphaOfLanguageOnSpacebar" format="integer" />
|
2012-01-25 11:14:39 +00:00
|
|
|
<!-- Key detection hysteresis distance. -->
|
|
|
|
<attr name="keyHysteresisDistance" format="dimension" />
|
|
|
|
<!-- Touch noise threshold time in millisecond -->
|
|
|
|
<attr name="touchNoiseThresholdTime" format="integer" />
|
|
|
|
<!-- Touch noise threshold distance in millimeter -->
|
|
|
|
<attr name="touchNoiseThresholdDistance" format="dimension" />
|
|
|
|
<!-- Sliding key input enable -->
|
|
|
|
<attr name="slidingKeyInputEnable" format="boolean" />
|
|
|
|
<!-- Key repeat start timeout -->
|
|
|
|
<attr name="keyRepeatStartTimeout" format="integer" />
|
|
|
|
<!-- Key repeat interval in millisecond. -->
|
|
|
|
<attr name="keyRepeatInterval" format="integer" />
|
|
|
|
<!-- Long press timeout of letter key in millisecond. -->
|
|
|
|
<attr name="longPressKeyTimeout" format="integer" />
|
|
|
|
<!-- Long press timeout of shift key in millisecond. -->
|
|
|
|
<attr name="longPressShiftKeyTimeout" format="integer" />
|
|
|
|
<!-- Long press timeout of space key in millisecond. -->
|
|
|
|
<attr name="longPressSpaceKeyTimeout" format="integer" />
|
|
|
|
<!-- Ignore special key timeout while typing in millisecond. -->
|
|
|
|
<attr name="ignoreSpecialKeyTimeout" format="integer" />
|
2012-02-08 07:12:11 +00:00
|
|
|
<!-- More keys keyboard will shown at touched point. -->
|
|
|
|
<attr name="showMoreKeysKeyboardAtTouchedPoint" format="boolean" />
|
2011-12-17 19:55:17 +00:00
|
|
|
</declare-styleable>
|
|
|
|
|
2011-09-01 05:54:28 +00:00
|
|
|
<declare-styleable name="SuggestionsView">
|
2011-08-17 01:18:58 +00:00
|
|
|
<attr name="suggestionStripOption" format="integer">
|
2011-09-21 06:04:50 +00:00
|
|
|
<!-- This should be aligned with SuggestionsViewParams.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" />
|
2011-12-15 07:38:17 +00:00
|
|
|
<attr name="alphaValidTypedWord" format="integer" />
|
2011-09-13 03:35:52 +00:00
|
|
|
<attr name="alphaTypedWord" format="integer" />
|
|
|
|
<attr name="alphaAutoCorrect" format="integer" />
|
|
|
|
<attr name="alphaSuggested" format="integer" />
|
|
|
|
<attr name="alphaObsoleted" format="integer" />
|
2011-09-01 05:54:28 +00:00
|
|
|
<attr name="suggestionsCountInStrip" format="integer" />
|
|
|
|
<attr name="centerSuggestionPercentile" format="integer" />
|
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" />
|
2010-12-08 05:36:41 +00:00
|
|
|
<!-- Default keyboard height -->
|
2011-09-05 09:58:30 +00:00
|
|
|
<attr name="keyboardHeight" format="dimension|fraction" />
|
2010-12-08 05:36:41 +00:00
|
|
|
<!-- Maximum keyboard height, in pixels or percentage of display height -->
|
|
|
|
<attr name="maxKeyboardHeight" format="dimension|fraction" />
|
2011-05-12 05:49:18 +00:00
|
|
|
<!-- Minimum keyboard height represented in pixels, percentage of display height if fraction
|
|
|
|
is positive, or percentage of display width if fraction is negative. -->
|
|
|
|
<attr name="minKeyboardHeight" format="dimension|fraction" />
|
2011-09-26 02:26:38 +00:00
|
|
|
<!-- Keyboard top, bottom, both horizontal edges paddings. -->
|
2011-09-05 09:58:30 +00:00
|
|
|
<attr name="keyboardTopPadding" format="dimension|fraction" />
|
|
|
|
<attr name="keyboardBottomPadding" format="dimension|fraction" />
|
2011-09-26 02:26:38 +00:00
|
|
|
<attr name="keyboardHorizontalEdgesPadding" format="dimension|fraction" />
|
2010-12-08 05:36:41 +00:00
|
|
|
<!-- Default height of a row (key height + vertical gap), in pixels or percentage of
|
|
|
|
keyboard height. -->
|
|
|
|
<attr name="rowHeight" format="dimension|fraction" />
|
2010-10-01 10:40:44 +00:00
|
|
|
<!-- Default horizontal gap between keys. -->
|
|
|
|
<attr name="horizontalGap" format="dimension|fraction" />
|
|
|
|
<!-- Default vertical gap between rows of keys. -->
|
|
|
|
<attr name="verticalGap" format="dimension|fraction" />
|
2011-08-31 06:26:32 +00:00
|
|
|
<!-- More keys keyboard layout template -->
|
|
|
|
<attr name="moreKeysTemplate" format="reference" />
|
2011-06-21 14:38:42 +00:00
|
|
|
<!-- Icon set for key top and key preview. -->
|
|
|
|
<attr name="iconShiftKey" format="reference" />
|
|
|
|
<attr name="iconDeleteKey" format="reference" />
|
|
|
|
<attr name="iconSettingsKey" format="reference" />
|
|
|
|
<attr name="iconSpaceKey" format="reference" />
|
|
|
|
<attr name="iconReturnKey" format="reference" />
|
|
|
|
<attr name="iconSearchKey" format="reference" />
|
|
|
|
<attr name="iconTabKey" format="reference" />
|
2011-08-03 04:29:24 +00:00
|
|
|
<attr name="iconShortcutKey" format="reference" />
|
|
|
|
<attr name="iconShortcutForLabel" format="reference" />
|
2011-12-17 23:00:07 +00:00
|
|
|
<attr name="iconSpaceKeyForNumberLayout" format="reference" />
|
|
|
|
<attr name="iconShiftKeyShifted" format="reference" />
|
2011-12-18 16:11:09 +00:00
|
|
|
<attr name="iconDisabledShortcutKey" format="reference" />
|
2011-06-21 14:38:42 +00:00
|
|
|
<attr name="iconPreviewTabKey" format="reference" />
|
2012-02-18 01:46:01 +00:00
|
|
|
<attr name="iconLanguageSwitchKey" format="reference" />
|
2010-10-01 10:40:44 +00:00
|
|
|
</declare-styleable>
|
|
|
|
|
2010-12-02 09:46:21 +00:00
|
|
|
<declare-styleable name="Keyboard_Key">
|
2010-12-20 11:30:26 +00:00
|
|
|
<!-- The unicode value that this key outputs. -->
|
|
|
|
<attr name="code" format="integer" />
|
2011-11-30 08:54:58 +00:00
|
|
|
<!-- The alternate unicode value that this key outputs while typing. -->
|
|
|
|
<attr name="altCode" format="integer" />
|
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_* -->
|
|
|
|
<enum name="normal" value="0" />
|
|
|
|
<enum name="functional" value="1" />
|
2011-09-15 07:13:04 +00:00
|
|
|
<enum name="action" value="2" />
|
2012-01-26 09:03:30 +00:00
|
|
|
<enum name="stickyOff" value="3" />
|
|
|
|
<enum name="stickyOn" value="4" />
|
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>
|
2010-10-01 10:40:44 +00:00
|
|
|
<!-- The string of characters to output when this key is pressed. -->
|
|
|
|
<attr name="keyOutputText" format="string" />
|
|
|
|
<!-- The label to display on the key. -->
|
|
|
|
<attr name="keyLabel" 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" />
|
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" />
|
2011-06-25 10:38:55 +00:00
|
|
|
<flag name="alignLeftOfCenter" value="0x08" />
|
|
|
|
<flag name="largeLetter" value="0x10" />
|
|
|
|
<flag name="fontNormal" value="0x20" />
|
|
|
|
<flag name="fontMonoSpace" value="0x40" />
|
|
|
|
<flag name="followKeyLetterRatio" value="0x80" />
|
|
|
|
<flag name="followKeyHintLabelRatio" value="0x100" />
|
|
|
|
<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" />
|
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" />
|
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. -->
|
|
|
|
<flag name="preserveCase" value="0x8000" />
|
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. -->
|
|
|
|
<flag name="shiftedLetterActivated" value="0x10000" />
|
2012-02-07 08:07:23 +00:00
|
|
|
<!-- If true, use EditorInfo.actionLabel for the key label. -->
|
|
|
|
<flag name="fromCustomActionLabel" value="0x20000" />
|
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>
|
2010-10-01 10:40:44 +00:00
|
|
|
<!-- The icon to display on the key instead of the label. -->
|
2011-06-21 14:38:42 +00:00
|
|
|
<attr name="keyIcon" format="enum">
|
2012-02-02 15:18:47 +00:00
|
|
|
<!-- This should be aligned with the KeyboardIconsSet.ICON_* -->
|
2012-02-07 08:07:23 +00:00
|
|
|
<enum name="iconUndefined" value="0" />
|
2011-06-21 14:38:42 +00:00
|
|
|
<enum name="iconShiftKey" value="1" />
|
2011-08-03 04:29:24 +00:00
|
|
|
<enum name="iconDeleteKey" value="2" />
|
|
|
|
<enum name="iconSettingsKey" value="3" />
|
|
|
|
<enum name="iconSpaceKey" value="4" />
|
|
|
|
<enum name="iconReturnKey" value="5" />
|
|
|
|
<enum name="iconSearchKey" value="6" />
|
|
|
|
<enum name="iconTabKey" value="7" />
|
|
|
|
<enum name="iconShortcutKey" value="8" />
|
|
|
|
<enum name="iconShortcutForLabel" value="9" />
|
2011-12-18 16:11:09 +00:00
|
|
|
<enum name="iconSpaceKeyForNumberLayout" value="10" />
|
|
|
|
<enum name="iconShiftKeyShifted" value="11" />
|
2012-02-18 01:46:01 +00:00
|
|
|
<enum name="iconLanguageSwitchKey" value="14" />
|
2011-12-18 16:11:09 +00:00
|
|
|
</attr>
|
|
|
|
<!-- The icon for disabled key -->
|
|
|
|
<attr name="keyIconDisabled" format="enum">
|
2012-02-02 15:18:47 +00:00
|
|
|
<!-- This should be aligned with the KeyboardIconsSet.ICON_* -->
|
2011-12-18 16:11:09 +00:00
|
|
|
<enum name="iconDisabledShortcutKey" value="12" />
|
2011-06-21 14:38:42 +00:00
|
|
|
</attr>
|
|
|
|
<!-- The icon to show in the popup preview. -->
|
|
|
|
<attr name="keyIconPreview" format="enum">
|
2012-02-02 15:18:47 +00:00
|
|
|
<!-- This should be aligned with the KeyboardIconsSet.ICON_* -->
|
2011-12-17 23:00:07 +00:00
|
|
|
<enum name="iconPreviewTabKey" value="13" />
|
2011-06-21 14:38:42 +00:00
|
|
|
</attr>
|
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" />
|
2011-04-11 02:30:15 +00:00
|
|
|
<!-- Visual insets -->
|
|
|
|
<attr name="visualInsetsLeft" format="dimension|fraction" />
|
|
|
|
<attr name="visualInsetsRight" format="dimension|fraction" />
|
2011-09-26 02:26:38 +00:00
|
|
|
<!-- Width of the key, in pixels or percentage of display 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.
|
|
|
|
If the value is fillBoth, the actual key width will be determined to fill out the
|
|
|
|
area between the nearest key on the left hand side and the right edge of the keyboard.
|
|
|
|
-->
|
|
|
|
<!-- This should be aligned with KeyboardBuilder.Row.KEYWIDTH_* -->
|
|
|
|
<attr name="keyWidth" format="dimension|fraction|enum">
|
|
|
|
<enum name="fillRight" value="-1" />
|
|
|
|
<enum name="fillBoth" value="-2" />
|
|
|
|
</attr>
|
2011-05-30 11:05:50 +00:00
|
|
|
<!-- The X-coordinate of upper right corner of this key including horizontal gap.
|
|
|
|
If the value is negative, the origin is the right edge of the keyboard. -->
|
|
|
|
<attr name="keyXPos" format="dimension|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">
|
2012-01-25 04:14:59 +00:00
|
|
|
<!-- This should be aligned with KeyboardSet_Element's elementName. -->
|
|
|
|
<attr name="keyboardSetElement" format="enum|string">
|
|
|
|
<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" />
|
|
|
|
<enum name="symbolsShifted" value="6" />
|
|
|
|
<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" />
|
|
|
|
</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="shortcutKeyEnabled" format="boolean" />
|
|
|
|
<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>
|
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-03-12 05:50:03 +00:00
|
|
|
<!-- TODO: Should be removed. This is no longer required if InputMethodSubtype is supported. -->
|
2011-12-13 08:30:51 +00:00
|
|
|
<declare-styleable name="KeyboardSet">
|
|
|
|
<!-- Locale of the keyboard layouts -->
|
|
|
|
<attr name="keyboardLocale" format="string" />
|
|
|
|
</declare-styleable>
|
|
|
|
|
|
|
|
<declare-styleable name="KeyboardSet_Element">
|
|
|
|
<!-- 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" />
|
|
|
|
<enum name="symbolsShifted" value="6" />
|
|
|
|
<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" />
|
2011-12-13 08:30:51 +00:00
|
|
|
</attr>
|
2012-01-24 09:03:50 +00:00
|
|
|
<attr name="elementKeyboard" format="reference"/>
|
2011-12-13 08:30:51 +00:00
|
|
|
</declare-styleable>
|
2010-08-20 05:35:02 +00:00
|
|
|
</resources>
|