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-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-05-24 12:08:20 +00:00
|
|
|
<attr name="keyPreviewStyle" format="reference" />
|
|
|
|
<!-- PopupMiniKeyboardView style -->
|
|
|
|
<attr name="popupMiniKeyboardViewStyle" format="reference" />
|
|
|
|
<attr name="popupMiniKeyboardPanelStyle" format="reference" />
|
|
|
|
<!-- Suggestions strip style -->
|
|
|
|
<attr name="suggestionsStripBackgroundStyle" format="reference" />
|
|
|
|
<attr name="suggestionBackgroundStyle" format="reference" />
|
|
|
|
<attr name="suggestionPreviewBackgroundStyle" format="reference" />
|
2011-06-15 02:49:57 +00:00
|
|
|
<attr name="candidateViewStyle" format="reference" />
|
2011-05-24 12:08:20 +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-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-15 03:36:53 +00:00
|
|
|
<!-- Size of the text for keys with some text, in the proportion of key height. -->
|
|
|
|
<attr name="keyLabelRatio" format="float" />
|
|
|
|
<!-- Size of the text for hint letter, in the proportion of key height. -->
|
|
|
|
<attr name="keyHintLetterRatio" format="float" />
|
|
|
|
<!-- Size of the text for upper case letter, in the proportion of key height. -->
|
|
|
|
<attr name="keyUppercaseLetterRatio" format="float" />
|
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" />
|
|
|
|
<!-- Key hint letter color -->
|
|
|
|
<attr name="keyHintLetterColor" format="color" />
|
|
|
|
<!-- Upper case letter colors -->
|
|
|
|
<attr name="keyUppercaseLetterInactivatedColor" format="color" />
|
|
|
|
<attr name="keyUppercaseLetterActivatedColor" format="color" />
|
2010-08-20 05:35:02 +00:00
|
|
|
|
2011-06-15 03:36:53 +00:00
|
|
|
<!-- Popup hint icon "..." -->
|
|
|
|
<attr name="keyPopupHintIcon" format="reference" />
|
2010-12-01 03:22:19 +00:00
|
|
|
|
2010-08-20 05:35:02 +00:00
|
|
|
<!-- Layout resource for key press feedback.-->
|
|
|
|
<attr name="keyPreviewLayout" format="reference" />
|
|
|
|
|
|
|
|
<!-- 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" />
|
|
|
|
|
2010-09-13 10:26:23 +00:00
|
|
|
<!-- Hysteresis distance for key debouncing -->
|
|
|
|
<attr name="keyHysteresisDistance" format="dimension" />
|
|
|
|
|
2010-08-20 05:35:02 +00:00
|
|
|
<!-- Amount to offset the touch Y coordinate by, for bias correction. -->
|
|
|
|
<attr name="verticalCorrection" format="dimension" />
|
|
|
|
|
|
|
|
<!-- Layout resource for popup keyboards. -->
|
|
|
|
<attr name="popupLayout" format="reference" />
|
|
|
|
|
|
|
|
<attr name="shadowColor" format="color" />
|
|
|
|
<attr name="shadowRadius" format="float" />
|
|
|
|
<attr name="backgroundDimAmount" format="float" />
|
|
|
|
|
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-06-15 02:49:57 +00:00
|
|
|
<declare-styleable name="CandidateView">
|
|
|
|
<attr name="autoCorrectHighlight" format="integer">
|
|
|
|
<flag name="autoCorrectBold" value="0x01" />
|
|
|
|
<flag name="autoCorrectUnderline" value="0x02" />
|
|
|
|
<flag name="autoCorrectInvert" value="0x04" />
|
|
|
|
</attr>
|
|
|
|
<attr name="colorTypedWord" format="color" />
|
|
|
|
<attr name="colorAutoCorrect" format="color" />
|
|
|
|
<attr name="colorSuggested" format="color" />
|
|
|
|
<attr name="iconExpandPane" format="reference" />
|
|
|
|
<attr name="iconClosePane" format="reference" />
|
|
|
|
</declare-styleable>
|
|
|
|
|
2010-12-02 09:46:21 +00:00
|
|
|
<declare-styleable name="Keyboard">
|
2010-12-08 05:36:41 +00:00
|
|
|
<!-- Default keyboard height -->
|
|
|
|
<attr name="keyboardHeight" format="dimension" />
|
|
|
|
<!-- 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-05-30 11:05:50 +00:00
|
|
|
<!-- Default width of a key, in pixels or percentage of display width.
|
|
|
|
If the value is zero, the actual key width will be determined to fill out the area up
|
|
|
|
to the right edge of the keyboard.
|
|
|
|
If the value is negative, 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.
|
|
|
|
-->
|
|
|
|
<attr name="keyWidth" format="dimension|fraction|enum">
|
|
|
|
<enum name="fillRight" value="0" />
|
|
|
|
<enum name="fillBoth" value="-1" />
|
|
|
|
</attr>
|
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" />
|
2010-12-14 06:31:47 +00:00
|
|
|
<!-- Popup keyboard layout template -->
|
|
|
|
<attr name="popupKeyboardTemplate" format="reference" />
|
2011-04-21 06:35:07 +00:00
|
|
|
<!-- Locale of the keyboard layout -->
|
|
|
|
<attr name="keyboardLocale" format="string" />
|
2011-06-21 14:38:42 +00:00
|
|
|
<!-- Icon set for key top and key preview. -->
|
|
|
|
<attr name="iconShiftKey" format="reference" />
|
|
|
|
<attr name="iconToSymbolKey" format="reference" />
|
|
|
|
<attr name="iconToSymbolKeyWithShortcut" format="reference" />
|
|
|
|
<attr name="iconDeleteKey" format="reference" />
|
|
|
|
<attr name="iconSettingsKey" format="reference" />
|
|
|
|
<attr name="iconShortcutKey" format="reference" />
|
|
|
|
<attr name="iconSpaceKey" format="reference" />
|
|
|
|
<attr name="iconReturnKey" format="reference" />
|
|
|
|
<attr name="iconSearchKey" format="reference" />
|
|
|
|
<attr name="iconTabKey" format="reference" />
|
|
|
|
<attr name="iconNum1Key" format="reference" />
|
|
|
|
<attr name="iconNum2Key" format="reference" />
|
|
|
|
<attr name="iconNum3Key" format="reference" />
|
|
|
|
<attr name="iconNum4Key" format="reference" />
|
|
|
|
<attr name="iconNum5Key" format="reference" />
|
|
|
|
<attr name="iconNum6Key" format="reference" />
|
|
|
|
<attr name="iconNum7Key" format="reference" />
|
|
|
|
<attr name="iconNum8Key" format="reference" />
|
|
|
|
<attr name="iconNum9Key" format="reference" />
|
|
|
|
<attr name="iconNum0Key" format="reference" />
|
|
|
|
<attr name="iconNumStarKey" format="reference" />
|
|
|
|
<attr name="iconNumPoundKey" format="reference" />
|
|
|
|
<attr name="iconNumAltKey" format="reference" />
|
|
|
|
<attr name="iconShiftedShiftKey" format="reference" />
|
|
|
|
<attr name="iconPreviewSpaceKey" format="reference" />
|
|
|
|
<attr name="iconPreviewTabKey" format="reference" />
|
|
|
|
<attr name="iconPreviewSettingsKey" format="reference" />
|
|
|
|
<attr name="iconPreviewShortcutKey" 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" />
|
2010-10-01 10:40:44 +00:00
|
|
|
<!-- The characters to display in the popup keyboard. -->
|
|
|
|
<attr name="popupCharacters" format="string" />
|
2010-12-14 06:31:47 +00:00
|
|
|
<!-- Maximum column of popup keyboard -->
|
|
|
|
<attr name="maxPopupKeyboardColumn" format="integer" />
|
2010-10-01 10:40:44 +00:00
|
|
|
<!-- Key edge flags. -->
|
2011-06-02 17:18:57 +00:00
|
|
|
<attr name="keyEdgeFlags" format="integer">
|
2010-10-01 10:40:44 +00:00
|
|
|
<!-- Key is anchored to the left of the keyboard. -->
|
|
|
|
<flag name="left" value="1" />
|
|
|
|
<!-- Key is anchored to the right of the keyboard. -->
|
|
|
|
<flag name="right" value="2" />
|
|
|
|
</attr>
|
2011-04-07 07:12:00 +00:00
|
|
|
<!-- Whether this is a functional key which has different key top than normal key. -->
|
|
|
|
<attr name="isFunctional" format="boolean" />
|
2010-10-01 10:40:44 +00:00
|
|
|
<!-- Whether this is a toggle key. -->
|
|
|
|
<attr name="isSticky" format="boolean" />
|
|
|
|
<!-- Whether long-pressing on this key will make it repeat. -->
|
|
|
|
<attr name="isRepeatable" format="boolean" />
|
|
|
|
<!-- 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-15 03:36:53 +00:00
|
|
|
<!-- The hint letter to display on the key in conjunction with the label. -->
|
|
|
|
<attr name="keyHintLetter" format="string" />
|
|
|
|
<!-- The key label option. -->
|
2011-06-02 17:18:57 +00:00
|
|
|
<attr name="keyLabelOption" format="integer">
|
2011-06-15 03:36:53 +00:00
|
|
|
<!-- This should be aligned with Key.LABEL_OPTION_* -->
|
2011-06-15 04:38:58 +00:00
|
|
|
<flag name="alignLeft" value="0x01" />
|
|
|
|
<flag name="alignRight" value="0x02" />
|
|
|
|
<flag name="alignBottom" value="0x08" />
|
|
|
|
<flag name="fontNormal" value="0x10" />
|
|
|
|
<flag name="popupHint" value="0x20" />
|
2011-06-15 03:36:53 +00:00
|
|
|
<flag name="hasUppercaseLetter" value="0x40" />
|
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">
|
|
|
|
<!-- This should be aligned with KeyboardIcons.ICON_* -->
|
|
|
|
<enum name="iconShiftKey" value="1" />
|
|
|
|
<enum name="iconToSymbolKey" value="2" />
|
|
|
|
<enum name="iconToSymbolKeyWithShortcut" value="3" />
|
|
|
|
<enum name="iconDeleteKey" value="4" />
|
|
|
|
<enum name="iconSettingsKey" value="5" />
|
|
|
|
<enum name="iconShortcutKey" value="6" />
|
|
|
|
<enum name="iconSpaceKey" value="7" />
|
|
|
|
<enum name="iconReturnKey" value="8" />
|
|
|
|
<enum name="iconSearchKey" value="9" />
|
|
|
|
<enum name="iconTabKey" value="10" />
|
|
|
|
<enum name="iconNum1Key" value="11" />
|
|
|
|
<enum name="iconNum2Key" value="12" />
|
|
|
|
<enum name="iconNum3Key" value="13" />
|
|
|
|
<enum name="iconNum4Key" value="14" />
|
|
|
|
<enum name="iconNum5Key" value="15" />
|
|
|
|
<enum name="iconNum6Key" value="16" />
|
|
|
|
<enum name="iconNum7Key" value="17" />
|
|
|
|
<enum name="iconNum8Key" value="18" />
|
|
|
|
<enum name="iconNum9Key" value="19" />
|
|
|
|
<enum name="iconNum0Key" value="20" />
|
|
|
|
<enum name="iconNumStarKey" value="21" />
|
|
|
|
<enum name="iconNumPoundKey" value="22" />
|
|
|
|
<enum name="iconNumAltKey" value="23" />
|
|
|
|
</attr>
|
|
|
|
<!-- Shift key icon for shifted state -->
|
|
|
|
<attr name="keyIconShifted" format="enum">
|
|
|
|
<!-- This should be aligned with KeyboardIcons.ICON_SHIFTED_* -->
|
|
|
|
<enum name="iconShiftedShiftKey" value="24" />
|
|
|
|
</attr>
|
|
|
|
<!-- The icon to show in the popup preview. -->
|
|
|
|
<attr name="keyIconPreview" format="enum">
|
|
|
|
<!-- This should be aligned with KeyboardIcons.ICON_PREVIEW_* -->
|
|
|
|
<enum name="iconPreviewSpaceKey" value="25" />
|
|
|
|
<enum name="iconPreviewTabKey" value="26" />
|
|
|
|
<enum name="iconPreviewSettingsKey" value="27" />
|
|
|
|
<enum name="iconPreviewShortcutKey" value="28" />
|
|
|
|
</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-02-18 02:28:17 +00:00
|
|
|
<!-- The key is enabled and responds on press. -->
|
|
|
|
<attr name="enabled" format="boolean" />
|
2011-04-11 02:30:15 +00:00
|
|
|
<!-- Visual insets -->
|
|
|
|
<attr name="visualInsetsLeft" format="dimension|fraction" />
|
|
|
|
<attr name="visualInsetsRight" format="dimension|fraction" />
|
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_Row">
|
2010-10-01 10:40:44 +00:00
|
|
|
<!-- Row edge flags. -->
|
2011-06-02 17:18:57 +00:00
|
|
|
<attr name="rowEdgeFlags" format="integer">
|
2010-10-01 10:40:44 +00:00
|
|
|
<!-- Row is anchored to the top of the keyboard. -->
|
|
|
|
<flag name="top" value="4" />
|
|
|
|
<!-- Row is anchored to the bottom of the keyboard. -->
|
|
|
|
<flag name="bottom" value="8" />
|
|
|
|
</attr>
|
|
|
|
</declare-styleable>
|
2010-10-07 08:13:30 +00:00
|
|
|
|
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">
|
|
|
|
<!-- 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>
|
2011-06-17 09:25:54 +00:00
|
|
|
<attr name="navigateAction" format="boolean" />
|
2011-02-20 03:54:14 +00:00
|
|
|
<attr name="passwordInput" format="boolean" />
|
2011-06-15 04:38:58 +00:00
|
|
|
<attr name="hasSettingsKey" format="boolean" />
|
|
|
|
<attr name="voiceKeyEnabled" format="boolean" />
|
|
|
|
<attr name="hasVoiceKey" 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" />
|
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
|
|
|
|
|
|
|
<declare-styleable name="LatinKeyboard">
|
|
|
|
<attr name="autoCorrectionSpacebarLedIcon" format="reference" />
|
|
|
|
<attr name="disabledShortcutIcon" format="reference" />
|
|
|
|
<attr name="spacebarTextColor" format="color" />
|
|
|
|
<attr name="spacebarTextShadowColor" format="color" />
|
|
|
|
<attr name="spacebarArrowLeftIcon" format="reference" />
|
|
|
|
<attr name="spacebarArrowRightIcon" format="reference" />
|
|
|
|
<attr name="spacebarArrowPreviewLeftIcon" format="reference" />
|
|
|
|
<attr name="spacebarArrowPreviewRightIcon" format="reference" />
|
|
|
|
</declare-styleable>
|
2010-08-20 05:35:02 +00:00
|
|
|
</resources>
|