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