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-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" />
|
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" />
|
2012-07-23 06:28:28 +00:00
|
|
|
<attr name="suggestionStripViewStyle" format="reference" />
|
2011-09-05 07:46:15 +00:00
|
|
|
<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" />
|
|
|
|
|
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
|
|
|
|
2010-08-20 05:35:02 +00:00
|
|
|
<!-- Layout resource for key press feedback.-->
|
|
|
|
<attr name="keyPreviewLayout" format="reference" />
|
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
|
|
|
<!-- 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" />
|
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
|
|
|
|
2012-03-13 08:28:52 +00:00
|
|
|
<attr name="backgroundDimAlpha" format="integer" />
|
2010-08-20 05:35:02 +00:00
|
|
|
|
2012-08-07 02:48:10 +00:00
|
|
|
<!-- Attributes for PreviewPlacerView -->
|
2012-07-30 07:06:19 +00:00
|
|
|
<attr name="gestureFloatingPreviewTextSize" format="dimension" />
|
|
|
|
<attr name="gestureFloatingPreviewTextColor" format="color" />
|
|
|
|
<attr name="gestureFloatingPreviewTextOffset" format="dimension" />
|
2012-09-05 10:03:02 +00:00
|
|
|
<attr name="gestureFloatingPreviewColor" format="color" />
|
|
|
|
<attr name="gestureFloatingPreviewHorizontalPadding" format="dimension" />
|
|
|
|
<attr name="gestureFloatingPreviewVerticalPadding" format="dimension" />
|
|
|
|
<attr name="gestureFloatingPreviewRoundRadius" format="dimension" />
|
2012-08-07 02:48:10 +00:00
|
|
|
<!-- Delay after gesture input and gesture floating preview text dismissing in millisecond -->
|
|
|
|
<attr name="gestureFloatingPreviewTextLingerTimeout" format="integer" />
|
2012-08-20 03:57:34 +00:00
|
|
|
<!-- Delay after gesture trail starts fading out in millisecond. -->
|
|
|
|
<attr name="gesturePreviewTrailFadeoutStartDelay" format="integer" />
|
|
|
|
<!-- Duration while gesture preview trail is fading out in millisecond. -->
|
|
|
|
<attr name="gesturePreviewTrailFadeoutDuration" format="integer" />
|
|
|
|
<!-- Interval of updating gesture preview trail in millisecond. -->
|
|
|
|
<attr name="gesturePreviewTrailUpdateInterval" format="integer" />
|
2012-07-30 07:06:19 +00:00
|
|
|
<attr name="gesturePreviewTrailColor" format="color" />
|
2012-09-06 03:12:10 +00:00
|
|
|
<attr name="gesturePreviewTrailStartWidth" format="dimension" />
|
|
|
|
<attr name="gesturePreviewTrailEndWidth" format="dimension" />
|
2010-08-20 05:35:02 +00:00
|
|
|
</declare-styleable>
|
|
|
|
|
2012-07-23 01:27:14 +00:00
|
|
|
<declare-styleable name="MainKeyboardView">
|
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-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" />
|
|
|
|
<!-- 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" />
|
|
|
|
<!-- Ignore special key timeout while typing in millisecond. -->
|
2012-03-14 05:46:22 +00:00
|
|
|
<attr name="ignoreAltCodeKeyTimeout" 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>
|
|
|
|
|
2012-07-23 06:28:28 +00:00
|
|
|
<declare-styleable name="SuggestionStripView">
|
2011-08-17 01:18:58 +00:00
|
|
|
<attr name="suggestionStripOption" format="integer">
|
2012-07-23 06:28:28 +00:00
|
|
|
<!-- This should be aligned with SuggestionStripViewParams.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="alphaValidTypedWord" format="fraction" />
|
|
|
|
<attr name="alphaTypedWord" format="fraction" />
|
|
|
|
<attr name="alphaAutoCorrect" format="fraction" />
|
|
|
|
<attr name="alphaSuggested" format="fraction" />
|
|
|
|
<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" />
|
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" />
|
2012-03-23 08:06:18 +00:00
|
|
|
<!-- Default horizontal gap between keys, in pixels or percentage of keyboard width. -->
|
2010-10-01 10:40:44 +00:00
|
|
|
<attr name="horizontalGap" format="dimension|fraction" />
|
2012-03-23 08:06:18 +00:00
|
|
|
<!-- Default vertical gap between rows of keys, in pixels or percentage of keyboard
|
|
|
|
height. -->
|
2010-10-01 10:40:44 +00:00
|
|
|
<attr name="verticalGap" format="dimension|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" />
|
2011-06-21 14:38:42 +00:00
|
|
|
<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" />
|
2012-04-19 21:24:51 +00:00
|
|
|
<attr name="iconShortcutKeyDisabled" format="reference" />
|
|
|
|
<attr name="iconTabKeyPreview" 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" />
|
2010-10-01 10:40:44 +00:00
|
|
|
</declare-styleable>
|
|
|
|
|
2010-12-02 09:46:21 +00:00
|
|
|
<declare-styleable name="Keyboard_Key">
|
2012-04-09 08:48:32 +00:00
|
|
|
<!-- The unicode value that this key outputs.
|
|
|
|
Code value represented in hexadecimal prefixed with "0x" or code value reference using
|
|
|
|
"!code/<code_name>" notation. -->
|
|
|
|
<attr name="code" format="string" />
|
|
|
|
<!-- 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_* -->
|
|
|
|
<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" />
|
2012-04-11 03:34:30 +00:00
|
|
|
<flag name="fontNormal" value="0x10" />
|
|
|
|
<flag name="fontMonoSpace" value="0x20" />
|
|
|
|
<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" />
|
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. -->
|
2012-04-19 21:24:51 +00:00
|
|
|
<attr name="keyIcon" format="string" />
|
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" />
|
2011-06-21 14:38:42 +00:00
|
|
|
<!-- The icon to show in the popup preview. -->
|
2012-04-19 21:24:51 +00:00
|
|
|
<attr name="keyIconPreview" 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" />
|
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
|
2012-05-14 10:17:09 +00:00
|
|
|
up to the right edge of the keyboard. -->
|
2011-09-26 02:26:38 +00:00
|
|
|
<!-- This should be aligned with KeyboardBuilder.Row.KEYWIDTH_* -->
|
|
|
|
<attr name="keyWidth" format="dimension|fraction|enum">
|
|
|
|
<enum name="fillRight" value="-1" />
|
|
|
|
</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" />
|
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" />
|
|
|
|
<!-- 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">
|
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" />
|
|
|
|
<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-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" />
|
|
|
|
<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"/>
|
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>
|
2010-08-20 05:35:02 +00:00
|
|
|
</resources>
|