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 | ea0c567 | 2011-09-05 18:58:30 +0900 | [diff] [blame] | 28 | <!-- MiniKeyboard style --> |
| 29 | <attr name="miniKeyboardStyle" format="reference" /> |
Tadashi G. Takaoka | 9237a72 | 2011-08-31 14:22:53 +0900 | [diff] [blame] | 30 | <!-- MiniKeyboardView style --> |
| 31 | <attr name="miniKeyboardViewStyle" format="reference" /> |
| 32 | <attr name="miniKeyboardPanelStyle" 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" /> |
| 117 | <attr name="backgroundDimAmount" format="float" /> |
| 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 | 160f012 | 2012-01-25 20:14:39 +0900 | [diff] [blame] | 135 | <!-- Key detection hysteresis distance. --> |
| 136 | <attr name="keyHysteresisDistance" format="dimension" /> |
| 137 | <!-- Touch noise threshold time in millisecond --> |
| 138 | <attr name="touchNoiseThresholdTime" format="integer" /> |
| 139 | <!-- Touch noise threshold distance in millimeter --> |
| 140 | <attr name="touchNoiseThresholdDistance" format="dimension" /> |
| 141 | <!-- Sliding key input enable --> |
| 142 | <attr name="slidingKeyInputEnable" format="boolean" /> |
| 143 | <!-- Key repeat start timeout --> |
| 144 | <attr name="keyRepeatStartTimeout" format="integer" /> |
| 145 | <!-- Key repeat interval in millisecond. --> |
| 146 | <attr name="keyRepeatInterval" format="integer" /> |
| 147 | <!-- Long press timeout of letter key in millisecond. --> |
| 148 | <attr name="longPressKeyTimeout" format="integer" /> |
| 149 | <!-- Long press timeout of shift key in millisecond. --> |
| 150 | <attr name="longPressShiftKeyTimeout" format="integer" /> |
| 151 | <!-- Long press timeout of space key in millisecond. --> |
| 152 | <attr name="longPressSpaceKeyTimeout" format="integer" /> |
| 153 | <!-- Ignore special key timeout while typing in millisecond. --> |
| 154 | <attr name="ignoreSpecialKeyTimeout" format="integer" /> |
| 155 | <!-- Mini-keyboard will shown at touched point. --> |
| 156 | <attr name="showMiniKeyboardAtTouchedPoint" format="boolean" /> |
Tadashi G. Takaoka | 5afc3ae | 2011-12-18 04:55:17 +0900 | [diff] [blame] | 157 | </declare-styleable> |
| 158 | |
Tadashi G. Takaoka | 913e2ae | 2011-09-01 14:54:28 +0900 | [diff] [blame] | 159 | <declare-styleable name="SuggestionsView"> |
Tadashi G. Takaoka | d47a955 | 2011-08-16 18:18:58 -0700 | [diff] [blame] | 160 | <attr name="suggestionStripOption" format="integer"> |
Tadashi G. Takaoka | 77a87e3 | 2011-09-21 15:04:50 +0900 | [diff] [blame] | 161 | <!-- This should be aligned with SuggestionsViewParams.AUTO_CORRECT_* and etc. --> |
Tadashi G. Takaoka | 08a6f2a | 2011-06-15 11:49:57 +0900 | [diff] [blame] | 162 | <flag name="autoCorrectBold" value="0x01" /> |
| 163 | <flag name="autoCorrectUnderline" value="0x02" /> |
Tadashi G. Takaoka | 77a87e3 | 2011-09-21 15:04:50 +0900 | [diff] [blame] | 164 | <flag name="validTypedWordBold" value="0x04" /> |
Tadashi G. Takaoka | 08a6f2a | 2011-06-15 11:49:57 +0900 | [diff] [blame] | 165 | </attr> |
Tadashi G. Takaoka | a44685a | 2011-12-15 16:38:17 +0900 | [diff] [blame] | 166 | <attr name="colorValidTypedWord" format="color" /> |
Tadashi G. Takaoka | 08a6f2a | 2011-06-15 11:49:57 +0900 | [diff] [blame] | 167 | <attr name="colorTypedWord" format="color" /> |
| 168 | <attr name="colorAutoCorrect" format="color" /> |
| 169 | <attr name="colorSuggested" format="color" /> |
Tadashi G. Takaoka | a44685a | 2011-12-15 16:38:17 +0900 | [diff] [blame] | 170 | <attr name="alphaValidTypedWord" format="integer" /> |
Tadashi G. Takaoka | 697bf58 | 2011-09-13 12:35:52 +0900 | [diff] [blame] | 171 | <attr name="alphaTypedWord" format="integer" /> |
| 172 | <attr name="alphaAutoCorrect" format="integer" /> |
| 173 | <attr name="alphaSuggested" format="integer" /> |
| 174 | <attr name="alphaObsoleted" format="integer" /> |
Tadashi G. Takaoka | 913e2ae | 2011-09-01 14:54:28 +0900 | [diff] [blame] | 175 | <attr name="suggestionsCountInStrip" format="integer" /> |
| 176 | <attr name="centerSuggestionPercentile" format="integer" /> |
Tadashi G. Takaoka | 9676038 | 2011-09-05 17:22:34 +0900 | [diff] [blame] | 177 | <attr name="maxMoreSuggestionsRow" format="integer" /> |
| 178 | <attr name="minMoreSuggestionsWidth" format="float" /> |
Tadashi G. Takaoka | 08a6f2a | 2011-06-15 11:49:57 +0900 | [diff] [blame] | 179 | </declare-styleable> |
| 180 | |
Tadashi G. Takaoka | 5a309f5 | 2010-12-02 18:46:21 +0900 | [diff] [blame] | 181 | <declare-styleable name="Keyboard"> |
Tadashi G. Takaoka | 5c26922 | 2011-09-30 21:12:20 +0900 | [diff] [blame] | 182 | <attr name="themeId" format="integer" /> |
| 183 | <!-- Touch position correction --> |
| 184 | <attr name="touchPositionCorrectionData" format="reference" /> |
Tadashi G. Takaoka | 9f01ed5 | 2010-12-08 14:36:41 +0900 | [diff] [blame] | 185 | <!-- Default keyboard height --> |
Tadashi G. Takaoka | ea0c567 | 2011-09-05 18:58:30 +0900 | [diff] [blame] | 186 | <attr name="keyboardHeight" format="dimension|fraction" /> |
Tadashi G. Takaoka | 9f01ed5 | 2010-12-08 14:36:41 +0900 | [diff] [blame] | 187 | <!-- Maximum keyboard height, in pixels or percentage of display height --> |
| 188 | <attr name="maxKeyboardHeight" format="dimension|fraction" /> |
Tadashi G. Takaoka | ff483e8 | 2011-05-12 14:49:18 +0900 | [diff] [blame] | 189 | <!-- Minimum keyboard height represented in pixels, percentage of display height if fraction |
| 190 | is positive, or percentage of display width if fraction is negative. --> |
| 191 | <attr name="minKeyboardHeight" format="dimension|fraction" /> |
Tadashi G. Takaoka | 287f4f8 | 2011-09-26 11:26:38 +0900 | [diff] [blame] | 192 | <!-- Keyboard top, bottom, both horizontal edges paddings. --> |
Tadashi G. Takaoka | ea0c567 | 2011-09-05 18:58:30 +0900 | [diff] [blame] | 193 | <attr name="keyboardTopPadding" format="dimension|fraction" /> |
| 194 | <attr name="keyboardBottomPadding" format="dimension|fraction" /> |
Tadashi G. Takaoka | 287f4f8 | 2011-09-26 11:26:38 +0900 | [diff] [blame] | 195 | <attr name="keyboardHorizontalEdgesPadding" format="dimension|fraction" /> |
Tadashi G. Takaoka | 9f01ed5 | 2010-12-08 14:36:41 +0900 | [diff] [blame] | 196 | <!-- Default height of a row (key height + vertical gap), in pixels or percentage of |
| 197 | keyboard height. --> |
| 198 | <attr name="rowHeight" format="dimension|fraction" /> |
satok | 4fc510a | 2010-10-01 19:40:44 +0900 | [diff] [blame] | 199 | <!-- Default horizontal gap between keys. --> |
| 200 | <attr name="horizontalGap" format="dimension|fraction" /> |
| 201 | <!-- Default vertical gap between rows of keys. --> |
| 202 | <attr name="verticalGap" format="dimension|fraction" /> |
Tadashi G. Takaoka | 9d5601e | 2011-08-31 15:26:32 +0900 | [diff] [blame] | 203 | <!-- More keys keyboard layout template --> |
| 204 | <attr name="moreKeysTemplate" format="reference" /> |
Tadashi G. Takaoka | 7139335 | 2011-07-24 16:35:54 -0700 | [diff] [blame] | 205 | <!-- True if the keyboard is Right-To-Left --> |
| 206 | <attr name="isRtlKeyboard" format="boolean" /> |
Tadashi G. Takaoka | c2a2178 | 2011-06-21 23:38:42 +0900 | [diff] [blame] | 207 | <!-- Icon set for key top and key preview. --> |
| 208 | <attr name="iconShiftKey" format="reference" /> |
Tadashi G. Takaoka | c2a2178 | 2011-06-21 23:38:42 +0900 | [diff] [blame] | 209 | <attr name="iconDeleteKey" format="reference" /> |
| 210 | <attr name="iconSettingsKey" format="reference" /> |
Tadashi G. Takaoka | c2a2178 | 2011-06-21 23:38:42 +0900 | [diff] [blame] | 211 | <attr name="iconSpaceKey" format="reference" /> |
| 212 | <attr name="iconReturnKey" format="reference" /> |
| 213 | <attr name="iconSearchKey" format="reference" /> |
| 214 | <attr name="iconTabKey" format="reference" /> |
Tadashi G. Takaoka | 62d4a96 | 2011-08-02 21:29:24 -0700 | [diff] [blame] | 215 | <attr name="iconShortcutKey" format="reference" /> |
| 216 | <attr name="iconShortcutForLabel" format="reference" /> |
Tadashi G. Takaoka | 7bd714c | 2011-12-18 08:00:07 +0900 | [diff] [blame] | 217 | <attr name="iconSpaceKeyForNumberLayout" format="reference" /> |
Tadashi G. Takaoka | 7bd714c | 2011-12-18 08:00:07 +0900 | [diff] [blame] | 218 | <attr name="iconShiftKeyShifted" format="reference" /> |
Tadashi G. Takaoka | 42fcb2d | 2011-12-19 01:11:09 +0900 | [diff] [blame] | 219 | <attr name="iconDisabledShortcutKey" format="reference" /> |
Tadashi G. Takaoka | c2a2178 | 2011-06-21 23:38:42 +0900 | [diff] [blame] | 220 | <attr name="iconPreviewTabKey" format="reference" /> |
satok | 4fc510a | 2010-10-01 19:40:44 +0900 | [diff] [blame] | 221 | </declare-styleable> |
| 222 | |
Tadashi G. Takaoka | 5a309f5 | 2010-12-02 18:46:21 +0900 | [diff] [blame] | 223 | <declare-styleable name="Keyboard_Key"> |
Tadashi G. Takaoka | c4f7166 | 2010-12-20 20:30:26 +0900 | [diff] [blame] | 224 | <!-- The unicode value that this key outputs. --> |
| 225 | <attr name="code" format="integer" /> |
Tadashi G. Takaoka | 2013bab | 2011-11-30 17:54:58 +0900 | [diff] [blame] | 226 | <!-- The alternate unicode value that this key outputs while typing. --> |
| 227 | <attr name="altCode" format="integer" /> |
Tadashi G. Takaoka | 9d5601e | 2011-08-31 15:26:32 +0900 | [diff] [blame] | 228 | <!-- The keys to display in the more keys keyboard. --> |
| 229 | <attr name="moreKeys" format="string" /> |
Tadashi G. Takaoka | 15c99e9 | 2012-01-30 11:14:45 +0900 | [diff] [blame] | 230 | <!-- The keys to display in the more keys keyboard in addition to moreKeys. |
| 231 | The additional more keys are inserted at the '%' markers in the moreKeys if any. |
| 232 | They are inserted at the head of moreKeys if none. |
| 233 | If there are remaining entries of additionalMoreKeys even after all '%' markers have |
| 234 | been replaced, those remaining entries are appended at the end of moreKeys. --> |
| 235 | <attr name="additionalMoreKeys" format="string" /> |
Tadashi G. Takaoka | 9d5601e | 2011-08-31 15:26:32 +0900 | [diff] [blame] | 236 | <!-- Maximum column of more keys keyboard --> |
| 237 | <attr name="maxMoreKeysColumn" format="integer" /> |
Tadashi G. Takaoka | 7918ed0 | 2011-09-15 14:21:46 +0900 | [diff] [blame] | 238 | <attr name="backgroundType" format="enum"> |
| 239 | <!-- This should be aligned with Key.BACKGROUND_TYPE_* --> |
| 240 | <enum name="normal" value="0" /> |
| 241 | <enum name="functional" value="1" /> |
Tadashi G. Takaoka | a6d3a4d | 2011-09-15 16:13:04 +0900 | [diff] [blame] | 242 | <enum name="action" value="2" /> |
Tadashi G. Takaoka | ca2f051 | 2012-01-26 18:03:30 +0900 | [diff] [blame^] | 243 | <enum name="stickyOff" value="3" /> |
| 244 | <enum name="stickyOn" value="4" /> |
Tadashi G. Takaoka | 7918ed0 | 2011-09-15 14:21:46 +0900 | [diff] [blame] | 245 | </attr> |
Tadashi G. Takaoka | 13d5f66 | 2011-11-21 19:55:38 -0800 | [diff] [blame] | 246 | <!-- The key action flags. --> |
| 247 | <attr name="keyActionFlags" format="integer"> |
| 248 | <!-- This should be aligned with Key.ACTION_FLAGS_* --> |
| 249 | <flag name="isRepeatable" value="0x01" /> |
| 250 | <flag name="noKeyPreview" value="0x02" /> |
Tadashi G. Takaoka | 2013bab | 2011-11-30 17:54:58 +0900 | [diff] [blame] | 251 | <flag name="altCodeWhileTyping" value="0x04" /> |
Tadashi G. Takaoka | 13d5f66 | 2011-11-21 19:55:38 -0800 | [diff] [blame] | 252 | </attr> |
satok | 4fc510a | 2010-10-01 19:40:44 +0900 | [diff] [blame] | 253 | <!-- The string of characters to output when this key is pressed. --> |
| 254 | <attr name="keyOutputText" format="string" /> |
| 255 | <!-- The label to display on the key. --> |
| 256 | <attr name="keyLabel" format="string" /> |
Tadashi G. Takaoka | 520a297 | 2011-06-25 19:38:55 +0900 | [diff] [blame] | 257 | <!-- The hint label to display on the key in conjunction with the label. --> |
| 258 | <attr name="keyHintLabel" format="string" /> |
Tadashi G. Takaoka | 13d5f66 | 2011-11-21 19:55:38 -0800 | [diff] [blame] | 259 | <!-- The key label flags. --> |
| 260 | <attr name="keyLabelFlags" format="integer"> |
| 261 | <!-- This should be aligned with Key.LABEL_FLAGS__* --> |
Tadashi G. Takaoka | b7758d6 | 2011-06-15 13:38:58 +0900 | [diff] [blame] | 262 | <flag name="alignLeft" value="0x01" /> |
| 263 | <flag name="alignRight" value="0x02" /> |
Tadashi G. Takaoka | 520a297 | 2011-06-25 19:38:55 +0900 | [diff] [blame] | 264 | <flag name="alignLeftOfCenter" value="0x08" /> |
| 265 | <flag name="largeLetter" value="0x10" /> |
| 266 | <flag name="fontNormal" value="0x20" /> |
| 267 | <flag name="fontMonoSpace" value="0x40" /> |
| 268 | <flag name="followKeyLetterRatio" value="0x80" /> |
| 269 | <flag name="followKeyHintLabelRatio" value="0x100" /> |
| 270 | <flag name="hasPopupHint" value="0x200" /> |
Tadashi G. Takaoka | ca2f051 | 2012-01-26 18:03:30 +0900 | [diff] [blame^] | 271 | <flag name="hasShiftedLetterHint" value="0x400" /> |
Tadashi G. Takaoka | 520a297 | 2011-06-25 19:38:55 +0900 | [diff] [blame] | 272 | <flag name="hasHintLabel" value="0x800" /> |
Tadashi G. Takaoka | 62d4a96 | 2011-08-02 21:29:24 -0700 | [diff] [blame] | 273 | <flag name="withIconLeft" value="0x1000" /> |
| 274 | <flag name="withIconRight" value="0x2000" /> |
Tadashi G. Takaoka | 4486d77 | 2011-09-12 16:29:24 +0900 | [diff] [blame] | 275 | <flag name="autoXScale" value="0x4000" /> |
Tadashi G. Takaoka | 09f8b12 | 2012-01-25 19:43:13 +0900 | [diff] [blame] | 276 | <!-- If true, character case of code, altCode, moreKeys, keyOutputText, keyLabel, |
| 277 | or keyHintLabel will never be subject to change. --> |
| 278 | <flag name="preserveCase" value="0x8000" /> |
Tadashi G. Takaoka | ca2f051 | 2012-01-26 18:03:30 +0900 | [diff] [blame^] | 279 | <!-- If true, use keyShiftedLetterHintActivatedColor for the shifted letter hint and |
| 280 | keyTextInactivatedColor for the primary key top label. --> |
| 281 | <flag name="shiftedLetterActivated" value="0x10000" /> |
Tadashi G. Takaoka | cd39f2a | 2010-11-20 08:03:24 -0800 | [diff] [blame] | 282 | </attr> |
satok | 4fc510a | 2010-10-01 19:40:44 +0900 | [diff] [blame] | 283 | <!-- The icon to display on the key instead of the label. --> |
Tadashi G. Takaoka | c2a2178 | 2011-06-21 23:38:42 +0900 | [diff] [blame] | 284 | <attr name="keyIcon" format="enum"> |
Tadashi G. Takaoka | 42fcb2d | 2011-12-19 01:11:09 +0900 | [diff] [blame] | 285 | <!-- This should be aligned with the KeyboardIcons.ICONS_TO_ATTRS_MAP --> |
Tadashi G. Takaoka | c2a2178 | 2011-06-21 23:38:42 +0900 | [diff] [blame] | 286 | <enum name="iconShiftKey" value="1" /> |
Tadashi G. Takaoka | 62d4a96 | 2011-08-02 21:29:24 -0700 | [diff] [blame] | 287 | <enum name="iconDeleteKey" value="2" /> |
| 288 | <enum name="iconSettingsKey" value="3" /> |
| 289 | <enum name="iconSpaceKey" value="4" /> |
| 290 | <enum name="iconReturnKey" value="5" /> |
| 291 | <enum name="iconSearchKey" value="6" /> |
| 292 | <enum name="iconTabKey" value="7" /> |
| 293 | <enum name="iconShortcutKey" value="8" /> |
| 294 | <enum name="iconShortcutForLabel" value="9" /> |
Tadashi G. Takaoka | 42fcb2d | 2011-12-19 01:11:09 +0900 | [diff] [blame] | 295 | <enum name="iconSpaceKeyForNumberLayout" value="10" /> |
| 296 | <enum name="iconShiftKeyShifted" value="11" /> |
| 297 | </attr> |
| 298 | <!-- The icon for disabled key --> |
| 299 | <attr name="keyIconDisabled" format="enum"> |
| 300 | <!-- This should be aligned with the KeyboardIcons.ICONS_TO_ATTRS_MAP --> |
| 301 | <enum name="iconDisabledShortcutKey" value="12" /> |
Tadashi G. Takaoka | c2a2178 | 2011-06-21 23:38:42 +0900 | [diff] [blame] | 302 | </attr> |
| 303 | <!-- The icon to show in the popup preview. --> |
| 304 | <attr name="keyIconPreview" format="enum"> |
Tadashi G. Takaoka | 42fcb2d | 2011-12-19 01:11:09 +0900 | [diff] [blame] | 305 | <!-- This should be aligned with the KeyboardIcons.ICONS_TO_ATTRS_MAP --> |
Tadashi G. Takaoka | 7bd714c | 2011-12-18 08:00:07 +0900 | [diff] [blame] | 306 | <enum name="iconPreviewTabKey" value="13" /> |
Tadashi G. Takaoka | c2a2178 | 2011-06-21 23:38:42 +0900 | [diff] [blame] | 307 | </attr> |
Tadashi G. Takaoka | 0b60f83 | 2010-11-19 14:57:24 -0800 | [diff] [blame] | 308 | <!-- The key style to specify a set of key attributes defined by <key_style/> --> |
| 309 | <attr name="keyStyle" format="string" /> |
Tadashi G. Takaoka | 56abeab | 2011-04-11 11:30:15 +0900 | [diff] [blame] | 310 | <!-- Visual insets --> |
| 311 | <attr name="visualInsetsLeft" format="dimension|fraction" /> |
| 312 | <attr name="visualInsetsRight" format="dimension|fraction" /> |
Tadashi G. Takaoka | 287f4f8 | 2011-09-26 11:26:38 +0900 | [diff] [blame] | 313 | <!-- Width of the key, in pixels or percentage of display width. |
| 314 | If the value is fillRight, the actual key width will be determined to fill out the area |
| 315 | up to the right edge of the keyboard. |
| 316 | If the value is fillBoth, the actual key width will be determined to fill out the |
| 317 | area between the nearest key on the left hand side and the right edge of the keyboard. |
| 318 | --> |
| 319 | <!-- This should be aligned with KeyboardBuilder.Row.KEYWIDTH_* --> |
| 320 | <attr name="keyWidth" format="dimension|fraction|enum"> |
| 321 | <enum name="fillRight" value="-1" /> |
| 322 | <enum name="fillBoth" value="-2" /> |
| 323 | </attr> |
Tadashi G. Takaoka | 327763e | 2011-05-30 20:05:50 +0900 | [diff] [blame] | 324 | <!-- The X-coordinate of upper right corner of this key including horizontal gap. |
| 325 | If the value is negative, the origin is the right edge of the keyboard. --> |
| 326 | <attr name="keyXPos" format="dimension|fraction" /> |
satok | 4fc510a | 2010-10-01 19:40:44 +0900 | [diff] [blame] | 327 | </declare-styleable> |
| 328 | |
Tadashi G. Takaoka | 5a309f5 | 2010-12-02 18:46:21 +0900 | [diff] [blame] | 329 | <declare-styleable name="Keyboard_Include"> |
Tadashi G. Takaoka | d663555 | 2010-10-07 17:13:30 +0900 | [diff] [blame] | 330 | <attr name="keyboardLayout" format="reference" /> |
| 331 | </declare-styleable> |
Tadashi G. Takaoka | b046511 | 2010-11-11 15:28:14 -0800 | [diff] [blame] | 332 | |
Tadashi G. Takaoka | 5a309f5 | 2010-12-02 18:46:21 +0900 | [diff] [blame] | 333 | <declare-styleable name="Keyboard_Case"> |
Tadashi G. Takaoka | 83306b9 | 2012-01-25 13:14:59 +0900 | [diff] [blame] | 334 | <!-- This should be aligned with KeyboardSet_Element's elementName. --> |
| 335 | <attr name="keyboardSetElement" format="enum|string"> |
| 336 | <enum name="alphabet" value="0" /> |
| 337 | <enum name="alphabetManualShifted" value="1" /> |
| 338 | <enum name="alphabetAutomaticShifted" value="2" /> |
| 339 | <enum name="alphabetShiftLocked" value="3" /> |
| 340 | <enum name="alphabetShiftLockShifted" value="4" /> |
| 341 | <enum name="symbols" value="5" /> |
| 342 | <enum name="symbolsShifted" value="6" /> |
| 343 | <enum name="phone" value="7" /> |
| 344 | <enum name="phoneShifted" value="8" /> |
| 345 | <enum name="number" value="9" /> |
| 346 | </attr> |
Tadashi G. Takaoka | 5a309f5 | 2010-12-02 18:46:21 +0900 | [diff] [blame] | 347 | <!-- This should be aligned with KeyboardId.MODE_* --> |
Tadashi G. Takaoka | 5859205 | 2011-06-03 02:18:57 +0900 | [diff] [blame] | 348 | <attr name="mode" format="enum|string"> |
Tadashi G. Takaoka | cd39f2a | 2010-11-20 08:03:24 -0800 | [diff] [blame] | 349 | <enum name="text" value="0" /> |
| 350 | <enum name="url" value="1" /> |
| 351 | <enum name="email" value="2" /> |
| 352 | <enum name="im" value="3" /> |
Tadashi G. Takaoka | 9e2d810 | 2011-05-27 21:41:13 +0900 | [diff] [blame] | 353 | <enum name="phone" value="4" /> |
| 354 | <enum name="number" value="5" /> |
Tadashi G. Takaoka | 1d8196c | 2010-11-19 14:57:24 -0800 | [diff] [blame] | 355 | </attr> |
Tadashi G. Takaoka | 28a38fd | 2011-06-17 18:25:54 +0900 | [diff] [blame] | 356 | <attr name="navigateAction" format="boolean" /> |
Tadashi G. Takaoka | 4b13b4f | 2011-02-20 12:54:14 +0900 | [diff] [blame] | 357 | <attr name="passwordInput" format="boolean" /> |
Tadashi G. Takaoka | b7758d6 | 2011-06-15 13:38:58 +0900 | [diff] [blame] | 358 | <attr name="hasSettingsKey" format="boolean" /> |
Tadashi G. Takaoka | cd96a69 | 2011-06-23 21:55:56 +0900 | [diff] [blame] | 359 | <!-- This should be aligned with KeyboardID.F2KEY_MODE_* --> |
| 360 | <attr name="f2KeyMode" format="enum"> |
| 361 | <enum name="none" value="0" /> |
| 362 | <enum name="settings" value="1" /> |
| 363 | <enum name="shortcutIme" value="2" /> |
| 364 | <enum name="shortcutImeOrSettings" value="3" /> |
| 365 | </attr> |
| 366 | <attr name="clobberSettingsKey" format="boolean" /> |
Tadashi G. Takaoka | c3afe2c | 2011-07-31 18:34:54 -0700 | [diff] [blame] | 367 | <attr name="shortcutKeyEnabled" format="boolean" /> |
| 368 | <attr name="hasShortcutKey" format="boolean" /> |
Tadashi G. Takaoka | 5859205 | 2011-06-03 02:18:57 +0900 | [diff] [blame] | 369 | <attr name="imeAction" format="enum"> |
Tadashi G. Takaoka | 6624fd8 | 2010-11-19 16:04:52 -0800 | [diff] [blame] | 370 | <!-- This should be aligned with EditorInfo.IME_ACTION_* --> |
Tadashi G. Takaoka | 5859205 | 2011-06-03 02:18:57 +0900 | [diff] [blame] | 371 | <enum name="actionUnspecified" value="0" /> |
| 372 | <enum name="actionNone" value="1" /> |
| 373 | <enum name="actionGo" value="2" /> |
| 374 | <enum name="actionSearch" value="3" /> |
| 375 | <enum name="actionSend" value="4" /> |
| 376 | <enum name="actionNext" value="5" /> |
| 377 | <enum name="actionDone" value="6" /> |
| 378 | <enum name="actionPrevious" value="7" /> |
Tadashi G. Takaoka | 6624fd8 | 2010-11-19 16:04:52 -0800 | [diff] [blame] | 379 | </attr> |
Tadashi G. Takaoka | 5859205 | 2011-06-03 02:18:57 +0900 | [diff] [blame] | 380 | <attr name="localeCode" format="string" /> |
Tadashi G. Takaoka | ea6c2e3 | 2011-02-18 15:33:44 +0900 | [diff] [blame] | 381 | <attr name="languageCode" format="string" /> |
Tadashi G. Takaoka | 912ade3 | 2011-02-23 17:09:24 +0900 | [diff] [blame] | 382 | <attr name="countryCode" format="string" /> |
Tadashi G. Takaoka | b046511 | 2010-11-11 15:28:14 -0800 | [diff] [blame] | 383 | </declare-styleable> |
Tadashi G. Takaoka | 0b60f83 | 2010-11-19 14:57:24 -0800 | [diff] [blame] | 384 | |
Tadashi G. Takaoka | 5a309f5 | 2010-12-02 18:46:21 +0900 | [diff] [blame] | 385 | <declare-styleable name="Keyboard_KeyStyle"> |
Tadashi G. Takaoka | 0b60f83 | 2010-11-19 14:57:24 -0800 | [diff] [blame] | 386 | <attr name="styleName" format="string" /> |
| 387 | <attr name="parentStyle" format="string" /> |
| 388 | </declare-styleable> |
Tadashi G. Takaoka | a619673 | 2011-06-16 17:20:29 +0900 | [diff] [blame] | 389 | |
Tadashi G. Takaoka | f86109c | 2011-12-13 17:30:51 +0900 | [diff] [blame] | 390 | <declare-styleable name="KeyboardSet"> |
| 391 | <!-- Locale of the keyboard layouts --> |
| 392 | <attr name="keyboardLocale" format="string" /> |
| 393 | </declare-styleable> |
| 394 | |
| 395 | <declare-styleable name="KeyboardSet_Element"> |
| 396 | <!-- This should be aligned with KeyboardId.ELEMENT_* --> |
| 397 | <attr name="elementName" format="enum"> |
Tadashi G. Takaoka | 117c124 | 2012-01-24 18:03:50 +0900 | [diff] [blame] | 398 | <enum name="alphabet" value="0" /> |
| 399 | <enum name="alphabetManualShifted" value="1" /> |
| 400 | <enum name="alphabetAutomaticShifted" value="2" /> |
| 401 | <enum name="alphabetShiftLocked" value="3" /> |
| 402 | <enum name="alphabetShiftLockShifted" value="4" /> |
| 403 | <enum name="symbols" value="5" /> |
| 404 | <enum name="symbolsShifted" value="6" /> |
| 405 | <enum name="phone" value="7" /> |
| 406 | <enum name="phoneShifted" value="8" /> |
| 407 | <enum name="number" value="9" /> |
Tadashi G. Takaoka | f86109c | 2011-12-13 17:30:51 +0900 | [diff] [blame] | 408 | </attr> |
Tadashi G. Takaoka | 117c124 | 2012-01-24 18:03:50 +0900 | [diff] [blame] | 409 | <attr name="elementKeyboard" format="reference"/> |
Tadashi G. Takaoka | f86109c | 2011-12-13 17:30:51 +0900 | [diff] [blame] | 410 | </declare-styleable> |
satok | 979f869 | 2010-08-20 14:35:02 +0900 | [diff] [blame] | 411 | </resources> |