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" /> |
Tadashi G. Takaoka | 0e2fa66 | 2011-09-05 16:46:15 +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 | 8aee759 | 2011-06-27 17:51:36 +0900 | [diff] [blame] | 91 | <!-- The text color for key press feedback. --> |
| 92 | <attr name="keyPreviewTextColor" format="color" /> |
satok | 979f869 | 2010-08-20 14:35:02 +0900 | [diff] [blame] | 93 | <!-- Vertical offset of the key press feedback from the key. --> |
| 94 | <attr name="keyPreviewOffset" format="dimension" /> |
satok | 979f869 | 2010-08-20 14:35:02 +0900 | [diff] [blame] | 95 | <!-- Height of the key press feedback popup. --> |
| 96 | <attr name="keyPreviewHeight" format="dimension" /> |
Tadashi G. Takaoka | 520a297 | 2011-06-25 19:38:55 +0900 | [diff] [blame] | 97 | <!-- Size of the text for key press feedback popup, int the proportion of key height --> |
| 98 | <attr name="keyPreviewTextRatio" format="float" /> |
satok | 979f869 | 2010-08-20 14:35:02 +0900 | [diff] [blame] | 99 | |
| 100 | <!-- Amount to offset the touch Y coordinate by, for bias correction. --> |
| 101 | <attr name="verticalCorrection" format="dimension" /> |
| 102 | |
Tadashi G. Takaoka | 9d5601e | 2011-08-31 15:26:32 +0900 | [diff] [blame] | 103 | <!-- Layout resource for more keys panel --> |
| 104 | <attr name="moreKeysLayout" format="reference" /> |
satok | 979f869 | 2010-08-20 14:35:02 +0900 | [diff] [blame] | 105 | |
| 106 | <attr name="shadowColor" format="color" /> |
| 107 | <attr name="shadowRadius" format="float" /> |
| 108 | <attr name="backgroundDimAmount" format="float" /> |
| 109 | |
Tadashi G. Takaoka | 9d9522a | 2011-06-15 12:36:53 +0900 | [diff] [blame] | 110 | <attr name="keyTextStyle" format="enum"> |
Tadashi G. Takaoka | 5d04042 | 2010-12-01 12:22:19 +0900 | [diff] [blame] | 111 | <!-- This should be aligned with Typeface.NORMAL etc. --> |
Tadashi G. Takaoka | 59c9930 | 2010-11-21 16:40:38 -0800 | [diff] [blame] | 112 | <enum name="normal" value="0" /> |
| 113 | <enum name="bold" value="1" /> |
| 114 | <enum name="italic" value="2" /> |
Tadashi G. Takaoka | 5d04042 | 2010-12-01 12:22:19 +0900 | [diff] [blame] | 115 | <enum name="boldItalic" value="3" /> |
satok | 979f869 | 2010-08-20 14:35:02 +0900 | [diff] [blame] | 116 | </attr> |
satok | 979f869 | 2010-08-20 14:35:02 +0900 | [diff] [blame] | 117 | </declare-styleable> |
| 118 | |
Tadashi G. Takaoka | 913e2ae | 2011-09-01 14:54:28 +0900 | [diff] [blame] | 119 | <declare-styleable name="SuggestionsView"> |
Tadashi G. Takaoka | d47a955 | 2011-08-16 18:18:58 -0700 | [diff] [blame] | 120 | <attr name="suggestionStripOption" format="integer"> |
Tadashi G. Takaoka | 08a6f2a | 2011-06-15 11:49:57 +0900 | [diff] [blame] | 121 | <flag name="autoCorrectBold" value="0x01" /> |
| 122 | <flag name="autoCorrectUnderline" value="0x02" /> |
| 123 | <flag name="autoCorrectInvert" value="0x04" /> |
Tadashi G. Takaoka | d47a955 | 2011-08-16 18:18:58 -0700 | [diff] [blame] | 124 | <flag name="validTypedWordBold" value="0x08" /> |
Tadashi G. Takaoka | 08a6f2a | 2011-06-15 11:49:57 +0900 | [diff] [blame] | 125 | </attr> |
| 126 | <attr name="colorTypedWord" format="color" /> |
| 127 | <attr name="colorAutoCorrect" format="color" /> |
| 128 | <attr name="colorSuggested" format="color" /> |
Tadashi G. Takaoka | 913e2ae | 2011-09-01 14:54:28 +0900 | [diff] [blame] | 129 | <attr name="suggestionsCountInStrip" format="integer" /> |
| 130 | <attr name="centerSuggestionPercentile" format="integer" /> |
Tadashi G. Takaoka | 9676038 | 2011-09-05 17:22:34 +0900 | [diff] [blame] | 131 | <attr name="maxMoreSuggestionsRow" format="integer" /> |
| 132 | <attr name="minMoreSuggestionsWidth" format="float" /> |
Tadashi G. Takaoka | 08a6f2a | 2011-06-15 11:49:57 +0900 | [diff] [blame] | 133 | </declare-styleable> |
| 134 | |
Tadashi G. Takaoka | 5a309f5 | 2010-12-02 18:46:21 +0900 | [diff] [blame] | 135 | <declare-styleable name="Keyboard"> |
Tadashi G. Takaoka | 9f01ed5 | 2010-12-08 14:36:41 +0900 | [diff] [blame] | 136 | <!-- Default keyboard height --> |
Tadashi G. Takaoka | ea0c567 | 2011-09-05 18:58:30 +0900 | [diff] [blame] | 137 | <attr name="keyboardHeight" format="dimension|fraction" /> |
Tadashi G. Takaoka | 9f01ed5 | 2010-12-08 14:36:41 +0900 | [diff] [blame] | 138 | <!-- Maximum keyboard height, in pixels or percentage of display height --> |
| 139 | <attr name="maxKeyboardHeight" format="dimension|fraction" /> |
Tadashi G. Takaoka | ff483e8 | 2011-05-12 14:49:18 +0900 | [diff] [blame] | 140 | <!-- Minimum keyboard height represented in pixels, percentage of display height if fraction |
| 141 | is positive, or percentage of display width if fraction is negative. --> |
| 142 | <attr name="minKeyboardHeight" format="dimension|fraction" /> |
Tadashi G. Takaoka | 9116bf1 | 2011-06-21 20:10:51 +0900 | [diff] [blame] | 143 | <!-- Keyboard top and bottom paddings. --> |
Tadashi G. Takaoka | ea0c567 | 2011-09-05 18:58:30 +0900 | [diff] [blame] | 144 | <attr name="keyboardTopPadding" format="dimension|fraction" /> |
| 145 | <attr name="keyboardBottomPadding" format="dimension|fraction" /> |
Tadashi G. Takaoka | 327763e | 2011-05-30 20:05:50 +0900 | [diff] [blame] | 146 | <!-- Default width of a key, in pixels or percentage of display width. |
| 147 | If the value is zero, the actual key width will be determined to fill out the area up |
| 148 | to the right edge of the keyboard. |
| 149 | If the value is negative, the actual key width will be determined to fill out the |
| 150 | area between the nearest key on the left hand side and the right edge of the keyboard. |
| 151 | --> |
| 152 | <attr name="keyWidth" format="dimension|fraction|enum"> |
Tadashi G. Takaoka | 18453d6 | 2011-09-08 17:19:23 +0900 | [diff] [blame] | 153 | <enum name="fillRight" value="-1" /> |
| 154 | <enum name="fillBoth" value="-2" /> |
Tadashi G. Takaoka | 327763e | 2011-05-30 20:05:50 +0900 | [diff] [blame] | 155 | </attr> |
Tadashi G. Takaoka | 9f01ed5 | 2010-12-08 14:36:41 +0900 | [diff] [blame] | 156 | <!-- Default height of a row (key height + vertical gap), in pixels or percentage of |
| 157 | keyboard height. --> |
| 158 | <attr name="rowHeight" format="dimension|fraction" /> |
satok | 4fc510a | 2010-10-01 19:40:44 +0900 | [diff] [blame] | 159 | <!-- Default horizontal gap between keys. --> |
| 160 | <attr name="horizontalGap" format="dimension|fraction" /> |
| 161 | <!-- Default vertical gap between rows of keys. --> |
| 162 | <attr name="verticalGap" format="dimension|fraction" /> |
Tadashi G. Takaoka | 9d5601e | 2011-08-31 15:26:32 +0900 | [diff] [blame] | 163 | <!-- More keys keyboard layout template --> |
| 164 | <attr name="moreKeysTemplate" format="reference" /> |
satok | 15a0ba6 | 2011-04-21 15:35:07 +0900 | [diff] [blame] | 165 | <!-- Locale of the keyboard layout --> |
| 166 | <attr name="keyboardLocale" format="string" /> |
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" /> |
| 181 | <attr name="iconPreviewSettingsKey" format="reference" /> |
| 182 | <attr name="iconPreviewShortcutKey" format="reference" /> |
satok | 4fc510a | 2010-10-01 19:40:44 +0900 | [diff] [blame] | 183 | </declare-styleable> |
| 184 | |
Tadashi G. Takaoka | 5a309f5 | 2010-12-02 18:46:21 +0900 | [diff] [blame] | 185 | <declare-styleable name="Keyboard_Key"> |
Tadashi G. Takaoka | c4f7166 | 2010-12-20 20:30:26 +0900 | [diff] [blame] | 186 | <!-- The unicode value that this key outputs. --> |
| 187 | <attr name="code" 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 | e7c0e73 | 2011-04-07 16:12:00 +0900 | [diff] [blame] | 192 | <!-- Whether this is a functional key which has different key top than normal key. --> |
| 193 | <attr name="isFunctional" format="boolean" /> |
satok | 4fc510a | 2010-10-01 19:40:44 +0900 | [diff] [blame] | 194 | <!-- Whether this is a toggle key. --> |
| 195 | <attr name="isSticky" format="boolean" /> |
| 196 | <!-- Whether long-pressing on this key will make it repeat. --> |
| 197 | <attr name="isRepeatable" format="boolean" /> |
satok | 4fc510a | 2010-10-01 19:40:44 +0900 | [diff] [blame] | 198 | <!-- The string of characters to output when this key is pressed. --> |
| 199 | <attr name="keyOutputText" format="string" /> |
| 200 | <!-- The label to display on the key. --> |
| 201 | <attr name="keyLabel" format="string" /> |
Tadashi G. Takaoka | 520a297 | 2011-06-25 19:38:55 +0900 | [diff] [blame] | 202 | <!-- The hint label to display on the key in conjunction with the label. --> |
| 203 | <attr name="keyHintLabel" format="string" /> |
Tadashi G. Takaoka | 9d9522a | 2011-06-15 12:36:53 +0900 | [diff] [blame] | 204 | <!-- The key label option. --> |
Tadashi G. Takaoka | 5859205 | 2011-06-03 02:18:57 +0900 | [diff] [blame] | 205 | <attr name="keyLabelOption" format="integer"> |
Tadashi G. Takaoka | 9d9522a | 2011-06-15 12:36:53 +0900 | [diff] [blame] | 206 | <!-- This should be aligned with Key.LABEL_OPTION_* --> |
Tadashi G. Takaoka | b7758d6 | 2011-06-15 13:38:58 +0900 | [diff] [blame] | 207 | <flag name="alignLeft" value="0x01" /> |
| 208 | <flag name="alignRight" value="0x02" /> |
Tadashi G. Takaoka | 520a297 | 2011-06-25 19:38:55 +0900 | [diff] [blame] | 209 | <flag name="alignLeftOfCenter" value="0x08" /> |
| 210 | <flag name="largeLetter" value="0x10" /> |
| 211 | <flag name="fontNormal" value="0x20" /> |
| 212 | <flag name="fontMonoSpace" value="0x40" /> |
| 213 | <flag name="followKeyLetterRatio" value="0x80" /> |
| 214 | <flag name="followKeyHintLabelRatio" value="0x100" /> |
| 215 | <flag name="hasPopupHint" value="0x200" /> |
| 216 | <flag name="hasUppercaseLetter" value="0x400" /> |
| 217 | <flag name="hasHintLabel" value="0x800" /> |
Tadashi G. Takaoka | 62d4a96 | 2011-08-02 21:29:24 -0700 | [diff] [blame] | 218 | <flag name="withIconLeft" value="0x1000" /> |
| 219 | <flag name="withIconRight" value="0x2000" /> |
Tadashi G. Takaoka | cd39f2a | 2010-11-20 08:03:24 -0800 | [diff] [blame] | 220 | </attr> |
satok | 4fc510a | 2010-10-01 19:40:44 +0900 | [diff] [blame] | 221 | <!-- The icon to display on the key instead of the label. --> |
Tadashi G. Takaoka | c2a2178 | 2011-06-21 23:38:42 +0900 | [diff] [blame] | 222 | <attr name="keyIcon" format="enum"> |
| 223 | <!-- This should be aligned with KeyboardIcons.ICON_* --> |
| 224 | <enum name="iconShiftKey" value="1" /> |
Tadashi G. Takaoka | 62d4a96 | 2011-08-02 21:29:24 -0700 | [diff] [blame] | 225 | <enum name="iconDeleteKey" value="2" /> |
| 226 | <enum name="iconSettingsKey" value="3" /> |
| 227 | <enum name="iconSpaceKey" value="4" /> |
| 228 | <enum name="iconReturnKey" value="5" /> |
| 229 | <enum name="iconSearchKey" value="6" /> |
| 230 | <enum name="iconTabKey" value="7" /> |
| 231 | <enum name="iconShortcutKey" value="8" /> |
| 232 | <enum name="iconShortcutForLabel" value="9" /> |
Tadashi G. Takaoka | c2a2178 | 2011-06-21 23:38:42 +0900 | [diff] [blame] | 233 | </attr> |
| 234 | <!-- Shift key icon for shifted state --> |
| 235 | <attr name="keyIconShifted" format="enum"> |
| 236 | <!-- This should be aligned with KeyboardIcons.ICON_SHIFTED_* --> |
Tadashi G. Takaoka | 62d4a96 | 2011-08-02 21:29:24 -0700 | [diff] [blame] | 237 | <enum name="iconShiftedShiftKey" value="10" /> |
Tadashi G. Takaoka | c2a2178 | 2011-06-21 23:38:42 +0900 | [diff] [blame] | 238 | </attr> |
| 239 | <!-- The icon to show in the popup preview. --> |
| 240 | <attr name="keyIconPreview" format="enum"> |
| 241 | <!-- This should be aligned with KeyboardIcons.ICON_PREVIEW_* --> |
Tadashi G. Takaoka | 62d4a96 | 2011-08-02 21:29:24 -0700 | [diff] [blame] | 242 | <enum name="iconPreviewTabKey" value="11" /> |
| 243 | <enum name="iconPreviewSettingsKey" value="12" /> |
| 244 | <enum name="iconPreviewShortcutKey" value="13" /> |
Tadashi G. Takaoka | c2a2178 | 2011-06-21 23:38:42 +0900 | [diff] [blame] | 245 | </attr> |
Tadashi G. Takaoka | 0b60f83 | 2010-11-19 14:57:24 -0800 | [diff] [blame] | 246 | <!-- The key style to specify a set of key attributes defined by <key_style/> --> |
| 247 | <attr name="keyStyle" format="string" /> |
Tadashi G. Takaoka | aa721c4 | 2011-02-18 11:28:17 +0900 | [diff] [blame] | 248 | <!-- The key is enabled and responds on press. --> |
| 249 | <attr name="enabled" format="boolean" /> |
Tadashi G. Takaoka | 56abeab | 2011-04-11 11:30:15 +0900 | [diff] [blame] | 250 | <!-- Visual insets --> |
| 251 | <attr name="visualInsetsLeft" format="dimension|fraction" /> |
| 252 | <attr name="visualInsetsRight" format="dimension|fraction" /> |
Tadashi G. Takaoka | 327763e | 2011-05-30 20:05:50 +0900 | [diff] [blame] | 253 | <!-- The X-coordinate of upper right corner of this key including horizontal gap. |
| 254 | If the value is negative, the origin is the right edge of the keyboard. --> |
| 255 | <attr name="keyXPos" format="dimension|fraction" /> |
satok | 4fc510a | 2010-10-01 19:40:44 +0900 | [diff] [blame] | 256 | </declare-styleable> |
| 257 | |
Tadashi G. Takaoka | 5a309f5 | 2010-12-02 18:46:21 +0900 | [diff] [blame] | 258 | <declare-styleable name="Keyboard_Include"> |
Tadashi G. Takaoka | d663555 | 2010-10-07 17:13:30 +0900 | [diff] [blame] | 259 | <attr name="keyboardLayout" format="reference" /> |
| 260 | </declare-styleable> |
Tadashi G. Takaoka | b046511 | 2010-11-11 15:28:14 -0800 | [diff] [blame] | 261 | |
Tadashi G. Takaoka | 5a309f5 | 2010-12-02 18:46:21 +0900 | [diff] [blame] | 262 | <declare-styleable name="Keyboard_Case"> |
| 263 | <!-- This should be aligned with KeyboardId.MODE_* --> |
Tadashi G. Takaoka | 5859205 | 2011-06-03 02:18:57 +0900 | [diff] [blame] | 264 | <attr name="mode" format="enum|string"> |
Tadashi G. Takaoka | cd39f2a | 2010-11-20 08:03:24 -0800 | [diff] [blame] | 265 | <enum name="text" value="0" /> |
| 266 | <enum name="url" value="1" /> |
| 267 | <enum name="email" value="2" /> |
| 268 | <enum name="im" value="3" /> |
Tadashi G. Takaoka | 9e2d810 | 2011-05-27 21:41:13 +0900 | [diff] [blame] | 269 | <enum name="phone" value="4" /> |
| 270 | <enum name="number" value="5" /> |
Tadashi G. Takaoka | 1d8196c | 2010-11-19 14:57:24 -0800 | [diff] [blame] | 271 | </attr> |
Tadashi G. Takaoka | 28a38fd | 2011-06-17 18:25:54 +0900 | [diff] [blame] | 272 | <attr name="navigateAction" format="boolean" /> |
Tadashi G. Takaoka | 4b13b4f | 2011-02-20 12:54:14 +0900 | [diff] [blame] | 273 | <attr name="passwordInput" format="boolean" /> |
Tadashi G. Takaoka | b7758d6 | 2011-06-15 13:38:58 +0900 | [diff] [blame] | 274 | <attr name="hasSettingsKey" format="boolean" /> |
Tadashi G. Takaoka | cd96a69 | 2011-06-23 21:55:56 +0900 | [diff] [blame] | 275 | <!-- This should be aligned with KeyboardID.F2KEY_MODE_* --> |
| 276 | <attr name="f2KeyMode" format="enum"> |
| 277 | <enum name="none" value="0" /> |
| 278 | <enum name="settings" value="1" /> |
| 279 | <enum name="shortcutIme" value="2" /> |
| 280 | <enum name="shortcutImeOrSettings" value="3" /> |
| 281 | </attr> |
| 282 | <attr name="clobberSettingsKey" format="boolean" /> |
Tadashi G. Takaoka | c3afe2c | 2011-07-31 18:34:54 -0700 | [diff] [blame] | 283 | <attr name="shortcutKeyEnabled" format="boolean" /> |
| 284 | <attr name="hasShortcutKey" format="boolean" /> |
Tadashi G. Takaoka | 5859205 | 2011-06-03 02:18:57 +0900 | [diff] [blame] | 285 | <attr name="imeAction" format="enum"> |
Tadashi G. Takaoka | 6624fd8 | 2010-11-19 16:04:52 -0800 | [diff] [blame] | 286 | <!-- This should be aligned with EditorInfo.IME_ACTION_* --> |
Tadashi G. Takaoka | 5859205 | 2011-06-03 02:18:57 +0900 | [diff] [blame] | 287 | <enum name="actionUnspecified" value="0" /> |
| 288 | <enum name="actionNone" value="1" /> |
| 289 | <enum name="actionGo" value="2" /> |
| 290 | <enum name="actionSearch" value="3" /> |
| 291 | <enum name="actionSend" value="4" /> |
| 292 | <enum name="actionNext" value="5" /> |
| 293 | <enum name="actionDone" value="6" /> |
| 294 | <enum name="actionPrevious" value="7" /> |
Tadashi G. Takaoka | 6624fd8 | 2010-11-19 16:04:52 -0800 | [diff] [blame] | 295 | </attr> |
Tadashi G. Takaoka | 5859205 | 2011-06-03 02:18:57 +0900 | [diff] [blame] | 296 | <attr name="localeCode" format="string" /> |
Tadashi G. Takaoka | ea6c2e3 | 2011-02-18 15:33:44 +0900 | [diff] [blame] | 297 | <attr name="languageCode" format="string" /> |
Tadashi G. Takaoka | 912ade3 | 2011-02-23 17:09:24 +0900 | [diff] [blame] | 298 | <attr name="countryCode" format="string" /> |
Tadashi G. Takaoka | b046511 | 2010-11-11 15:28:14 -0800 | [diff] [blame] | 299 | </declare-styleable> |
Tadashi G. Takaoka | 0b60f83 | 2010-11-19 14:57:24 -0800 | [diff] [blame] | 300 | |
Tadashi G. Takaoka | 5a309f5 | 2010-12-02 18:46:21 +0900 | [diff] [blame] | 301 | <declare-styleable name="Keyboard_KeyStyle"> |
Tadashi G. Takaoka | 0b60f83 | 2010-11-19 14:57:24 -0800 | [diff] [blame] | 302 | <attr name="styleName" format="string" /> |
| 303 | <attr name="parentStyle" format="string" /> |
| 304 | </declare-styleable> |
Tadashi G. Takaoka | a619673 | 2011-06-16 17:20:29 +0900 | [diff] [blame] | 305 | |
| 306 | <declare-styleable name="LatinKeyboard"> |
Tadashi G. Takaoka | 9116bf1 | 2011-06-21 20:10:51 +0900 | [diff] [blame] | 307 | <attr name="autoCorrectionSpacebarLedEnabled" format="boolean" /> |
Tadashi G. Takaoka | a619673 | 2011-06-16 17:20:29 +0900 | [diff] [blame] | 308 | <attr name="autoCorrectionSpacebarLedIcon" format="reference" /> |
| 309 | <attr name="disabledShortcutIcon" format="reference" /> |
| 310 | <attr name="spacebarTextColor" format="color" /> |
| 311 | <attr name="spacebarTextShadowColor" format="color" /> |
Tadashi G. Takaoka | a619673 | 2011-06-16 17:20:29 +0900 | [diff] [blame] | 312 | </declare-styleable> |
satok | 979f869 | 2010-08-20 14:35:02 +0900 | [diff] [blame] | 313 | </resources> |