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
|
|
|
<!-- 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-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-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" />
|
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" />
|
2011-06-15 03:36:53 +00:00
|
|
|
<!-- Size of the text for upper case letter, in the proportion of key height. -->
|
|
|
|
<attr name="keyUppercaseLetterRatio" 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" />
|
|
|
|
<!-- Top and right padding of upper case letter to the edge of the key.-->
|
|
|
|
<attr name="keyUppercaseLetterPadding" 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" />
|
2011-06-15 03:36:53 +00:00
|
|
|
<!-- Upper case letter colors -->
|
|
|
|
<attr name="keyUppercaseLetterInactivatedColor" format="color" />
|
|
|
|
<attr name="keyUppercaseLetterActivatedColor" 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-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" />
|
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" />
|
2011-06-30 01:09:21 +00:00
|
|
|
<attr name="candidateCountInStrip" format="integer" />
|
2011-06-15 02:49:57 +00:00
|
|
|
</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-06-21 11:10:51 +00:00
|
|
|
<!-- Keyboard top and bottom paddings. -->
|
|
|
|
<attr name="keyboardTopPadding" format="dimension" />
|
|
|
|
<attr name="keyboardBottomPadding" format="dimension" />
|
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-07-24 23:35:54 +00:00
|
|
|
<!-- True if the keyboard is Right-To-Left -->
|
|
|
|
<attr name="isRtlKeyboard" format="boolean" />
|
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="iconShiftedShiftKey" 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" />
|
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-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-06-15 03:36:53 +00:00
|
|
|
<!-- 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" />
|
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" />
|
|
|
|
<flag name="hasUppercaseLetter" value="0x400" />
|
|
|
|
<flag name="hasHintLabel" value="0x800" />
|
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" />
|
2011-07-21 07:02:35 +00:00
|
|
|
<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" />
|
2011-06-21 14:38:42 +00:00
|
|
|
</attr>
|
|
|
|
<!-- Shift key icon for shifted state -->
|
|
|
|
<attr name="keyIconShifted" format="enum">
|
|
|
|
<!-- This should be aligned with KeyboardIcons.ICON_SHIFTED_* -->
|
2011-07-21 07:02:35 +00:00
|
|
|
<enum name="iconShiftedShiftKey" value="11" />
|
2011-06-21 14:38:42 +00:00
|
|
|
</attr>
|
|
|
|
<!-- The icon to show in the popup preview. -->
|
|
|
|
<attr name="keyIconPreview" format="enum">
|
|
|
|
<!-- This should be aligned with KeyboardIcons.ICON_PREVIEW_* -->
|
2011-07-21 07:02:35 +00:00
|
|
|
<enum name="iconPreviewTabKey" value="12" />
|
|
|
|
<enum name="iconPreviewSettingsKey" value="13" />
|
|
|
|
<enum name="iconPreviewShortcutKey" value="14" />
|
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-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_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" />
|
2011-06-23 12:55:56 +00:00
|
|
|
<!-- This should be aligned with KeyboardID.F2KEY_MODE_* -->
|
|
|
|
<attr name="f2KeyMode" format="enum">
|
|
|
|
<enum name="none" value="0" />
|
|
|
|
<enum name="settings" value="1" />
|
|
|
|
<enum name="shortcutIme" value="2" />
|
|
|
|
<enum name="shortcutImeOrSettings" value="3" />
|
|
|
|
</attr>
|
|
|
|
<attr name="clobberSettingsKey" format="boolean" />
|
2011-06-15 04:38:58 +00:00
|
|
|
<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">
|
2011-06-21 11:10:51 +00:00
|
|
|
<attr name="autoCorrectionSpacebarLedEnabled" format="boolean" />
|
2011-06-16 08:20:29 +00:00
|
|
|
<attr name="autoCorrectionSpacebarLedIcon" format="reference" />
|
|
|
|
<attr name="disabledShortcutIcon" format="reference" />
|
|
|
|
<attr name="spacebarTextColor" format="color" />
|
|
|
|
<attr name="spacebarTextShadowColor" format="color" />
|
|
|
|
</declare-styleable>
|
2010-08-20 05:35:02 +00:00
|
|
|
</resources>
|