satok | 979f869 | 2010-08-20 14:35:02 +0900 | [diff] [blame] | 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <!-- Copyright (C) 2010 The Android Open Source Project |
| 3 | |
| 4 | Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | you may not use this file except in compliance with the License. |
| 6 | You may obtain a copy of the License at |
| 7 | |
| 8 | http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | |
| 10 | Unless required by applicable law or agreed to in writing, software |
| 11 | distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | See the License for the specific language governing permissions and |
| 14 | limitations under the License. |
| 15 | --> |
| 16 | |
| 17 | <resources> |
Tadashi G. Takaoka | 13a7419 | 2011-05-24 21:08:20 +0900 | [diff] [blame] | 18 | <declare-styleable name="KeyboardTheme"> |
Tadashi G. Takaoka | b7758d6 | 2011-06-15 13:38:58 +0900 | [diff] [blame] | 19 | <!-- Keyboard style --> |
| 20 | <attr name="keyboardStyle" format="reference" /> |
Tadashi G. Takaoka | 13a7419 | 2011-05-24 21:08:20 +0900 | [diff] [blame] | 21 | <!-- KeyboardView style --> |
| 22 | <attr name="keyboardViewStyle" format="reference" /> |
Tadashi G. Takaoka | c8e45dd | 2012-07-23 10:27:14 +0900 | [diff] [blame] | 23 | <!-- MainKeyboardView style --> |
| 24 | <attr name="mainKeyboardViewStyle" format="reference" /> |
Tadashi G. Takaoka | 2affaf9 | 2012-02-08 16:12:11 +0900 | [diff] [blame] | 25 | <!-- MoreKeysKeyboard style --> |
| 26 | <attr name="moreKeysKeyboardStyle" format="reference" /> |
| 27 | <!-- MoreKeysKeyboardView style --> |
| 28 | <attr name="moreKeysKeyboardViewStyle" format="reference" /> |
| 29 | <attr name="moreKeysKeyboardPanelStyle" format="reference" /> |
Tadashi G. Takaoka | 13a7419 | 2011-05-24 21:08:20 +0900 | [diff] [blame] | 30 | <!-- Suggestions strip style --> |
| 31 | <attr name="suggestionsStripBackgroundStyle" format="reference" /> |
Tadashi G. Takaoka | 4702671 | 2012-07-23 15:28:28 +0900 | [diff] [blame] | 32 | <attr name="suggestionStripViewStyle" format="reference" /> |
Tadashi G. Takaoka | 0e2fa66 | 2011-09-05 16:46:15 +0900 | [diff] [blame] | 33 | <attr name="moreSuggestionsViewStyle" format="reference" /> |
Tadashi G. Takaoka | 13a7419 | 2011-05-24 21:08:20 +0900 | [diff] [blame] | 34 | <attr name="suggestionBackgroundStyle" format="reference" /> |
| 35 | <attr name="suggestionPreviewBackgroundStyle" format="reference" /> |
Yusuke Nojima | d633963 | 2011-09-29 11:53:51 +0900 | [diff] [blame] | 36 | </declare-styleable> |
satok | 979f869 | 2010-08-20 14:35:02 +0900 | [diff] [blame] | 37 | |
Tadashi G. Takaoka | 5a309f5 | 2010-12-02 18:46:21 +0900 | [diff] [blame] | 38 | <declare-styleable name="KeyboardView"> |
satok | 979f869 | 2010-08-20 14:35:02 +0900 | [diff] [blame] | 39 | <!-- Image for the key. This image needs to be a StateListDrawable, with the following |
| 40 | possible states: normal, pressed, checkable, checkable+pressed, checkable+checked, |
| 41 | checkable+checked+pressed. --> |
| 42 | <attr name="keyBackground" format="reference" /> |
| 43 | |
Tadashi G. Takaoka | 71b52a8 | 2012-08-31 10:09:43 +0900 | [diff] [blame] | 44 | <!-- Horizontal padding of left/right aligned key label to the edge of the key. --> |
| 45 | <attr name="keyLabelHorizontalPadding" format="dimension" /> |
| 46 | <!-- Right padding of hint letter to the edge of the key.--> |
| 47 | <attr name="keyHintLetterPadding" format="dimension" /> |
| 48 | <!-- Bottom padding of popup hint letter "..." to the edge of the key.--> |
| 49 | <attr name="keyPopupHintLetterPadding" format="dimension" /> |
| 50 | <!-- Right padding of shifted letter hint to the edge of the key.--> |
| 51 | <attr name="keyShiftedLetterHintPadding" format="dimension" /> |
Tadashi G. Takaoka | dc34da2 | 2012-08-30 17:42:49 +0900 | [diff] [blame] | 52 | <!-- Blur radius of key text shadow. --> |
| 53 | <attr name="keyTextShadowRadius" format="float" /> |
Tadashi G. Takaoka | 71b52a8 | 2012-08-31 10:09:43 +0900 | [diff] [blame] | 54 | |
satok | 979f869 | 2010-08-20 14:35:02 +0900 | [diff] [blame] | 55 | <!-- Layout resource for key press feedback.--> |
| 56 | <attr name="keyPreviewLayout" format="reference" /> |
Tadashi G. Takaoka | e8c6d5a | 2012-09-05 15:34:51 +0900 | [diff] [blame] | 57 | <!-- Key preview background states --> |
| 58 | <attr name="state_left_edge" format="boolean" /> |
| 59 | <attr name="state_right_edge" format="boolean" /> |
| 60 | <attr name="state_has_morekeys" format="boolean" /> |
satok | 979f869 | 2010-08-20 14:35:02 +0900 | [diff] [blame] | 61 | <!-- Vertical offset of the key press feedback from the key. --> |
| 62 | <attr name="keyPreviewOffset" format="dimension" /> |
satok | 979f869 | 2010-08-20 14:35:02 +0900 | [diff] [blame] | 63 | <!-- Height of the key press feedback popup. --> |
| 64 | <attr name="keyPreviewHeight" format="dimension" /> |
Tadashi G. Takaoka | 160f012 | 2012-01-25 20:14:39 +0900 | [diff] [blame] | 65 | <!-- Delay after key releasing and key press feedback dismissing in millisecond --> |
| 66 | <attr name="keyPreviewLingerTimeout" format="integer" /> |
satok | 979f869 | 2010-08-20 14:35:02 +0900 | [diff] [blame] | 67 | |
| 68 | <!-- Amount to offset the touch Y coordinate by, for bias correction. --> |
| 69 | <attr name="verticalCorrection" format="dimension" /> |
| 70 | |
Tadashi G. Takaoka | 9d5601e | 2011-08-31 15:26:32 +0900 | [diff] [blame] | 71 | <!-- Layout resource for more keys panel --> |
| 72 | <attr name="moreKeysLayout" format="reference" /> |
satok | 979f869 | 2010-08-20 14:35:02 +0900 | [diff] [blame] | 73 | |
Tadashi G. Takaoka | 299ac26 | 2012-03-13 17:28:52 +0900 | [diff] [blame] | 74 | <attr name="backgroundDimAlpha" format="integer" /> |
satok | 979f869 | 2010-08-20 14:35:02 +0900 | [diff] [blame] | 75 | |
Tadashi G. Takaoka | 27e4844 | 2012-08-07 11:48:10 +0900 | [diff] [blame] | 76 | <!-- Attributes for PreviewPlacerView --> |
Tadashi G. Takaoka | ca57f5b | 2012-07-30 16:06:19 +0900 | [diff] [blame] | 77 | <attr name="gestureFloatingPreviewTextSize" format="dimension" /> |
| 78 | <attr name="gestureFloatingPreviewTextColor" format="color" /> |
| 79 | <attr name="gestureFloatingPreviewTextOffset" format="dimension" /> |
Tadashi G. Takaoka | 71e2e81 | 2012-09-05 19:03:02 +0900 | [diff] [blame] | 80 | <attr name="gestureFloatingPreviewColor" format="color" /> |
| 81 | <attr name="gestureFloatingPreviewHorizontalPadding" format="dimension" /> |
| 82 | <attr name="gestureFloatingPreviewVerticalPadding" format="dimension" /> |
| 83 | <attr name="gestureFloatingPreviewRoundRadius" format="dimension" /> |
Tadashi G. Takaoka | 27e4844 | 2012-08-07 11:48:10 +0900 | [diff] [blame] | 84 | <!-- Delay after gesture input and gesture floating preview text dismissing in millisecond --> |
| 85 | <attr name="gestureFloatingPreviewTextLingerTimeout" format="integer" /> |
Tadashi G. Takaoka | 333a300 | 2012-08-20 12:57:34 +0900 | [diff] [blame] | 86 | <!-- Delay after gesture trail starts fading out in millisecond. --> |
| 87 | <attr name="gesturePreviewTrailFadeoutStartDelay" format="integer" /> |
| 88 | <!-- Duration while gesture preview trail is fading out in millisecond. --> |
| 89 | <attr name="gesturePreviewTrailFadeoutDuration" format="integer" /> |
| 90 | <!-- Interval of updating gesture preview trail in millisecond. --> |
| 91 | <attr name="gesturePreviewTrailUpdateInterval" format="integer" /> |
Tadashi G. Takaoka | ca57f5b | 2012-07-30 16:06:19 +0900 | [diff] [blame] | 92 | <attr name="gesturePreviewTrailColor" format="color" /> |
Tadashi G. Takaoka | c1780c1 | 2012-09-06 12:12:10 +0900 | [diff] [blame^] | 93 | <attr name="gesturePreviewTrailStartWidth" format="dimension" /> |
| 94 | <attr name="gesturePreviewTrailEndWidth" format="dimension" /> |
satok | 979f869 | 2010-08-20 14:35:02 +0900 | [diff] [blame] | 95 | </declare-styleable> |
| 96 | |
Tadashi G. Takaoka | c8e45dd | 2012-07-23 10:27:14 +0900 | [diff] [blame] | 97 | <declare-styleable name="MainKeyboardView"> |
Tadashi G. Takaoka | 4112dc0 | 2011-12-18 08:13:36 +0900 | [diff] [blame] | 98 | <attr name="autoCorrectionSpacebarLedEnabled" format="boolean" /> |
| 99 | <attr name="autoCorrectionSpacebarLedIcon" format="reference" /> |
| 100 | <!-- Size of the text for spacebar language label, in the proportion of key height. --> |
| 101 | <attr name="spacebarTextRatio" format="fraction" /> |
| 102 | <attr name="spacebarTextColor" format="color" /> |
| 103 | <attr name="spacebarTextShadowColor" format="color" /> |
Tadashi G. Takaoka | d7c4ba1 | 2012-03-14 12:33:03 +0900 | [diff] [blame] | 104 | <!-- Fadeout animator for spacebar language label. --> |
Tadashi G. Takaoka | 31c94ce | 2012-03-16 14:05:20 +0900 | [diff] [blame] | 105 | <attr name="languageOnSpacebarFinalAlpha" format="integer" /> |
Tadashi G. Takaoka | d7c4ba1 | 2012-03-14 12:33:03 +0900 | [diff] [blame] | 106 | <attr name="languageOnSpacebarFadeoutAnimator" format="reference" /> |
Tadashi G. Takaoka | 73a46bf | 2012-03-14 14:46:22 +0900 | [diff] [blame] | 107 | <!-- Fadeout and fadein animator for altCodeWhileTyping keys. --> |
| 108 | <attr name="altCodeKeyWhileTypingFadeoutAnimator" format="reference" /> |
| 109 | <attr name="altCodeKeyWhileTypingFadeinAnimator" format="reference" /> |
Tadashi G. Takaoka | 160f012 | 2012-01-25 20:14:39 +0900 | [diff] [blame] | 110 | <!-- Key detection hysteresis distance. --> |
| 111 | <attr name="keyHysteresisDistance" format="dimension" /> |
| 112 | <!-- Touch noise threshold time in millisecond --> |
| 113 | <attr name="touchNoiseThresholdTime" format="integer" /> |
| 114 | <!-- Touch noise threshold distance in millimeter --> |
| 115 | <attr name="touchNoiseThresholdDistance" format="dimension" /> |
| 116 | <!-- Sliding key input enable --> |
| 117 | <attr name="slidingKeyInputEnable" format="boolean" /> |
| 118 | <!-- Key repeat start timeout --> |
| 119 | <attr name="keyRepeatStartTimeout" format="integer" /> |
| 120 | <!-- Key repeat interval in millisecond. --> |
| 121 | <attr name="keyRepeatInterval" format="integer" /> |
| 122 | <!-- Long press timeout of letter key in millisecond. --> |
| 123 | <attr name="longPressKeyTimeout" format="integer" /> |
| 124 | <!-- Long press timeout of shift key in millisecond. --> |
| 125 | <attr name="longPressShiftKeyTimeout" format="integer" /> |
Tadashi G. Takaoka | 160f012 | 2012-01-25 20:14:39 +0900 | [diff] [blame] | 126 | <!-- Ignore special key timeout while typing in millisecond. --> |
Tadashi G. Takaoka | 73a46bf | 2012-03-14 14:46:22 +0900 | [diff] [blame] | 127 | <attr name="ignoreAltCodeKeyTimeout" format="integer" /> |
Tadashi G. Takaoka | 2affaf9 | 2012-02-08 16:12:11 +0900 | [diff] [blame] | 128 | <!-- More keys keyboard will shown at touched point. --> |
| 129 | <attr name="showMoreKeysKeyboardAtTouchedPoint" format="boolean" /> |
Tadashi G. Takaoka | 5afc3ae | 2011-12-18 04:55:17 +0900 | [diff] [blame] | 130 | </declare-styleable> |
| 131 | |
Tadashi G. Takaoka | 4702671 | 2012-07-23 15:28:28 +0900 | [diff] [blame] | 132 | <declare-styleable name="SuggestionStripView"> |
Tadashi G. Takaoka | d47a955 | 2011-08-16 18:18:58 -0700 | [diff] [blame] | 133 | <attr name="suggestionStripOption" format="integer"> |
Tadashi G. Takaoka | 4702671 | 2012-07-23 15:28:28 +0900 | [diff] [blame] | 134 | <!-- This should be aligned with SuggestionStripViewParams.AUTO_CORRECT_* and etc. --> |
Tadashi G. Takaoka | 08a6f2a | 2011-06-15 11:49:57 +0900 | [diff] [blame] | 135 | <flag name="autoCorrectBold" value="0x01" /> |
| 136 | <flag name="autoCorrectUnderline" value="0x02" /> |
Tadashi G. Takaoka | 77a87e3 | 2011-09-21 15:04:50 +0900 | [diff] [blame] | 137 | <flag name="validTypedWordBold" value="0x04" /> |
Tadashi G. Takaoka | 08a6f2a | 2011-06-15 11:49:57 +0900 | [diff] [blame] | 138 | </attr> |
Tadashi G. Takaoka | a44685a | 2011-12-15 16:38:17 +0900 | [diff] [blame] | 139 | <attr name="colorValidTypedWord" format="color" /> |
Tadashi G. Takaoka | 08a6f2a | 2011-06-15 11:49:57 +0900 | [diff] [blame] | 140 | <attr name="colorTypedWord" format="color" /> |
| 141 | <attr name="colorAutoCorrect" format="color" /> |
| 142 | <attr name="colorSuggested" format="color" /> |
Tadashi G. Takaoka | ef2bfad | 2012-08-28 13:10:03 +0900 | [diff] [blame] | 143 | <attr name="alphaValidTypedWord" format="fraction" /> |
| 144 | <attr name="alphaTypedWord" format="fraction" /> |
| 145 | <attr name="alphaAutoCorrect" format="fraction" /> |
| 146 | <attr name="alphaSuggested" format="fraction" /> |
| 147 | <attr name="alphaObsoleted" format="fraction" /> |
Tadashi G. Takaoka | 913e2ae | 2011-09-01 14:54:28 +0900 | [diff] [blame] | 148 | <attr name="suggestionsCountInStrip" format="integer" /> |
Tadashi G. Takaoka | ef2bfad | 2012-08-28 13:10:03 +0900 | [diff] [blame] | 149 | <attr name="centerSuggestionPercentile" format="fraction" /> |
Tadashi G. Takaoka | 9676038 | 2011-09-05 17:22:34 +0900 | [diff] [blame] | 150 | <attr name="maxMoreSuggestionsRow" format="integer" /> |
| 151 | <attr name="minMoreSuggestionsWidth" format="float" /> |
Tadashi G. Takaoka | 08a6f2a | 2011-06-15 11:49:57 +0900 | [diff] [blame] | 152 | </declare-styleable> |
| 153 | |
Tadashi G. Takaoka | 5a309f5 | 2010-12-02 18:46:21 +0900 | [diff] [blame] | 154 | <declare-styleable name="Keyboard"> |
Tadashi G. Takaoka | 5c26922 | 2011-09-30 21:12:20 +0900 | [diff] [blame] | 155 | <attr name="themeId" format="integer" /> |
| 156 | <!-- Touch position correction --> |
| 157 | <attr name="touchPositionCorrectionData" format="reference" /> |
Tadashi G. Takaoka | 9f01ed5 | 2010-12-08 14:36:41 +0900 | [diff] [blame] | 158 | <!-- Default keyboard height --> |
Tadashi G. Takaoka | ea0c567 | 2011-09-05 18:58:30 +0900 | [diff] [blame] | 159 | <attr name="keyboardHeight" format="dimension|fraction" /> |
Tadashi G. Takaoka | 9f01ed5 | 2010-12-08 14:36:41 +0900 | [diff] [blame] | 160 | <!-- Maximum keyboard height, in pixels or percentage of display height --> |
| 161 | <attr name="maxKeyboardHeight" format="dimension|fraction" /> |
Tadashi G. Takaoka | ff483e8 | 2011-05-12 14:49:18 +0900 | [diff] [blame] | 162 | <!-- Minimum keyboard height represented in pixels, percentage of display height if fraction |
| 163 | is positive, or percentage of display width if fraction is negative. --> |
| 164 | <attr name="minKeyboardHeight" format="dimension|fraction" /> |
Tadashi G. Takaoka | 287f4f8 | 2011-09-26 11:26:38 +0900 | [diff] [blame] | 165 | <!-- Keyboard top, bottom, both horizontal edges paddings. --> |
Tadashi G. Takaoka | ea0c567 | 2011-09-05 18:58:30 +0900 | [diff] [blame] | 166 | <attr name="keyboardTopPadding" format="dimension|fraction" /> |
| 167 | <attr name="keyboardBottomPadding" format="dimension|fraction" /> |
Tadashi G. Takaoka | 287f4f8 | 2011-09-26 11:26:38 +0900 | [diff] [blame] | 168 | <attr name="keyboardHorizontalEdgesPadding" format="dimension|fraction" /> |
Tadashi G. Takaoka | 9f01ed5 | 2010-12-08 14:36:41 +0900 | [diff] [blame] | 169 | <!-- Default height of a row (key height + vertical gap), in pixels or percentage of |
| 170 | keyboard height. --> |
| 171 | <attr name="rowHeight" format="dimension|fraction" /> |
Tadashi G. Takaoka | e0c965d | 2012-03-23 17:06:18 +0900 | [diff] [blame] | 172 | <!-- Default horizontal gap between keys, in pixels or percentage of keyboard width. --> |
satok | 4fc510a | 2010-10-01 19:40:44 +0900 | [diff] [blame] | 173 | <attr name="horizontalGap" format="dimension|fraction" /> |
Tadashi G. Takaoka | e0c965d | 2012-03-23 17:06:18 +0900 | [diff] [blame] | 174 | <!-- Default vertical gap between rows of keys, in pixels or percentage of keyboard |
| 175 | height. --> |
satok | 4fc510a | 2010-10-01 19:40:44 +0900 | [diff] [blame] | 176 | <attr name="verticalGap" format="dimension|fraction" /> |
Tadashi G. Takaoka | 9d5601e | 2011-08-31 15:26:32 +0900 | [diff] [blame] | 177 | <!-- More keys keyboard layout template --> |
| 178 | <attr name="moreKeysTemplate" format="reference" /> |
Tadashi G. Takaoka | cf41aff | 2012-04-20 06:24:51 +0900 | [diff] [blame] | 179 | <!-- Icon set for key top and key preview. |
| 180 | These should be aligned with KeyboardIconsSet.NAMES_AND_ATTR_IDS[] --> |
Tadashi G. Takaoka | c2a2178 | 2011-06-21 23:38:42 +0900 | [diff] [blame] | 181 | <attr name="iconShiftKey" format="reference" /> |
Tadashi G. Takaoka | c2a2178 | 2011-06-21 23:38:42 +0900 | [diff] [blame] | 182 | <attr name="iconDeleteKey" format="reference" /> |
| 183 | <attr name="iconSettingsKey" format="reference" /> |
Tadashi G. Takaoka | c2a2178 | 2011-06-21 23:38:42 +0900 | [diff] [blame] | 184 | <attr name="iconSpaceKey" format="reference" /> |
Tadashi G. Takaoka | cf41aff | 2012-04-20 06:24:51 +0900 | [diff] [blame] | 185 | <attr name="iconEnterKey" format="reference" /> |
Tadashi G. Takaoka | c2a2178 | 2011-06-21 23:38:42 +0900 | [diff] [blame] | 186 | <attr name="iconSearchKey" format="reference" /> |
| 187 | <attr name="iconTabKey" format="reference" /> |
Tadashi G. Takaoka | 62d4a96 | 2011-08-02 21:29:24 -0700 | [diff] [blame] | 188 | <attr name="iconShortcutKey" format="reference" /> |
| 189 | <attr name="iconShortcutForLabel" format="reference" /> |
Tadashi G. Takaoka | 7bd714c | 2011-12-18 08:00:07 +0900 | [diff] [blame] | 190 | <attr name="iconSpaceKeyForNumberLayout" format="reference" /> |
Tadashi G. Takaoka | 7bd714c | 2011-12-18 08:00:07 +0900 | [diff] [blame] | 191 | <attr name="iconShiftKeyShifted" format="reference" /> |
Tadashi G. Takaoka | cf41aff | 2012-04-20 06:24:51 +0900 | [diff] [blame] | 192 | <attr name="iconShortcutKeyDisabled" format="reference" /> |
| 193 | <attr name="iconTabKeyPreview" format="reference" /> |
Tadashi G. Takaoka | 81d4e3c | 2012-02-17 17:46:01 -0800 | [diff] [blame] | 194 | <attr name="iconLanguageSwitchKey" format="reference" /> |
Tadashi G. Takaoka | 39390d3 | 2012-03-23 19:14:32 +0900 | [diff] [blame] | 195 | <attr name="iconZwnjKey" format="reference" /> |
| 196 | <attr name="iconZwjKey" format="reference" /> |
satok | 4fc510a | 2010-10-01 19:40:44 +0900 | [diff] [blame] | 197 | </declare-styleable> |
| 198 | |
Tadashi G. Takaoka | 5a309f5 | 2010-12-02 18:46:21 +0900 | [diff] [blame] | 199 | <declare-styleable name="Keyboard_Key"> |
Tadashi G. Takaoka | ed3bac9 | 2012-04-09 17:48:32 +0900 | [diff] [blame] | 200 | <!-- The unicode value that this key outputs. |
| 201 | Code value represented in hexadecimal prefixed with "0x" or code value reference using |
| 202 | "!code/<code_name>" notation. --> |
| 203 | <attr name="code" format="string" /> |
| 204 | <!-- The alternate unicode value that this key outputs while typing. |
| 205 | Code value represented in hexadecimal prefixed with "0x" or code value reference using |
| 206 | "!code/<code_name>" notation. --> |
| 207 | <attr name="altCode" format="string" /> |
Tadashi G. Takaoka | 9d5601e | 2011-08-31 15:26:32 +0900 | [diff] [blame] | 208 | <!-- The keys to display in the more keys keyboard. --> |
| 209 | <attr name="moreKeys" format="string" /> |
Tadashi G. Takaoka | 15c99e9 | 2012-01-30 11:14:45 +0900 | [diff] [blame] | 210 | <!-- The keys to display in the more keys keyboard in addition to moreKeys. |
| 211 | The additional more keys are inserted at the '%' markers in the moreKeys if any. |
| 212 | They are inserted at the head of moreKeys if none. |
| 213 | If there are remaining entries of additionalMoreKeys even after all '%' markers have |
| 214 | been replaced, those remaining entries are appended at the end of moreKeys. --> |
| 215 | <attr name="additionalMoreKeys" format="string" /> |
Tadashi G. Takaoka | 9d5601e | 2011-08-31 15:26:32 +0900 | [diff] [blame] | 216 | <!-- Maximum column of more keys keyboard --> |
Tadashi G. Takaoka | 7a39bd4 | 2012-02-07 17:07:23 +0900 | [diff] [blame] | 217 | <attr name="maxMoreKeysColumn" format="integer" /> |
Tadashi G. Takaoka | 7918ed0 | 2011-09-15 14:21:46 +0900 | [diff] [blame] | 218 | <attr name="backgroundType" format="enum"> |
| 219 | <!-- This should be aligned with Key.BACKGROUND_TYPE_* --> |
| 220 | <enum name="normal" value="0" /> |
| 221 | <enum name="functional" value="1" /> |
Tadashi G. Takaoka | a6d3a4d | 2011-09-15 16:13:04 +0900 | [diff] [blame] | 222 | <enum name="action" value="2" /> |
Tadashi G. Takaoka | ca2f051 | 2012-01-26 18:03:30 +0900 | [diff] [blame] | 223 | <enum name="stickyOff" value="3" /> |
| 224 | <enum name="stickyOn" value="4" /> |
Tadashi G. Takaoka | 7918ed0 | 2011-09-15 14:21:46 +0900 | [diff] [blame] | 225 | </attr> |
Tadashi G. Takaoka | 13d5f66 | 2011-11-21 19:55:38 -0800 | [diff] [blame] | 226 | <!-- The key action flags. --> |
| 227 | <attr name="keyActionFlags" format="integer"> |
| 228 | <!-- This should be aligned with Key.ACTION_FLAGS_* --> |
| 229 | <flag name="isRepeatable" value="0x01" /> |
| 230 | <flag name="noKeyPreview" value="0x02" /> |
Tadashi G. Takaoka | 2013bab | 2011-11-30 17:54:58 +0900 | [diff] [blame] | 231 | <flag name="altCodeWhileTyping" value="0x04" /> |
Tadashi G. Takaoka | a5c96f3 | 2012-02-01 15:07:25 +0900 | [diff] [blame] | 232 | <flag name="enableLongPress" value="0x08" /> |
Tadashi G. Takaoka | 13d5f66 | 2011-11-21 19:55:38 -0800 | [diff] [blame] | 233 | </attr> |
satok | 4fc510a | 2010-10-01 19:40:44 +0900 | [diff] [blame] | 234 | <!-- The string of characters to output when this key is pressed. --> |
| 235 | <attr name="keyOutputText" format="string" /> |
| 236 | <!-- The label to display on the key. --> |
| 237 | <attr name="keyLabel" format="string" /> |
Tadashi G. Takaoka | 520a297 | 2011-06-25 19:38:55 +0900 | [diff] [blame] | 238 | <!-- The hint label to display on the key in conjunction with the label. --> |
| 239 | <attr name="keyHintLabel" format="string" /> |
Tadashi G. Takaoka | 13d5f66 | 2011-11-21 19:55:38 -0800 | [diff] [blame] | 240 | <!-- The key label flags. --> |
| 241 | <attr name="keyLabelFlags" format="integer"> |
| 242 | <!-- This should be aligned with Key.LABEL_FLAGS__* --> |
Tadashi G. Takaoka | b7758d6 | 2011-06-15 13:38:58 +0900 | [diff] [blame] | 243 | <flag name="alignLeft" value="0x01" /> |
| 244 | <flag name="alignRight" value="0x02" /> |
Tadashi G. Takaoka | 520a297 | 2011-06-25 19:38:55 +0900 | [diff] [blame] | 245 | <flag name="alignLeftOfCenter" value="0x08" /> |
Tadashi G. Takaoka | ab0d0d8 | 2012-04-11 12:34:30 +0900 | [diff] [blame] | 246 | <flag name="fontNormal" value="0x10" /> |
| 247 | <flag name="fontMonoSpace" value="0x20" /> |
| 248 | <flag name="followKeyLargeLetterRatio" value="0x40" /> |
Tadashi G. Takaoka | 520a297 | 2011-06-25 19:38:55 +0900 | [diff] [blame] | 249 | <flag name="followKeyLetterRatio" value="0x80" /> |
Tadashi G. Takaoka | ab0d0d8 | 2012-04-11 12:34:30 +0900 | [diff] [blame] | 250 | <flag name="followKeyLabelRatio" value="0xC0" /> |
Tadashi G. Takaoka | a08759f | 2012-05-17 19:30:38 +0900 | [diff] [blame] | 251 | <flag name="followKeyLargeLabelRatio" value="0x100" /> |
| 252 | <flag name="followKeyHintLabelRatio" value="0x140" /> |
Tadashi G. Takaoka | 520a297 | 2011-06-25 19:38:55 +0900 | [diff] [blame] | 253 | <flag name="hasPopupHint" value="0x200" /> |
Tadashi G. Takaoka | ca2f051 | 2012-01-26 18:03:30 +0900 | [diff] [blame] | 254 | <flag name="hasShiftedLetterHint" value="0x400" /> |
Tadashi G. Takaoka | 520a297 | 2011-06-25 19:38:55 +0900 | [diff] [blame] | 255 | <flag name="hasHintLabel" value="0x800" /> |
Tadashi G. Takaoka | 62d4a96 | 2011-08-02 21:29:24 -0700 | [diff] [blame] | 256 | <flag name="withIconLeft" value="0x1000" /> |
| 257 | <flag name="withIconRight" value="0x2000" /> |
Tadashi G. Takaoka | 4486d77 | 2011-09-12 16:29:24 +0900 | [diff] [blame] | 258 | <flag name="autoXScale" value="0x4000" /> |
Tadashi G. Takaoka | 09f8b12 | 2012-01-25 19:43:13 +0900 | [diff] [blame] | 259 | <!-- If true, character case of code, altCode, moreKeys, keyOutputText, keyLabel, |
| 260 | or keyHintLabel will never be subject to change. --> |
| 261 | <flag name="preserveCase" value="0x8000" /> |
Tadashi G. Takaoka | ca2f051 | 2012-01-26 18:03:30 +0900 | [diff] [blame] | 262 | <!-- If true, use keyShiftedLetterHintActivatedColor for the shifted letter hint and |
| 263 | keyTextInactivatedColor for the primary key top label. --> |
| 264 | <flag name="shiftedLetterActivated" value="0x10000" /> |
Tadashi G. Takaoka | 7a39bd4 | 2012-02-07 17:07:23 +0900 | [diff] [blame] | 265 | <!-- If true, use EditorInfo.actionLabel for the key label. --> |
| 266 | <flag name="fromCustomActionLabel" value="0x20000" /> |
Tadashi G. Takaoka | b03529a | 2012-03-12 16:30:59 +0900 | [diff] [blame] | 267 | <!-- If true, disable keyHintLabel. --> |
| 268 | <flag name="disableKeyHintLabel" value="0x40000000" /> |
| 269 | <!-- If true, disable additionalMoreKeys. --> |
| 270 | <flag name="disableAdditionalMoreKeys" value="0x80000000" /> |
Tadashi G. Takaoka | cd39f2a | 2010-11-20 08:03:24 -0800 | [diff] [blame] | 271 | </attr> |
satok | 4fc510a | 2010-10-01 19:40:44 +0900 | [diff] [blame] | 272 | <!-- The icon to display on the key instead of the label. --> |
Tadashi G. Takaoka | cf41aff | 2012-04-20 06:24:51 +0900 | [diff] [blame] | 273 | <attr name="keyIcon" format="string" /> |
Tadashi G. Takaoka | 42fcb2d | 2011-12-19 01:11:09 +0900 | [diff] [blame] | 274 | <!-- The icon for disabled key --> |
Tadashi G. Takaoka | cf41aff | 2012-04-20 06:24:51 +0900 | [diff] [blame] | 275 | <attr name="keyIconDisabled" format="string" /> |
Tadashi G. Takaoka | c2a2178 | 2011-06-21 23:38:42 +0900 | [diff] [blame] | 276 | <!-- The icon to show in the popup preview. --> |
Tadashi G. Takaoka | cf41aff | 2012-04-20 06:24:51 +0900 | [diff] [blame] | 277 | <attr name="keyIconPreview" format="string" /> |
Tadashi G. Takaoka | 0b60f83 | 2010-11-19 14:57:24 -0800 | [diff] [blame] | 278 | <!-- The key style to specify a set of key attributes defined by <key_style/> --> |
| 279 | <attr name="keyStyle" format="string" /> |
Tadashi G. Takaoka | 56abeab | 2011-04-11 11:30:15 +0900 | [diff] [blame] | 280 | <!-- Visual insets --> |
| 281 | <attr name="visualInsetsLeft" format="dimension|fraction" /> |
| 282 | <attr name="visualInsetsRight" format="dimension|fraction" /> |
Tadashi G. Takaoka | 287f4f8 | 2011-09-26 11:26:38 +0900 | [diff] [blame] | 283 | <!-- Width of the key, in pixels or percentage of display width. |
| 284 | If the value is fillRight, the actual key width will be determined to fill out the area |
Tadashi G. Takaoka | 30236ef | 2012-05-14 19:17:09 +0900 | [diff] [blame] | 285 | up to the right edge of the keyboard. --> |
Tadashi G. Takaoka | 287f4f8 | 2011-09-26 11:26:38 +0900 | [diff] [blame] | 286 | <!-- This should be aligned with KeyboardBuilder.Row.KEYWIDTH_* --> |
| 287 | <attr name="keyWidth" format="dimension|fraction|enum"> |
| 288 | <enum name="fillRight" value="-1" /> |
Tadashi G. Takaoka | 287f4f8 | 2011-09-26 11:26:38 +0900 | [diff] [blame] | 289 | </attr> |
Tadashi G. Takaoka | 327763e | 2011-05-30 20:05:50 +0900 | [diff] [blame] | 290 | <!-- The X-coordinate of upper right corner of this key including horizontal gap. |
| 291 | If the value is negative, the origin is the right edge of the keyboard. --> |
| 292 | <attr name="keyXPos" format="dimension|fraction" /> |
Tadashi G. Takaoka | 749cc18 | 2012-08-30 16:05:40 +0900 | [diff] [blame] | 293 | |
| 294 | <!-- Key top visual attributes --> |
| 295 | <attr name="keyTypeface" format="enum"> |
| 296 | <!-- This should be aligned with Typeface.NORMAL etc. --> |
| 297 | <enum name="normal" value="0" /> |
| 298 | <enum name="bold" value="1" /> |
| 299 | <enum name="italic" value="2" /> |
| 300 | <enum name="boldItalic" value="3" /> |
| 301 | </attr> |
| 302 | <!-- Size of the text for one letter keys. If specified as fraction, the text size is |
| 303 | measured in the proportion of key height. --> |
| 304 | <attr name="keyLetterSize" format="dimension|fraction" /> |
| 305 | <!-- Size of the text for keys with multiple letters. If specified as fraction, the text |
| 306 | size is measured in the proportion of key height. --> |
| 307 | <attr name="keyLabelSize" format="dimension|fraction" /> |
| 308 | <!-- Large size of the text for one letter keys, in the proportion of key height. --> |
| 309 | <attr name="keyLargeLetterRatio" format="fraction" /> |
| 310 | <!-- Large size of the text for keys with multiple letters, in the proportion of key height. --> |
| 311 | <attr name="keyLargeLabelRatio" format="fraction" /> |
| 312 | <!-- Size of the text for hint letter (= one character hint label), in the proportion of |
| 313 | key height. --> |
| 314 | <attr name="keyHintLetterRatio" format="fraction" /> |
| 315 | <!-- Size of the text for hint label, in the proportion of key height. --> |
| 316 | <attr name="keyHintLabelRatio" format="fraction" /> |
| 317 | <!-- Size of the text for shifted letter hint, in the proportion of key height. --> |
Tadashi G. Takaoka | 71b52a8 | 2012-08-31 10:09:43 +0900 | [diff] [blame] | 318 | <attr name="keyShiftedLetterHintRatio" format="fraction" /> |
Tadashi G. Takaoka | 749cc18 | 2012-08-30 16:05:40 +0900 | [diff] [blame] | 319 | <!-- Color to use for the label in a key. --> |
| 320 | <attr name="keyTextColor" format="color" /> |
| 321 | <attr name="keyTextShadowColor" format="color" /> |
Tadashi G. Takaoka | 749cc18 | 2012-08-30 16:05:40 +0900 | [diff] [blame] | 322 | <!-- Color to use for the label in a key when in inactivated state. --> |
| 323 | <attr name="keyTextInactivatedColor" format="color" /> |
| 324 | <!-- Key hint letter (= one character hint label) color --> |
| 325 | <attr name="keyHintLetterColor" format="color" /> |
| 326 | <!-- Key hint label color --> |
| 327 | <attr name="keyHintLabelColor" format="color" /> |
| 328 | <!-- Shifted letter hint colors --> |
| 329 | <attr name="keyShiftedLetterHintInactivatedColor" format="color" /> |
| 330 | <attr name="keyShiftedLetterHintActivatedColor" format="color" /> |
| 331 | |
| 332 | <!-- Key preview visual parameters --> |
| 333 | <!-- The text color for key press feedback. --> |
| 334 | <attr name="keyPreviewTextColor" format="color" /> |
| 335 | <!-- Size of the text for key press feedback popup, in the proportion of key height. --> |
| 336 | <attr name="keyPreviewTextRatio" format="fraction" /> |
satok | 4fc510a | 2010-10-01 19:40:44 +0900 | [diff] [blame] | 337 | </declare-styleable> |
| 338 | |
Tadashi G. Takaoka | 5a309f5 | 2010-12-02 18:46:21 +0900 | [diff] [blame] | 339 | <declare-styleable name="Keyboard_Include"> |
Tadashi G. Takaoka | d663555 | 2010-10-07 17:13:30 +0900 | [diff] [blame] | 340 | <attr name="keyboardLayout" format="reference" /> |
| 341 | </declare-styleable> |
Tadashi G. Takaoka | b046511 | 2010-11-11 15:28:14 -0800 | [diff] [blame] | 342 | |
Tadashi G. Takaoka | 5a309f5 | 2010-12-02 18:46:21 +0900 | [diff] [blame] | 343 | <declare-styleable name="Keyboard_Case"> |
Tadashi G. Takaoka | 11d9ee7 | 2012-04-04 14:30:42 +0900 | [diff] [blame] | 344 | <!-- This should be aligned with KeyboardLayoutSet_Element's elementName. --> |
| 345 | <attr name="keyboardLayoutSetElement" format="enum|string"> |
Tadashi G. Takaoka | 83306b9 | 2012-01-25 13:14:59 +0900 | [diff] [blame] | 346 | <enum name="alphabet" value="0" /> |
| 347 | <enum name="alphabetManualShifted" value="1" /> |
| 348 | <enum name="alphabetAutomaticShifted" value="2" /> |
| 349 | <enum name="alphabetShiftLocked" value="3" /> |
| 350 | <enum name="alphabetShiftLockShifted" value="4" /> |
| 351 | <enum name="symbols" value="5" /> |
| 352 | <enum name="symbolsShifted" value="6" /> |
| 353 | <enum name="phone" value="7" /> |
Tadashi G. Takaoka | a5c96f3 | 2012-02-01 15:07:25 +0900 | [diff] [blame] | 354 | <enum name="phoneSymbols" value="8" /> |
Tadashi G. Takaoka | 83306b9 | 2012-01-25 13:14:59 +0900 | [diff] [blame] | 355 | <enum name="number" value="9" /> |
| 356 | </attr> |
Tadashi G. Takaoka | 5a309f5 | 2010-12-02 18:46:21 +0900 | [diff] [blame] | 357 | <!-- This should be aligned with KeyboardId.MODE_* --> |
Tadashi G. Takaoka | 5859205 | 2011-06-03 02:18:57 +0900 | [diff] [blame] | 358 | <attr name="mode" format="enum|string"> |
Tadashi G. Takaoka | cd39f2a | 2010-11-20 08:03:24 -0800 | [diff] [blame] | 359 | <enum name="text" value="0" /> |
| 360 | <enum name="url" value="1" /> |
| 361 | <enum name="email" value="2" /> |
| 362 | <enum name="im" value="3" /> |
Tadashi G. Takaoka | 9e2d810 | 2011-05-27 21:41:13 +0900 | [diff] [blame] | 363 | <enum name="phone" value="4" /> |
| 364 | <enum name="number" value="5" /> |
Tadashi G. Takaoka | 1d8196c | 2010-11-19 14:57:24 -0800 | [diff] [blame] | 365 | </attr> |
Tadashi G. Takaoka | 05bfd18 | 2012-02-16 23:14:14 -0800 | [diff] [blame] | 366 | <attr name="navigateNext" format="boolean" /> |
| 367 | <attr name="navigatePrevious" format="boolean" /> |
Tadashi G. Takaoka | 4b13b4f | 2011-02-20 12:54:14 +0900 | [diff] [blame] | 368 | <attr name="passwordInput" format="boolean" /> |
Tadashi G. Takaoka | cd96a69 | 2011-06-23 21:55:56 +0900 | [diff] [blame] | 369 | <attr name="clobberSettingsKey" format="boolean" /> |
Tadashi G. Takaoka | c3afe2c | 2011-07-31 18:34:54 -0700 | [diff] [blame] | 370 | <attr name="shortcutKeyEnabled" format="boolean" /> |
| 371 | <attr name="hasShortcutKey" format="boolean" /> |
Tadashi G. Takaoka | 81d4e3c | 2012-02-17 17:46:01 -0800 | [diff] [blame] | 372 | <attr name="languageSwitchKeyEnabled" format="boolean" /> |
Tadashi G. Takaoka | 7a39bd4 | 2012-02-07 17:07:23 +0900 | [diff] [blame] | 373 | <attr name="isMultiLine" format="boolean" /> |
Tadashi G. Takaoka | 5859205 | 2011-06-03 02:18:57 +0900 | [diff] [blame] | 374 | <attr name="imeAction" format="enum"> |
Tadashi G. Takaoka | 6624fd8 | 2010-11-19 16:04:52 -0800 | [diff] [blame] | 375 | <!-- This should be aligned with EditorInfo.IME_ACTION_* --> |
Tadashi G. Takaoka | 5859205 | 2011-06-03 02:18:57 +0900 | [diff] [blame] | 376 | <enum name="actionUnspecified" value="0" /> |
| 377 | <enum name="actionNone" value="1" /> |
| 378 | <enum name="actionGo" value="2" /> |
| 379 | <enum name="actionSearch" value="3" /> |
| 380 | <enum name="actionSend" value="4" /> |
| 381 | <enum name="actionNext" value="5" /> |
| 382 | <enum name="actionDone" value="6" /> |
| 383 | <enum name="actionPrevious" value="7" /> |
Tadashi G. Takaoka | 7a39bd4 | 2012-02-07 17:07:23 +0900 | [diff] [blame] | 384 | <!-- This should be aligned with KeyboardId.IME_ACTION_* --> |
| 385 | <enum name="actionCustomLabel" value="0x100" /> |
Tadashi G. Takaoka | 6624fd8 | 2010-11-19 16:04:52 -0800 | [diff] [blame] | 386 | </attr> |
Tadashi G. Takaoka | 5859205 | 2011-06-03 02:18:57 +0900 | [diff] [blame] | 387 | <attr name="localeCode" format="string" /> |
Tadashi G. Takaoka | ea6c2e3 | 2011-02-18 15:33:44 +0900 | [diff] [blame] | 388 | <attr name="languageCode" format="string" /> |
Tadashi G. Takaoka | 912ade3 | 2011-02-23 17:09:24 +0900 | [diff] [blame] | 389 | <attr name="countryCode" format="string" /> |
Tadashi G. Takaoka | b046511 | 2010-11-11 15:28:14 -0800 | [diff] [blame] | 390 | </declare-styleable> |
Tadashi G. Takaoka | 0b60f83 | 2010-11-19 14:57:24 -0800 | [diff] [blame] | 391 | |
Tadashi G. Takaoka | 5a309f5 | 2010-12-02 18:46:21 +0900 | [diff] [blame] | 392 | <declare-styleable name="Keyboard_KeyStyle"> |
Tadashi G. Takaoka | 0b60f83 | 2010-11-19 14:57:24 -0800 | [diff] [blame] | 393 | <attr name="styleName" format="string" /> |
| 394 | <attr name="parentStyle" format="string" /> |
| 395 | </declare-styleable> |
Tadashi G. Takaoka | a619673 | 2011-06-16 17:20:29 +0900 | [diff] [blame] | 396 | |
Tadashi G. Takaoka | 11d9ee7 | 2012-04-04 14:30:42 +0900 | [diff] [blame] | 397 | <declare-styleable name="KeyboardLayoutSet_Element"> |
Tadashi G. Takaoka | f86109c | 2011-12-13 17:30:51 +0900 | [diff] [blame] | 398 | <!-- This should be aligned with KeyboardId.ELEMENT_* --> |
| 399 | <attr name="elementName" format="enum"> |
Tadashi G. Takaoka | 117c124 | 2012-01-24 18:03:50 +0900 | [diff] [blame] | 400 | <enum name="alphabet" value="0" /> |
| 401 | <enum name="alphabetManualShifted" value="1" /> |
| 402 | <enum name="alphabetAutomaticShifted" value="2" /> |
| 403 | <enum name="alphabetShiftLocked" value="3" /> |
| 404 | <enum name="alphabetShiftLockShifted" value="4" /> |
| 405 | <enum name="symbols" value="5" /> |
| 406 | <enum name="symbolsShifted" value="6" /> |
| 407 | <enum name="phone" value="7" /> |
Tadashi G. Takaoka | a5c96f3 | 2012-02-01 15:07:25 +0900 | [diff] [blame] | 408 | <enum name="phoneSymbols" value="8" /> |
Tadashi G. Takaoka | 117c124 | 2012-01-24 18:03:50 +0900 | [diff] [blame] | 409 | <enum name="number" value="9" /> |
Tadashi G. Takaoka | f86109c | 2011-12-13 17:30:51 +0900 | [diff] [blame] | 410 | </attr> |
Tadashi G. Takaoka | 117c124 | 2012-01-24 18:03:50 +0900 | [diff] [blame] | 411 | <attr name="elementKeyboard" format="reference"/> |
Tadashi G. Takaoka | 8dcad2e | 2012-03-28 17:33:25 +0900 | [diff] [blame] | 412 | <!-- Enable proximity characters correction. Disabled by default. --> |
| 413 | <attr name="enableProximityCharsCorrection" format="boolean" /> |
Tadashi G. Takaoka | f86109c | 2011-12-13 17:30:51 +0900 | [diff] [blame] | 414 | </declare-styleable> |
satok | 979f869 | 2010-08-20 14:35:02 +0900 | [diff] [blame] | 415 | </resources> |