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 | a619673 | 2011-06-16 17:20:29 +0900 | [diff] [blame] | 21 | <!-- LatinKeyboard style --> |
| 22 | <attr name="latinKeyboardStyle" format="reference" /> |
Tadashi G. Takaoka | 13a7419 | 2011-05-24 21:08:20 +0900 | [diff] [blame] | 23 | <!-- KeyboardView style --> |
| 24 | <attr name="keyboardViewStyle" format="reference" /> |
Tadashi G. Takaoka | ea0c567 | 2011-09-05 18:58:30 +0900 | [diff] [blame] | 25 | <!-- MiniKeyboard style --> |
| 26 | <attr name="miniKeyboardStyle" format="reference" /> |
Tadashi G. Takaoka | 9237a72 | 2011-08-31 14:22:53 +0900 | [diff] [blame] | 27 | <!-- MiniKeyboardView style --> |
| 28 | <attr name="miniKeyboardViewStyle" format="reference" /> |
| 29 | <attr name="miniKeyboardPanelStyle" 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 | 0e2fa66 | 2011-09-05 16:46:15 +0900 | [diff] [blame] | 32 | <attr name="suggestionsViewStyle" format="reference" /> |
| 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 | 83da6c1 | 2011-08-29 20:28:46 +0900 | [diff] [blame] | 44 | <!-- 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] | 45 | <attr name="keyLetterSize" format="dimension" /> |
Tadashi G. Takaoka | 83da6c1 | 2011-08-29 20:28:46 +0900 | [diff] [blame] | 46 | <!-- Size of the text for keys with multiple letters. If not defined, keyLabelRatio takes |
| 47 | effect. --> |
Tadashi G. Takaoka | 2d80400 | 2011-08-30 14:15:55 +0900 | [diff] [blame] | 48 | <attr name="keyLabelSize" format="dimension" /> |
Tadashi G. Takaoka | 9d9522a | 2011-06-15 12:36:53 +0900 | [diff] [blame] | 49 | <!-- 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] | 50 | <attr name="keyLetterRatio" format="float" /> |
Tadashi G. Takaoka | 520a297 | 2011-06-25 19:38:55 +0900 | [diff] [blame] | 51 | <!-- Large size of the text for one letter keys, in the proportion of key height. --> |
| 52 | <attr name="keyLargeLetterRatio" format="float" /> |
Tadashi G. Takaoka | 83da6c1 | 2011-08-29 20:28:46 +0900 | [diff] [blame] | 53 | <!-- 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] | 54 | <attr name="keyLabelRatio" format="float" /> |
Tadashi G. Takaoka | 520a297 | 2011-06-25 19:38:55 +0900 | [diff] [blame] | 55 | <!-- Size of the text for hint letter (= one character hint label), in the proportion of |
| 56 | key height. --> |
Tadashi G. Takaoka | 9d9522a | 2011-06-15 12:36:53 +0900 | [diff] [blame] | 57 | <attr name="keyHintLetterRatio" format="float" /> |
Tadashi G. Takaoka | 520a297 | 2011-06-25 19:38:55 +0900 | [diff] [blame] | 58 | <!-- Size of the text for hint label, in the proportion of key height. --> |
| 59 | <attr name="keyHintLabelRatio" format="float" /> |
Tadashi G. Takaoka | 9d9522a | 2011-06-15 12:36:53 +0900 | [diff] [blame] | 60 | <!-- Size of the text for upper case letter, in the proportion of key height. --> |
| 61 | <attr name="keyUppercaseLetterRatio" format="float" /> |
Tadashi G. Takaoka | d773bf3 | 2011-06-28 16:32:39 +0900 | [diff] [blame] | 62 | <!-- Horizontal padding of left/right aligned key label to the edge of the key. --> |
| 63 | <attr name="keyLabelHorizontalPadding" format="dimension" /> |
| 64 | <!-- Top and right padding of hint letter to the edge of the key.--> |
| 65 | <attr name="keyHintLetterPadding" format="dimension" /> |
Ken Wakasa | 6b97d2b | 2011-09-07 21:56:42 +0900 | [diff] [blame] | 66 | <!-- Bottom padding of popup hint letter "..." to the edge of the key.--> |
| 67 | <attr name="keyPopupHintLetterPadding" format="dimension" /> |
Tadashi G. Takaoka | d773bf3 | 2011-06-28 16:32:39 +0900 | [diff] [blame] | 68 | <!-- Top and right padding of upper case letter to the edge of the key.--> |
| 69 | <attr name="keyUppercaseLetterPadding" format="dimension" /> |
satok | 979f869 | 2010-08-20 14:35:02 +0900 | [diff] [blame] | 70 | |
| 71 | <!-- Color to use for the label in a key. --> |
| 72 | <attr name="keyTextColor" format="color" /> |
Tadashi G. Takaoka | 9d9522a | 2011-06-15 12:36:53 +0900 | [diff] [blame] | 73 | <!-- Color to use for the label in a key when in inactivated state. --> |
| 74 | <attr name="keyTextInactivatedColor" format="color" /> |
Tadashi G. Takaoka | 520a297 | 2011-06-25 19:38:55 +0900 | [diff] [blame] | 75 | <!-- Key hint letter (= one character hint label) color --> |
Tadashi G. Takaoka | 9d9522a | 2011-06-15 12:36:53 +0900 | [diff] [blame] | 76 | <attr name="keyHintLetterColor" format="color" /> |
Tadashi G. Takaoka | 520a297 | 2011-06-25 19:38:55 +0900 | [diff] [blame] | 77 | <!-- Key hint label color --> |
| 78 | <attr name="keyHintLabelColor" format="color" /> |
Tadashi G. Takaoka | 9d9522a | 2011-06-15 12:36:53 +0900 | [diff] [blame] | 79 | <!-- Upper case letter colors --> |
| 80 | <attr name="keyUppercaseLetterInactivatedColor" format="color" /> |
| 81 | <attr name="keyUppercaseLetterActivatedColor" format="color" /> |
satok | 979f869 | 2010-08-20 14:35:02 +0900 | [diff] [blame] | 82 | |
| 83 | <!-- Layout resource for key press feedback.--> |
| 84 | <attr name="keyPreviewLayout" format="reference" /> |
Tadashi G. Takaoka | 8aee759 | 2011-06-27 17:51:36 +0900 | [diff] [blame] | 85 | <!-- The background for key press feedback. --> |
| 86 | <attr name="keyPreviewBackground" format="reference" /> |
Tadashi G. Takaoka | d87f28f | 2011-06-28 03:01:35 +0900 | [diff] [blame] | 87 | <!-- The background for the left edge key press feedback. --> |
| 88 | <attr name="keyPreviewLeftBackground" format="reference" /> |
| 89 | <!-- The background for the right edge key press feedback. --> |
| 90 | <attr name="keyPreviewRightBackground" format="reference" /> |
Tadashi G. Takaoka | a0e4f40 | 2011-10-12 18:50:04 +0900 | [diff] [blame] | 91 | <!-- The width of rectangle part of the key press feedback background. --> |
| 92 | <attr name="keyPreviewBackgroundWidth" format="dimension" /> |
| 93 | <!-- The height of rectangle part of the key press feedback background. --> |
| 94 | <attr name="keyPreviewBackgroundHeight" format="dimension" /> |
Tadashi G. Takaoka | 8aee759 | 2011-06-27 17:51:36 +0900 | [diff] [blame] | 95 | <!-- The text color for key press feedback. --> |
| 96 | <attr name="keyPreviewTextColor" format="color" /> |
satok | 979f869 | 2010-08-20 14:35:02 +0900 | [diff] [blame] | 97 | <!-- Vertical offset of the key press feedback from the key. --> |
| 98 | <attr name="keyPreviewOffset" format="dimension" /> |
satok | 979f869 | 2010-08-20 14:35:02 +0900 | [diff] [blame] | 99 | <!-- Height of the key press feedback popup. --> |
| 100 | <attr name="keyPreviewHeight" format="dimension" /> |
Tadashi G. Takaoka | 520a297 | 2011-06-25 19:38:55 +0900 | [diff] [blame] | 101 | <!-- Size of the text for key press feedback popup, int the proportion of key height --> |
| 102 | <attr name="keyPreviewTextRatio" format="float" /> |
satok | 979f869 | 2010-08-20 14:35:02 +0900 | [diff] [blame] | 103 | |
| 104 | <!-- Amount to offset the touch Y coordinate by, for bias correction. --> |
| 105 | <attr name="verticalCorrection" format="dimension" /> |
| 106 | |
Tadashi G. Takaoka | 9d5601e | 2011-08-31 15:26:32 +0900 | [diff] [blame] | 107 | <!-- Layout resource for more keys panel --> |
| 108 | <attr name="moreKeysLayout" format="reference" /> |
satok | 979f869 | 2010-08-20 14:35:02 +0900 | [diff] [blame] | 109 | |
| 110 | <attr name="shadowColor" format="color" /> |
| 111 | <attr name="shadowRadius" format="float" /> |
| 112 | <attr name="backgroundDimAmount" format="float" /> |
| 113 | |
Tadashi G. Takaoka | 9d9522a | 2011-06-15 12:36:53 +0900 | [diff] [blame] | 114 | <attr name="keyTextStyle" format="enum"> |
Tadashi G. Takaoka | 5d04042 | 2010-12-01 12:22:19 +0900 | [diff] [blame] | 115 | <!-- This should be aligned with Typeface.NORMAL etc. --> |
Tadashi G. Takaoka | 59c9930 | 2010-11-21 16:40:38 -0800 | [diff] [blame] | 116 | <enum name="normal" value="0" /> |
| 117 | <enum name="bold" value="1" /> |
| 118 | <enum name="italic" value="2" /> |
Tadashi G. Takaoka | 5d04042 | 2010-12-01 12:22:19 +0900 | [diff] [blame] | 119 | <enum name="boldItalic" value="3" /> |
satok | 979f869 | 2010-08-20 14:35:02 +0900 | [diff] [blame] | 120 | </attr> |
satok | 979f869 | 2010-08-20 14:35:02 +0900 | [diff] [blame] | 121 | </declare-styleable> |
| 122 | |
Tadashi G. Takaoka | 913e2ae | 2011-09-01 14:54:28 +0900 | [diff] [blame] | 123 | <declare-styleable name="SuggestionsView"> |
Tadashi G. Takaoka | d47a955 | 2011-08-16 18:18:58 -0700 | [diff] [blame] | 124 | <attr name="suggestionStripOption" format="integer"> |
Tadashi G. Takaoka | 77a87e3 | 2011-09-21 15:04:50 +0900 | [diff] [blame] | 125 | <!-- This should be aligned with SuggestionsViewParams.AUTO_CORRECT_* and etc. --> |
Tadashi G. Takaoka | 08a6f2a | 2011-06-15 11:49:57 +0900 | [diff] [blame] | 126 | <flag name="autoCorrectBold" value="0x01" /> |
| 127 | <flag name="autoCorrectUnderline" value="0x02" /> |
Tadashi G. Takaoka | 77a87e3 | 2011-09-21 15:04:50 +0900 | [diff] [blame] | 128 | <flag name="validTypedWordBold" value="0x04" /> |
Tadashi G. Takaoka | 08a6f2a | 2011-06-15 11:49:57 +0900 | [diff] [blame] | 129 | </attr> |
| 130 | <attr name="colorTypedWord" format="color" /> |
| 131 | <attr name="colorAutoCorrect" format="color" /> |
| 132 | <attr name="colorSuggested" format="color" /> |
Tadashi G. Takaoka | 697bf58 | 2011-09-13 12:35:52 +0900 | [diff] [blame] | 133 | <attr name="alphaTypedWord" format="integer" /> |
| 134 | <attr name="alphaAutoCorrect" format="integer" /> |
| 135 | <attr name="alphaSuggested" format="integer" /> |
| 136 | <attr name="alphaObsoleted" format="integer" /> |
Tadashi G. Takaoka | 913e2ae | 2011-09-01 14:54:28 +0900 | [diff] [blame] | 137 | <attr name="suggestionsCountInStrip" format="integer" /> |
| 138 | <attr name="centerSuggestionPercentile" format="integer" /> |
Tadashi G. Takaoka | 9676038 | 2011-09-05 17:22:34 +0900 | [diff] [blame] | 139 | <attr name="maxMoreSuggestionsRow" format="integer" /> |
| 140 | <attr name="minMoreSuggestionsWidth" format="float" /> |
Tadashi G. Takaoka | 08a6f2a | 2011-06-15 11:49:57 +0900 | [diff] [blame] | 141 | </declare-styleable> |
| 142 | |
Tadashi G. Takaoka | 5a309f5 | 2010-12-02 18:46:21 +0900 | [diff] [blame] | 143 | <declare-styleable name="Keyboard"> |
Tadashi G. Takaoka | 5c26922 | 2011-09-30 21:12:20 +0900 | [diff] [blame] | 144 | <attr name="themeId" format="integer" /> |
| 145 | <!-- Touch position correction --> |
| 146 | <attr name="touchPositionCorrectionData" format="reference" /> |
Tadashi G. Takaoka | 9f01ed5 | 2010-12-08 14:36:41 +0900 | [diff] [blame] | 147 | <!-- Default keyboard height --> |
Tadashi G. Takaoka | ea0c567 | 2011-09-05 18:58:30 +0900 | [diff] [blame] | 148 | <attr name="keyboardHeight" format="dimension|fraction" /> |
Tadashi G. Takaoka | 9f01ed5 | 2010-12-08 14:36:41 +0900 | [diff] [blame] | 149 | <!-- Maximum keyboard height, in pixels or percentage of display height --> |
| 150 | <attr name="maxKeyboardHeight" format="dimension|fraction" /> |
Tadashi G. Takaoka | ff483e8 | 2011-05-12 14:49:18 +0900 | [diff] [blame] | 151 | <!-- Minimum keyboard height represented in pixels, percentage of display height if fraction |
| 152 | is positive, or percentage of display width if fraction is negative. --> |
| 153 | <attr name="minKeyboardHeight" format="dimension|fraction" /> |
Tadashi G. Takaoka | 287f4f8 | 2011-09-26 11:26:38 +0900 | [diff] [blame] | 154 | <!-- Keyboard top, bottom, both horizontal edges paddings. --> |
Tadashi G. Takaoka | ea0c567 | 2011-09-05 18:58:30 +0900 | [diff] [blame] | 155 | <attr name="keyboardTopPadding" format="dimension|fraction" /> |
| 156 | <attr name="keyboardBottomPadding" format="dimension|fraction" /> |
Tadashi G. Takaoka | 287f4f8 | 2011-09-26 11:26:38 +0900 | [diff] [blame] | 157 | <attr name="keyboardHorizontalEdgesPadding" format="dimension|fraction" /> |
Tadashi G. Takaoka | 9f01ed5 | 2010-12-08 14:36:41 +0900 | [diff] [blame] | 158 | <!-- Default height of a row (key height + vertical gap), in pixels or percentage of |
| 159 | keyboard height. --> |
| 160 | <attr name="rowHeight" format="dimension|fraction" /> |
satok | 4fc510a | 2010-10-01 19:40:44 +0900 | [diff] [blame] | 161 | <!-- Default horizontal gap between keys. --> |
| 162 | <attr name="horizontalGap" format="dimension|fraction" /> |
| 163 | <!-- Default vertical gap between rows of keys. --> |
| 164 | <attr name="verticalGap" format="dimension|fraction" /> |
Tadashi G. Takaoka | 9d5601e | 2011-08-31 15:26:32 +0900 | [diff] [blame] | 165 | <!-- More keys keyboard layout template --> |
| 166 | <attr name="moreKeysTemplate" format="reference" /> |
Tadashi G. Takaoka | 7139335 | 2011-07-24 16:35:54 -0700 | [diff] [blame] | 167 | <!-- True if the keyboard is Right-To-Left --> |
| 168 | <attr name="isRtlKeyboard" format="boolean" /> |
Tadashi G. Takaoka | c2a2178 | 2011-06-21 23:38:42 +0900 | [diff] [blame] | 169 | <!-- Icon set for key top and key preview. --> |
| 170 | <attr name="iconShiftKey" format="reference" /> |
Tadashi G. Takaoka | c2a2178 | 2011-06-21 23:38:42 +0900 | [diff] [blame] | 171 | <attr name="iconDeleteKey" format="reference" /> |
| 172 | <attr name="iconSettingsKey" format="reference" /> |
Tadashi G. Takaoka | c2a2178 | 2011-06-21 23:38:42 +0900 | [diff] [blame] | 173 | <attr name="iconSpaceKey" format="reference" /> |
| 174 | <attr name="iconReturnKey" format="reference" /> |
| 175 | <attr name="iconSearchKey" format="reference" /> |
| 176 | <attr name="iconTabKey" format="reference" /> |
Tadashi G. Takaoka | 62d4a96 | 2011-08-02 21:29:24 -0700 | [diff] [blame] | 177 | <attr name="iconShortcutKey" format="reference" /> |
| 178 | <attr name="iconShortcutForLabel" format="reference" /> |
Tadashi G. Takaoka | c2a2178 | 2011-06-21 23:38:42 +0900 | [diff] [blame] | 179 | <attr name="iconShiftedShiftKey" format="reference" /> |
Tadashi G. Takaoka | c2a2178 | 2011-06-21 23:38:42 +0900 | [diff] [blame] | 180 | <attr name="iconPreviewTabKey" format="reference" /> |
satok | 4fc510a | 2010-10-01 19:40:44 +0900 | [diff] [blame] | 181 | </declare-styleable> |
| 182 | |
Tadashi G. Takaoka | 5a309f5 | 2010-12-02 18:46:21 +0900 | [diff] [blame] | 183 | <declare-styleable name="Keyboard_Key"> |
Tadashi G. Takaoka | c4f7166 | 2010-12-20 20:30:26 +0900 | [diff] [blame] | 184 | <!-- The unicode value that this key outputs. --> |
| 185 | <attr name="code" format="integer" /> |
Tadashi G. Takaoka | 2013bab | 2011-11-30 17:54:58 +0900 | [diff] [blame] | 186 | <!-- The alternate unicode value that this key outputs while typing. --> |
| 187 | <attr name="altCode" format="integer" /> |
Tadashi G. Takaoka | 9d5601e | 2011-08-31 15:26:32 +0900 | [diff] [blame] | 188 | <!-- The keys to display in the more keys keyboard. --> |
| 189 | <attr name="moreKeys" format="string" /> |
| 190 | <!-- Maximum column of more keys keyboard --> |
| 191 | <attr name="maxMoreKeysColumn" format="integer" /> |
Tadashi G. Takaoka | 7918ed0 | 2011-09-15 14:21:46 +0900 | [diff] [blame] | 192 | <attr name="backgroundType" format="enum"> |
| 193 | <!-- This should be aligned with Key.BACKGROUND_TYPE_* --> |
| 194 | <enum name="normal" value="0" /> |
| 195 | <enum name="functional" value="1" /> |
Tadashi G. Takaoka | a6d3a4d | 2011-09-15 16:13:04 +0900 | [diff] [blame] | 196 | <enum name="action" value="2" /> |
Tadashi G. Takaoka | 5b0c124 | 2011-09-15 17:54:21 +0900 | [diff] [blame] | 197 | <enum name="sticky" value="3" /> |
Tadashi G. Takaoka | 7918ed0 | 2011-09-15 14:21:46 +0900 | [diff] [blame] | 198 | </attr> |
Tadashi G. Takaoka | 13d5f66 | 2011-11-21 19:55:38 -0800 | [diff] [blame] | 199 | <!-- The key action flags. --> |
| 200 | <attr name="keyActionFlags" format="integer"> |
| 201 | <!-- This should be aligned with Key.ACTION_FLAGS_* --> |
| 202 | <flag name="isRepeatable" value="0x01" /> |
| 203 | <flag name="noKeyPreview" value="0x02" /> |
Tadashi G. Takaoka | 2013bab | 2011-11-30 17:54:58 +0900 | [diff] [blame] | 204 | <flag name="altCodeWhileTyping" value="0x04" /> |
Tadashi G. Takaoka | 13d5f66 | 2011-11-21 19:55:38 -0800 | [diff] [blame] | 205 | </attr> |
satok | 4fc510a | 2010-10-01 19:40:44 +0900 | [diff] [blame] | 206 | <!-- The string of characters to output when this key is pressed. --> |
| 207 | <attr name="keyOutputText" format="string" /> |
| 208 | <!-- The label to display on the key. --> |
| 209 | <attr name="keyLabel" format="string" /> |
Tadashi G. Takaoka | 520a297 | 2011-06-25 19:38:55 +0900 | [diff] [blame] | 210 | <!-- The hint label to display on the key in conjunction with the label. --> |
| 211 | <attr name="keyHintLabel" format="string" /> |
Tadashi G. Takaoka | 13d5f66 | 2011-11-21 19:55:38 -0800 | [diff] [blame] | 212 | <!-- The key label flags. --> |
| 213 | <attr name="keyLabelFlags" format="integer"> |
| 214 | <!-- This should be aligned with Key.LABEL_FLAGS__* --> |
Tadashi G. Takaoka | b7758d6 | 2011-06-15 13:38:58 +0900 | [diff] [blame] | 215 | <flag name="alignLeft" value="0x01" /> |
| 216 | <flag name="alignRight" value="0x02" /> |
Tadashi G. Takaoka | 520a297 | 2011-06-25 19:38:55 +0900 | [diff] [blame] | 217 | <flag name="alignLeftOfCenter" value="0x08" /> |
| 218 | <flag name="largeLetter" value="0x10" /> |
| 219 | <flag name="fontNormal" value="0x20" /> |
| 220 | <flag name="fontMonoSpace" value="0x40" /> |
| 221 | <flag name="followKeyLetterRatio" value="0x80" /> |
| 222 | <flag name="followKeyHintLabelRatio" value="0x100" /> |
| 223 | <flag name="hasPopupHint" value="0x200" /> |
| 224 | <flag name="hasUppercaseLetter" value="0x400" /> |
| 225 | <flag name="hasHintLabel" value="0x800" /> |
Tadashi G. Takaoka | 62d4a96 | 2011-08-02 21:29:24 -0700 | [diff] [blame] | 226 | <flag name="withIconLeft" value="0x1000" /> |
| 227 | <flag name="withIconRight" value="0x2000" /> |
Tadashi G. Takaoka | 4486d77 | 2011-09-12 16:29:24 +0900 | [diff] [blame] | 228 | <flag name="autoXScale" value="0x4000" /> |
Tadashi G. Takaoka | cd39f2a | 2010-11-20 08:03:24 -0800 | [diff] [blame] | 229 | </attr> |
satok | 4fc510a | 2010-10-01 19:40:44 +0900 | [diff] [blame] | 230 | <!-- The icon to display on the key instead of the label. --> |
Tadashi G. Takaoka | c2a2178 | 2011-06-21 23:38:42 +0900 | [diff] [blame] | 231 | <attr name="keyIcon" format="enum"> |
| 232 | <!-- This should be aligned with KeyboardIcons.ICON_* --> |
| 233 | <enum name="iconShiftKey" value="1" /> |
Tadashi G. Takaoka | 62d4a96 | 2011-08-02 21:29:24 -0700 | [diff] [blame] | 234 | <enum name="iconDeleteKey" value="2" /> |
| 235 | <enum name="iconSettingsKey" value="3" /> |
| 236 | <enum name="iconSpaceKey" value="4" /> |
| 237 | <enum name="iconReturnKey" value="5" /> |
| 238 | <enum name="iconSearchKey" value="6" /> |
| 239 | <enum name="iconTabKey" value="7" /> |
| 240 | <enum name="iconShortcutKey" value="8" /> |
| 241 | <enum name="iconShortcutForLabel" value="9" /> |
Tadashi G. Takaoka | c2a2178 | 2011-06-21 23:38:42 +0900 | [diff] [blame] | 242 | </attr> |
| 243 | <!-- Shift key icon for shifted state --> |
| 244 | <attr name="keyIconShifted" format="enum"> |
| 245 | <!-- This should be aligned with KeyboardIcons.ICON_SHIFTED_* --> |
Tadashi G. Takaoka | 62d4a96 | 2011-08-02 21:29:24 -0700 | [diff] [blame] | 246 | <enum name="iconShiftedShiftKey" value="10" /> |
Tadashi G. Takaoka | c2a2178 | 2011-06-21 23:38:42 +0900 | [diff] [blame] | 247 | </attr> |
| 248 | <!-- The icon to show in the popup preview. --> |
| 249 | <attr name="keyIconPreview" format="enum"> |
| 250 | <!-- This should be aligned with KeyboardIcons.ICON_PREVIEW_* --> |
Tadashi G. Takaoka | 62d4a96 | 2011-08-02 21:29:24 -0700 | [diff] [blame] | 251 | <enum name="iconPreviewTabKey" value="11" /> |
Tadashi G. Takaoka | c2a2178 | 2011-06-21 23:38:42 +0900 | [diff] [blame] | 252 | </attr> |
Tadashi G. Takaoka | 0b60f83 | 2010-11-19 14:57:24 -0800 | [diff] [blame] | 253 | <!-- The key style to specify a set of key attributes defined by <key_style/> --> |
| 254 | <attr name="keyStyle" format="string" /> |
Tadashi G. Takaoka | 56abeab | 2011-04-11 11:30:15 +0900 | [diff] [blame] | 255 | <!-- Visual insets --> |
| 256 | <attr name="visualInsetsLeft" format="dimension|fraction" /> |
| 257 | <attr name="visualInsetsRight" format="dimension|fraction" /> |
Tadashi G. Takaoka | 287f4f8 | 2011-09-26 11:26:38 +0900 | [diff] [blame] | 258 | <!-- Width of the key, in pixels or percentage of display width. |
| 259 | If the value is fillRight, the actual key width will be determined to fill out the area |
| 260 | up to the right edge of the keyboard. |
| 261 | If the value is fillBoth, the actual key width will be determined to fill out the |
| 262 | area between the nearest key on the left hand side and the right edge of the keyboard. |
| 263 | --> |
| 264 | <!-- This should be aligned with KeyboardBuilder.Row.KEYWIDTH_* --> |
| 265 | <attr name="keyWidth" format="dimension|fraction|enum"> |
| 266 | <enum name="fillRight" value="-1" /> |
| 267 | <enum name="fillBoth" value="-2" /> |
| 268 | </attr> |
Tadashi G. Takaoka | 327763e | 2011-05-30 20:05:50 +0900 | [diff] [blame] | 269 | <!-- The X-coordinate of upper right corner of this key including horizontal gap. |
| 270 | If the value is negative, the origin is the right edge of the keyboard. --> |
| 271 | <attr name="keyXPos" format="dimension|fraction" /> |
satok | 4fc510a | 2010-10-01 19:40:44 +0900 | [diff] [blame] | 272 | </declare-styleable> |
| 273 | |
Tadashi G. Takaoka | 5a309f5 | 2010-12-02 18:46:21 +0900 | [diff] [blame] | 274 | <declare-styleable name="Keyboard_Include"> |
Tadashi G. Takaoka | d663555 | 2010-10-07 17:13:30 +0900 | [diff] [blame] | 275 | <attr name="keyboardLayout" format="reference" /> |
| 276 | </declare-styleable> |
Tadashi G. Takaoka | b046511 | 2010-11-11 15:28:14 -0800 | [diff] [blame] | 277 | |
Tadashi G. Takaoka | 5a309f5 | 2010-12-02 18:46:21 +0900 | [diff] [blame] | 278 | <declare-styleable name="Keyboard_Case"> |
| 279 | <!-- This should be aligned with KeyboardId.MODE_* --> |
Tadashi G. Takaoka | 5859205 | 2011-06-03 02:18:57 +0900 | [diff] [blame] | 280 | <attr name="mode" format="enum|string"> |
Tadashi G. Takaoka | cd39f2a | 2010-11-20 08:03:24 -0800 | [diff] [blame] | 281 | <enum name="text" value="0" /> |
| 282 | <enum name="url" value="1" /> |
| 283 | <enum name="email" value="2" /> |
| 284 | <enum name="im" value="3" /> |
Tadashi G. Takaoka | 9e2d810 | 2011-05-27 21:41:13 +0900 | [diff] [blame] | 285 | <enum name="phone" value="4" /> |
| 286 | <enum name="number" value="5" /> |
Tadashi G. Takaoka | 1d8196c | 2010-11-19 14:57:24 -0800 | [diff] [blame] | 287 | </attr> |
Tadashi G. Takaoka | 28a38fd | 2011-06-17 18:25:54 +0900 | [diff] [blame] | 288 | <attr name="navigateAction" format="boolean" /> |
Tadashi G. Takaoka | 4b13b4f | 2011-02-20 12:54:14 +0900 | [diff] [blame] | 289 | <attr name="passwordInput" format="boolean" /> |
Tadashi G. Takaoka | b7758d6 | 2011-06-15 13:38:58 +0900 | [diff] [blame] | 290 | <attr name="hasSettingsKey" format="boolean" /> |
Tadashi G. Takaoka | cd96a69 | 2011-06-23 21:55:56 +0900 | [diff] [blame] | 291 | <!-- This should be aligned with KeyboardID.F2KEY_MODE_* --> |
| 292 | <attr name="f2KeyMode" format="enum"> |
| 293 | <enum name="none" value="0" /> |
| 294 | <enum name="settings" value="1" /> |
| 295 | <enum name="shortcutIme" value="2" /> |
| 296 | <enum name="shortcutImeOrSettings" value="3" /> |
| 297 | </attr> |
| 298 | <attr name="clobberSettingsKey" format="boolean" /> |
Tadashi G. Takaoka | c3afe2c | 2011-07-31 18:34:54 -0700 | [diff] [blame] | 299 | <attr name="shortcutKeyEnabled" format="boolean" /> |
| 300 | <attr name="hasShortcutKey" format="boolean" /> |
Tadashi G. Takaoka | 5859205 | 2011-06-03 02:18:57 +0900 | [diff] [blame] | 301 | <attr name="imeAction" format="enum"> |
Tadashi G. Takaoka | 6624fd8 | 2010-11-19 16:04:52 -0800 | [diff] [blame] | 302 | <!-- This should be aligned with EditorInfo.IME_ACTION_* --> |
Tadashi G. Takaoka | 5859205 | 2011-06-03 02:18:57 +0900 | [diff] [blame] | 303 | <enum name="actionUnspecified" value="0" /> |
| 304 | <enum name="actionNone" value="1" /> |
| 305 | <enum name="actionGo" value="2" /> |
| 306 | <enum name="actionSearch" value="3" /> |
| 307 | <enum name="actionSend" value="4" /> |
| 308 | <enum name="actionNext" value="5" /> |
| 309 | <enum name="actionDone" value="6" /> |
| 310 | <enum name="actionPrevious" value="7" /> |
Tadashi G. Takaoka | 6624fd8 | 2010-11-19 16:04:52 -0800 | [diff] [blame] | 311 | </attr> |
Tadashi G. Takaoka | 5859205 | 2011-06-03 02:18:57 +0900 | [diff] [blame] | 312 | <attr name="localeCode" format="string" /> |
Tadashi G. Takaoka | ea6c2e3 | 2011-02-18 15:33:44 +0900 | [diff] [blame] | 313 | <attr name="languageCode" format="string" /> |
Tadashi G. Takaoka | 912ade3 | 2011-02-23 17:09:24 +0900 | [diff] [blame] | 314 | <attr name="countryCode" format="string" /> |
Tadashi G. Takaoka | b046511 | 2010-11-11 15:28:14 -0800 | [diff] [blame] | 315 | </declare-styleable> |
Tadashi G. Takaoka | 0b60f83 | 2010-11-19 14:57:24 -0800 | [diff] [blame] | 316 | |
Tadashi G. Takaoka | 5a309f5 | 2010-12-02 18:46:21 +0900 | [diff] [blame] | 317 | <declare-styleable name="Keyboard_KeyStyle"> |
Tadashi G. Takaoka | 0b60f83 | 2010-11-19 14:57:24 -0800 | [diff] [blame] | 318 | <attr name="styleName" format="string" /> |
| 319 | <attr name="parentStyle" format="string" /> |
| 320 | </declare-styleable> |
Tadashi G. Takaoka | a619673 | 2011-06-16 17:20:29 +0900 | [diff] [blame] | 321 | |
| 322 | <declare-styleable name="LatinKeyboard"> |
Tadashi G. Takaoka | 9116bf1 | 2011-06-21 20:10:51 +0900 | [diff] [blame] | 323 | <attr name="autoCorrectionSpacebarLedEnabled" format="boolean" /> |
Tadashi G. Takaoka | a619673 | 2011-06-16 17:20:29 +0900 | [diff] [blame] | 324 | <attr name="autoCorrectionSpacebarLedIcon" format="reference" /> |
| 325 | <attr name="disabledShortcutIcon" format="reference" /> |
| 326 | <attr name="spacebarTextColor" format="color" /> |
| 327 | <attr name="spacebarTextShadowColor" format="color" /> |
Tadashi G. Takaoka | a619673 | 2011-06-16 17:20:29 +0900 | [diff] [blame] | 328 | </declare-styleable> |
Tadashi G. Takaoka | f86109c | 2011-12-13 17:30:51 +0900 | [diff] [blame^] | 329 | |
| 330 | <declare-styleable name="KeyboardSet"> |
| 331 | <!-- Locale of the keyboard layouts --> |
| 332 | <attr name="keyboardLocale" format="string" /> |
| 333 | </declare-styleable> |
| 334 | |
| 335 | <declare-styleable name="KeyboardSet_Element"> |
| 336 | <!-- This should be aligned with KeyboardId.ELEMENT_* --> |
| 337 | <attr name="elementName" format="enum"> |
| 338 | <enum name="alphabet" value="0" /> |
| 339 | <!-- TODO: Implement alphabet variant shift keyboards |
| 340 | <enum name="alphabetManualTemporaryShift" value="1" /> |
| 341 | <enum name="alphabetAutomaticTemporaryShift" value="2" /> |
| 342 | <enum name="alphabetShiftLock" value="3" /> |
| 343 | <enum name="alphabetShiftLockShift" value="4" /> |
| 344 | --> |
| 345 | <enum name="symbols" value="5" /> |
| 346 | <enum name="symbolsShift" value="6" /> |
| 347 | <enum name="phone" value="7" /> |
| 348 | <enum name="phoneShift" value="8" /> |
| 349 | <enum name="number" value="9" /> |
| 350 | </attr> |
| 351 | <attr name="elementKeyboard" format="reference" /> |
| 352 | <!-- TODO: Add setShifted and setShiftLocked attribute. --> |
| 353 | </declare-styleable> |
satok | 979f869 | 2010-08-20 14:35:02 +0900 | [diff] [blame] | 354 | </resources> |