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 | 13a7419 | 2011-05-24 21:08:20 +0900 | [diff] [blame] | 25 | <!-- PopupMiniKeyboardView style --> |
| 26 | <attr name="popupMiniKeyboardViewStyle" format="reference" /> |
| 27 | <attr name="popupMiniKeyboardPanelStyle" format="reference" /> |
| 28 | <!-- Suggestions strip style --> |
| 29 | <attr name="suggestionsStripBackgroundStyle" format="reference" /> |
| 30 | <attr name="suggestionBackgroundStyle" format="reference" /> |
| 31 | <attr name="suggestionPreviewBackgroundStyle" format="reference" /> |
Tadashi G. Takaoka | 08a6f2a | 2011-06-15 11:49:57 +0900 | [diff] [blame] | 32 | <attr name="candidateViewStyle" format="reference" /> |
Tadashi G. Takaoka | 13a7419 | 2011-05-24 21:08:20 +0900 | [diff] [blame] | 33 | </declare-styleable> |
satok | 979f869 | 2010-08-20 14:35:02 +0900 | [diff] [blame] | 34 | |
Tadashi G. Takaoka | 5a309f5 | 2010-12-02 18:46:21 +0900 | [diff] [blame] | 35 | <declare-styleable name="KeyboardView"> |
satok | 979f869 | 2010-08-20 14:35:02 +0900 | [diff] [blame] | 36 | <!-- Image for the key. This image needs to be a StateListDrawable, with the following |
| 37 | possible states: normal, pressed, checkable, checkable+pressed, checkable+checked, |
| 38 | checkable+checked+pressed. --> |
| 39 | <attr name="keyBackground" format="reference" /> |
| 40 | |
Tadashi G. Takaoka | 9d9522a | 2011-06-15 12:36:53 +0900 | [diff] [blame] | 41 | <!-- 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] | 42 | <attr name="keyLetterRatio" format="float" /> |
Tadashi G. Takaoka | 520a297 | 2011-06-25 19:38:55 +0900 | [diff] [blame] | 43 | <!-- Large size of the text for one letter keys, in the proportion of key height. --> |
| 44 | <attr name="keyLargeLetterRatio" format="float" /> |
Tadashi G. Takaoka | 9d9522a | 2011-06-15 12:36:53 +0900 | [diff] [blame] | 45 | <!-- Size of the text for keys with some text, in the proportion of key height. --> |
| 46 | <attr name="keyLabelRatio" format="float" /> |
Tadashi G. Takaoka | 520a297 | 2011-06-25 19:38:55 +0900 | [diff] [blame] | 47 | <!-- Size of the text for hint letter (= one character hint label), in the proportion of |
| 48 | key height. --> |
Tadashi G. Takaoka | 9d9522a | 2011-06-15 12:36:53 +0900 | [diff] [blame] | 49 | <attr name="keyHintLetterRatio" format="float" /> |
Tadashi G. Takaoka | 520a297 | 2011-06-25 19:38:55 +0900 | [diff] [blame] | 50 | <!-- Size of the text for hint label, in the proportion of key height. --> |
| 51 | <attr name="keyHintLabelRatio" format="float" /> |
Tadashi G. Takaoka | 9d9522a | 2011-06-15 12:36:53 +0900 | [diff] [blame] | 52 | <!-- Size of the text for upper case letter, in the proportion of key height. --> |
| 53 | <attr name="keyUppercaseLetterRatio" format="float" /> |
satok | 979f869 | 2010-08-20 14:35:02 +0900 | [diff] [blame] | 54 | |
| 55 | <!-- Color to use for the label in a key. --> |
| 56 | <attr name="keyTextColor" format="color" /> |
Tadashi G. Takaoka | 9d9522a | 2011-06-15 12:36:53 +0900 | [diff] [blame] | 57 | <!-- Color to use for the label in a key when in inactivated state. --> |
| 58 | <attr name="keyTextInactivatedColor" format="color" /> |
Tadashi G. Takaoka | 520a297 | 2011-06-25 19:38:55 +0900 | [diff] [blame] | 59 | <!-- Key hint letter (= one character hint label) color --> |
Tadashi G. Takaoka | 9d9522a | 2011-06-15 12:36:53 +0900 | [diff] [blame] | 60 | <attr name="keyHintLetterColor" format="color" /> |
Tadashi G. Takaoka | 520a297 | 2011-06-25 19:38:55 +0900 | [diff] [blame] | 61 | <!-- Key hint label color --> |
| 62 | <attr name="keyHintLabelColor" format="color" /> |
Tadashi G. Takaoka | 9d9522a | 2011-06-15 12:36:53 +0900 | [diff] [blame] | 63 | <!-- Upper case letter colors --> |
| 64 | <attr name="keyUppercaseLetterInactivatedColor" format="color" /> |
| 65 | <attr name="keyUppercaseLetterActivatedColor" format="color" /> |
satok | 979f869 | 2010-08-20 14:35:02 +0900 | [diff] [blame] | 66 | |
| 67 | <!-- Layout resource for key press feedback.--> |
| 68 | <attr name="keyPreviewLayout" format="reference" /> |
Tadashi G. Takaoka | 8aee759 | 2011-06-27 17:51:36 +0900 | [diff] [blame] | 69 | <!-- The background for key press feedback. --> |
| 70 | <attr name="keyPreviewBackground" format="reference" /> |
Tadashi G. Takaoka | d87f28f | 2011-06-28 03:01:35 +0900 | [diff] [blame] | 71 | <!-- The background for the left edge key press feedback. --> |
| 72 | <attr name="keyPreviewLeftBackground" format="reference" /> |
| 73 | <!-- The background for the right edge key press feedback. --> |
| 74 | <attr name="keyPreviewRightBackground" format="reference" /> |
Tadashi G. Takaoka | 8aee759 | 2011-06-27 17:51:36 +0900 | [diff] [blame] | 75 | <!-- The background for spacebar press feedback. --> |
| 76 | <attr name="keyPreviewSpacebarBackground" format="reference" /> |
| 77 | <!-- The text color for key press feedback. --> |
| 78 | <attr name="keyPreviewTextColor" format="color" /> |
satok | 979f869 | 2010-08-20 14:35:02 +0900 | [diff] [blame] | 79 | <!-- Vertical offset of the key press feedback from the key. --> |
| 80 | <attr name="keyPreviewOffset" format="dimension" /> |
satok | 979f869 | 2010-08-20 14:35:02 +0900 | [diff] [blame] | 81 | <!-- Height of the key press feedback popup. --> |
| 82 | <attr name="keyPreviewHeight" format="dimension" /> |
Tadashi G. Takaoka | 520a297 | 2011-06-25 19:38:55 +0900 | [diff] [blame] | 83 | <!-- Size of the text for key press feedback popup, int the proportion of key height --> |
| 84 | <attr name="keyPreviewTextRatio" format="float" /> |
satok | 979f869 | 2010-08-20 14:35:02 +0900 | [diff] [blame] | 85 | |
Tadashi G. Takaoka | eb68036 | 2010-09-13 19:26:23 +0900 | [diff] [blame] | 86 | <!-- Hysteresis distance for key debouncing --> |
| 87 | <attr name="keyHysteresisDistance" format="dimension" /> |
| 88 | |
satok | 979f869 | 2010-08-20 14:35:02 +0900 | [diff] [blame] | 89 | <!-- Amount to offset the touch Y coordinate by, for bias correction. --> |
| 90 | <attr name="verticalCorrection" format="dimension" /> |
| 91 | |
satok | 979f869 | 2010-08-20 14:35:02 +0900 | [diff] [blame] | 92 | <!-- Layout resource for popup keyboards. --> |
| 93 | <attr name="popupLayout" format="reference" /> |
| 94 | |
| 95 | <attr name="shadowColor" format="color" /> |
| 96 | <attr name="shadowRadius" format="float" /> |
| 97 | <attr name="backgroundDimAmount" format="float" /> |
| 98 | |
Tadashi G. Takaoka | 9d9522a | 2011-06-15 12:36:53 +0900 | [diff] [blame] | 99 | <attr name="keyTextStyle" format="enum"> |
Tadashi G. Takaoka | 5d04042 | 2010-12-01 12:22:19 +0900 | [diff] [blame] | 100 | <!-- This should be aligned with Typeface.NORMAL etc. --> |
Tadashi G. Takaoka | 59c9930 | 2010-11-21 16:40:38 -0800 | [diff] [blame] | 101 | <enum name="normal" value="0" /> |
| 102 | <enum name="bold" value="1" /> |
| 103 | <enum name="italic" value="2" /> |
Tadashi G. Takaoka | 5d04042 | 2010-12-01 12:22:19 +0900 | [diff] [blame] | 104 | <enum name="boldItalic" value="3" /> |
satok | 979f869 | 2010-08-20 14:35:02 +0900 | [diff] [blame] | 105 | </attr> |
satok | 979f869 | 2010-08-20 14:35:02 +0900 | [diff] [blame] | 106 | </declare-styleable> |
| 107 | |
Tadashi G. Takaoka | 08a6f2a | 2011-06-15 11:49:57 +0900 | [diff] [blame] | 108 | <declare-styleable name="CandidateView"> |
| 109 | <attr name="autoCorrectHighlight" format="integer"> |
| 110 | <flag name="autoCorrectBold" value="0x01" /> |
| 111 | <flag name="autoCorrectUnderline" value="0x02" /> |
| 112 | <flag name="autoCorrectInvert" value="0x04" /> |
Tadashi G. Takaoka | 08a6f2a | 2011-06-15 11:49:57 +0900 | [diff] [blame] | 113 | </attr> |
| 114 | <attr name="colorTypedWord" format="color" /> |
| 115 | <attr name="colorAutoCorrect" format="color" /> |
| 116 | <attr name="colorSuggested" format="color" /> |
| 117 | <attr name="iconExpandPane" format="reference" /> |
| 118 | <attr name="iconClosePane" format="reference" /> |
| 119 | </declare-styleable> |
| 120 | |
Tadashi G. Takaoka | 5a309f5 | 2010-12-02 18:46:21 +0900 | [diff] [blame] | 121 | <declare-styleable name="Keyboard"> |
Tadashi G. Takaoka | 9f01ed5 | 2010-12-08 14:36:41 +0900 | [diff] [blame] | 122 | <!-- Default keyboard height --> |
| 123 | <attr name="keyboardHeight" format="dimension" /> |
| 124 | <!-- Maximum keyboard height, in pixels or percentage of display height --> |
| 125 | <attr name="maxKeyboardHeight" format="dimension|fraction" /> |
Tadashi G. Takaoka | ff483e8 | 2011-05-12 14:49:18 +0900 | [diff] [blame] | 126 | <!-- Minimum keyboard height represented in pixels, percentage of display height if fraction |
| 127 | is positive, or percentage of display width if fraction is negative. --> |
| 128 | <attr name="minKeyboardHeight" format="dimension|fraction" /> |
Tadashi G. Takaoka | 9116bf1 | 2011-06-21 20:10:51 +0900 | [diff] [blame] | 129 | <!-- Keyboard top and bottom paddings. --> |
| 130 | <attr name="keyboardTopPadding" format="dimension" /> |
| 131 | <attr name="keyboardBottomPadding" format="dimension" /> |
Tadashi G. Takaoka | 327763e | 2011-05-30 20:05:50 +0900 | [diff] [blame] | 132 | <!-- Default width of a key, in pixels or percentage of display width. |
| 133 | If the value is zero, the actual key width will be determined to fill out the area up |
| 134 | to the right edge of the keyboard. |
| 135 | If the value is negative, the actual key width will be determined to fill out the |
| 136 | area between the nearest key on the left hand side and the right edge of the keyboard. |
| 137 | --> |
| 138 | <attr name="keyWidth" format="dimension|fraction|enum"> |
| 139 | <enum name="fillRight" value="0" /> |
| 140 | <enum name="fillBoth" value="-1" /> |
| 141 | </attr> |
Tadashi G. Takaoka | 9f01ed5 | 2010-12-08 14:36:41 +0900 | [diff] [blame] | 142 | <!-- Default height of a row (key height + vertical gap), in pixels or percentage of |
| 143 | keyboard height. --> |
| 144 | <attr name="rowHeight" format="dimension|fraction" /> |
satok | 4fc510a | 2010-10-01 19:40:44 +0900 | [diff] [blame] | 145 | <!-- Default horizontal gap between keys. --> |
| 146 | <attr name="horizontalGap" format="dimension|fraction" /> |
| 147 | <!-- Default vertical gap between rows of keys. --> |
| 148 | <attr name="verticalGap" format="dimension|fraction" /> |
Tadashi G. Takaoka | 9b6d1d5 | 2010-12-14 15:31:47 +0900 | [diff] [blame] | 149 | <!-- Popup keyboard layout template --> |
| 150 | <attr name="popupKeyboardTemplate" format="reference" /> |
satok | 15a0ba6 | 2011-04-21 15:35:07 +0900 | [diff] [blame] | 151 | <!-- Locale of the keyboard layout --> |
| 152 | <attr name="keyboardLocale" format="string" /> |
Tadashi G. Takaoka | c2a2178 | 2011-06-21 23:38:42 +0900 | [diff] [blame] | 153 | <!-- Icon set for key top and key preview. --> |
| 154 | <attr name="iconShiftKey" format="reference" /> |
| 155 | <attr name="iconToSymbolKey" format="reference" /> |
| 156 | <attr name="iconToSymbolKeyWithShortcut" format="reference" /> |
| 157 | <attr name="iconDeleteKey" format="reference" /> |
| 158 | <attr name="iconSettingsKey" format="reference" /> |
| 159 | <attr name="iconShortcutKey" format="reference" /> |
| 160 | <attr name="iconSpaceKey" format="reference" /> |
| 161 | <attr name="iconReturnKey" format="reference" /> |
| 162 | <attr name="iconSearchKey" format="reference" /> |
| 163 | <attr name="iconTabKey" format="reference" /> |
Tadashi G. Takaoka | c2a2178 | 2011-06-21 23:38:42 +0900 | [diff] [blame] | 164 | <attr name="iconShiftedShiftKey" format="reference" /> |
| 165 | <attr name="iconPreviewSpaceKey" format="reference" /> |
| 166 | <attr name="iconPreviewTabKey" format="reference" /> |
| 167 | <attr name="iconPreviewSettingsKey" format="reference" /> |
| 168 | <attr name="iconPreviewShortcutKey" format="reference" /> |
satok | 4fc510a | 2010-10-01 19:40:44 +0900 | [diff] [blame] | 169 | </declare-styleable> |
| 170 | |
Tadashi G. Takaoka | 5a309f5 | 2010-12-02 18:46:21 +0900 | [diff] [blame] | 171 | <declare-styleable name="Keyboard_Key"> |
Tadashi G. Takaoka | c4f7166 | 2010-12-20 20:30:26 +0900 | [diff] [blame] | 172 | <!-- The unicode value that this key outputs. --> |
| 173 | <attr name="code" format="integer" /> |
satok | 4fc510a | 2010-10-01 19:40:44 +0900 | [diff] [blame] | 174 | <!-- The characters to display in the popup keyboard. --> |
| 175 | <attr name="popupCharacters" format="string" /> |
Tadashi G. Takaoka | 9b6d1d5 | 2010-12-14 15:31:47 +0900 | [diff] [blame] | 176 | <!-- Maximum column of popup keyboard --> |
| 177 | <attr name="maxPopupKeyboardColumn" format="integer" /> |
satok | 4fc510a | 2010-10-01 19:40:44 +0900 | [diff] [blame] | 178 | <!-- Key edge flags. --> |
Tadashi G. Takaoka | 5859205 | 2011-06-03 02:18:57 +0900 | [diff] [blame] | 179 | <attr name="keyEdgeFlags" format="integer"> |
satok | 4fc510a | 2010-10-01 19:40:44 +0900 | [diff] [blame] | 180 | <!-- Key is anchored to the left of the keyboard. --> |
| 181 | <flag name="left" value="1" /> |
| 182 | <!-- Key is anchored to the right of the keyboard. --> |
| 183 | <flag name="right" value="2" /> |
| 184 | </attr> |
Tadashi G. Takaoka | e7c0e73 | 2011-04-07 16:12:00 +0900 | [diff] [blame] | 185 | <!-- Whether this is a functional key which has different key top than normal key. --> |
| 186 | <attr name="isFunctional" format="boolean" /> |
satok | 4fc510a | 2010-10-01 19:40:44 +0900 | [diff] [blame] | 187 | <!-- Whether this is a toggle key. --> |
| 188 | <attr name="isSticky" format="boolean" /> |
| 189 | <!-- Whether long-pressing on this key will make it repeat. --> |
| 190 | <attr name="isRepeatable" format="boolean" /> |
satok | 4fc510a | 2010-10-01 19:40:44 +0900 | [diff] [blame] | 191 | <!-- The string of characters to output when this key is pressed. --> |
| 192 | <attr name="keyOutputText" format="string" /> |
| 193 | <!-- The label to display on the key. --> |
| 194 | <attr name="keyLabel" format="string" /> |
Tadashi G. Takaoka | 520a297 | 2011-06-25 19:38:55 +0900 | [diff] [blame] | 195 | <!-- The hint label to display on the key in conjunction with the label. --> |
| 196 | <attr name="keyHintLabel" format="string" /> |
Tadashi G. Takaoka | 9d9522a | 2011-06-15 12:36:53 +0900 | [diff] [blame] | 197 | <!-- The key label option. --> |
Tadashi G. Takaoka | 5859205 | 2011-06-03 02:18:57 +0900 | [diff] [blame] | 198 | <attr name="keyLabelOption" format="integer"> |
Tadashi G. Takaoka | 9d9522a | 2011-06-15 12:36:53 +0900 | [diff] [blame] | 199 | <!-- This should be aligned with Key.LABEL_OPTION_* --> |
Tadashi G. Takaoka | b7758d6 | 2011-06-15 13:38:58 +0900 | [diff] [blame] | 200 | <flag name="alignLeft" value="0x01" /> |
| 201 | <flag name="alignRight" value="0x02" /> |
Tadashi G. Takaoka | 520a297 | 2011-06-25 19:38:55 +0900 | [diff] [blame] | 202 | <flag name="alignBottom" value="0x04" /> |
| 203 | <flag name="alignLeftOfCenter" value="0x08" /> |
| 204 | <flag name="largeLetter" value="0x10" /> |
| 205 | <flag name="fontNormal" value="0x20" /> |
| 206 | <flag name="fontMonoSpace" value="0x40" /> |
| 207 | <flag name="followKeyLetterRatio" value="0x80" /> |
| 208 | <flag name="followKeyHintLabelRatio" value="0x100" /> |
| 209 | <flag name="hasPopupHint" value="0x200" /> |
| 210 | <flag name="hasUppercaseLetter" value="0x400" /> |
| 211 | <flag name="hasHintLabel" value="0x800" /> |
Tadashi G. Takaoka | cd39f2a | 2010-11-20 08:03:24 -0800 | [diff] [blame] | 212 | </attr> |
satok | 4fc510a | 2010-10-01 19:40:44 +0900 | [diff] [blame] | 213 | <!-- The icon to display on the key instead of the label. --> |
Tadashi G. Takaoka | c2a2178 | 2011-06-21 23:38:42 +0900 | [diff] [blame] | 214 | <attr name="keyIcon" format="enum"> |
| 215 | <!-- This should be aligned with KeyboardIcons.ICON_* --> |
| 216 | <enum name="iconShiftKey" value="1" /> |
| 217 | <enum name="iconToSymbolKey" value="2" /> |
| 218 | <enum name="iconToSymbolKeyWithShortcut" value="3" /> |
| 219 | <enum name="iconDeleteKey" value="4" /> |
| 220 | <enum name="iconSettingsKey" value="5" /> |
| 221 | <enum name="iconShortcutKey" value="6" /> |
| 222 | <enum name="iconSpaceKey" value="7" /> |
| 223 | <enum name="iconReturnKey" value="8" /> |
| 224 | <enum name="iconSearchKey" value="9" /> |
| 225 | <enum name="iconTabKey" value="10" /> |
Tadashi G. Takaoka | c2a2178 | 2011-06-21 23:38:42 +0900 | [diff] [blame] | 226 | </attr> |
| 227 | <!-- Shift key icon for shifted state --> |
| 228 | <attr name="keyIconShifted" format="enum"> |
| 229 | <!-- This should be aligned with KeyboardIcons.ICON_SHIFTED_* --> |
Tadashi G. Takaoka | 520a297 | 2011-06-25 19:38:55 +0900 | [diff] [blame] | 230 | <enum name="iconShiftedShiftKey" value="11" /> |
Tadashi G. Takaoka | c2a2178 | 2011-06-21 23:38:42 +0900 | [diff] [blame] | 231 | </attr> |
| 232 | <!-- The icon to show in the popup preview. --> |
| 233 | <attr name="keyIconPreview" format="enum"> |
| 234 | <!-- This should be aligned with KeyboardIcons.ICON_PREVIEW_* --> |
Tadashi G. Takaoka | 520a297 | 2011-06-25 19:38:55 +0900 | [diff] [blame] | 235 | <enum name="iconPreviewSpaceKey" value="12" /> |
| 236 | <enum name="iconPreviewTabKey" value="13" /> |
| 237 | <enum name="iconPreviewSettingsKey" value="14" /> |
| 238 | <enum name="iconPreviewShortcutKey" value="15" /> |
Tadashi G. Takaoka | c2a2178 | 2011-06-21 23:38:42 +0900 | [diff] [blame] | 239 | </attr> |
Tadashi G. Takaoka | 0b60f83 | 2010-11-19 14:57:24 -0800 | [diff] [blame] | 240 | <!-- The key style to specify a set of key attributes defined by <key_style/> --> |
| 241 | <attr name="keyStyle" format="string" /> |
Tadashi G. Takaoka | aa721c4 | 2011-02-18 11:28:17 +0900 | [diff] [blame] | 242 | <!-- The key is enabled and responds on press. --> |
| 243 | <attr name="enabled" format="boolean" /> |
Tadashi G. Takaoka | 56abeab | 2011-04-11 11:30:15 +0900 | [diff] [blame] | 244 | <!-- Visual insets --> |
| 245 | <attr name="visualInsetsLeft" format="dimension|fraction" /> |
| 246 | <attr name="visualInsetsRight" format="dimension|fraction" /> |
Tadashi G. Takaoka | 327763e | 2011-05-30 20:05:50 +0900 | [diff] [blame] | 247 | <!-- The X-coordinate of upper right corner of this key including horizontal gap. |
| 248 | If the value is negative, the origin is the right edge of the keyboard. --> |
| 249 | <attr name="keyXPos" format="dimension|fraction" /> |
satok | 4fc510a | 2010-10-01 19:40:44 +0900 | [diff] [blame] | 250 | </declare-styleable> |
| 251 | |
Tadashi G. Takaoka | 5a309f5 | 2010-12-02 18:46:21 +0900 | [diff] [blame] | 252 | <declare-styleable name="Keyboard_Row"> |
satok | 4fc510a | 2010-10-01 19:40:44 +0900 | [diff] [blame] | 253 | <!-- Row edge flags. --> |
Tadashi G. Takaoka | 5859205 | 2011-06-03 02:18:57 +0900 | [diff] [blame] | 254 | <attr name="rowEdgeFlags" format="integer"> |
satok | 4fc510a | 2010-10-01 19:40:44 +0900 | [diff] [blame] | 255 | <!-- Row is anchored to the top of the keyboard. --> |
| 256 | <flag name="top" value="4" /> |
| 257 | <!-- Row is anchored to the bottom of the keyboard. --> |
| 258 | <flag name="bottom" value="8" /> |
| 259 | </attr> |
satok | 4fc510a | 2010-10-01 19:40:44 +0900 | [diff] [blame] | 260 | </declare-styleable> |
Tadashi G. Takaoka | d663555 | 2010-10-07 17:13:30 +0900 | [diff] [blame] | 261 | |
Tadashi G. Takaoka | 5a309f5 | 2010-12-02 18:46:21 +0900 | [diff] [blame] | 262 | <declare-styleable name="Keyboard_Include"> |
Tadashi G. Takaoka | d663555 | 2010-10-07 17:13:30 +0900 | [diff] [blame] | 263 | <attr name="keyboardLayout" format="reference" /> |
| 264 | </declare-styleable> |
Tadashi G. Takaoka | b046511 | 2010-11-11 15:28:14 -0800 | [diff] [blame] | 265 | |
Tadashi G. Takaoka | 5a309f5 | 2010-12-02 18:46:21 +0900 | [diff] [blame] | 266 | <declare-styleable name="Keyboard_Case"> |
| 267 | <!-- This should be aligned with KeyboardId.MODE_* --> |
Tadashi G. Takaoka | 5859205 | 2011-06-03 02:18:57 +0900 | [diff] [blame] | 268 | <attr name="mode" format="enum|string"> |
Tadashi G. Takaoka | cd39f2a | 2010-11-20 08:03:24 -0800 | [diff] [blame] | 269 | <enum name="text" value="0" /> |
| 270 | <enum name="url" value="1" /> |
| 271 | <enum name="email" value="2" /> |
| 272 | <enum name="im" value="3" /> |
Tadashi G. Takaoka | 9e2d810 | 2011-05-27 21:41:13 +0900 | [diff] [blame] | 273 | <enum name="phone" value="4" /> |
| 274 | <enum name="number" value="5" /> |
Tadashi G. Takaoka | 1d8196c | 2010-11-19 14:57:24 -0800 | [diff] [blame] | 275 | </attr> |
Tadashi G. Takaoka | 28a38fd | 2011-06-17 18:25:54 +0900 | [diff] [blame] | 276 | <attr name="navigateAction" format="boolean" /> |
Tadashi G. Takaoka | 4b13b4f | 2011-02-20 12:54:14 +0900 | [diff] [blame] | 277 | <attr name="passwordInput" format="boolean" /> |
Tadashi G. Takaoka | b7758d6 | 2011-06-15 13:38:58 +0900 | [diff] [blame] | 278 | <attr name="hasSettingsKey" format="boolean" /> |
Tadashi G. Takaoka | cd96a69 | 2011-06-23 21:55:56 +0900 | [diff] [blame] | 279 | <!-- This should be aligned with KeyboardID.F2KEY_MODE_* --> |
| 280 | <attr name="f2KeyMode" format="enum"> |
| 281 | <enum name="none" value="0" /> |
| 282 | <enum name="settings" value="1" /> |
| 283 | <enum name="shortcutIme" value="2" /> |
| 284 | <enum name="shortcutImeOrSettings" value="3" /> |
| 285 | </attr> |
| 286 | <attr name="clobberSettingsKey" format="boolean" /> |
Tadashi G. Takaoka | b7758d6 | 2011-06-15 13:38:58 +0900 | [diff] [blame] | 287 | <attr name="voiceKeyEnabled" format="boolean" /> |
| 288 | <attr name="hasVoiceKey" format="boolean" /> |
Tadashi G. Takaoka | 5859205 | 2011-06-03 02:18:57 +0900 | [diff] [blame] | 289 | <attr name="imeAction" format="enum"> |
Tadashi G. Takaoka | 6624fd8 | 2010-11-19 16:04:52 -0800 | [diff] [blame] | 290 | <!-- This should be aligned with EditorInfo.IME_ACTION_* --> |
Tadashi G. Takaoka | 5859205 | 2011-06-03 02:18:57 +0900 | [diff] [blame] | 291 | <enum name="actionUnspecified" value="0" /> |
| 292 | <enum name="actionNone" value="1" /> |
| 293 | <enum name="actionGo" value="2" /> |
| 294 | <enum name="actionSearch" value="3" /> |
| 295 | <enum name="actionSend" value="4" /> |
| 296 | <enum name="actionNext" value="5" /> |
| 297 | <enum name="actionDone" value="6" /> |
| 298 | <enum name="actionPrevious" value="7" /> |
Tadashi G. Takaoka | 6624fd8 | 2010-11-19 16:04:52 -0800 | [diff] [blame] | 299 | </attr> |
Tadashi G. Takaoka | 5859205 | 2011-06-03 02:18:57 +0900 | [diff] [blame] | 300 | <attr name="localeCode" format="string" /> |
Tadashi G. Takaoka | ea6c2e3 | 2011-02-18 15:33:44 +0900 | [diff] [blame] | 301 | <attr name="languageCode" format="string" /> |
Tadashi G. Takaoka | 912ade3 | 2011-02-23 17:09:24 +0900 | [diff] [blame] | 302 | <attr name="countryCode" format="string" /> |
Tadashi G. Takaoka | b046511 | 2010-11-11 15:28:14 -0800 | [diff] [blame] | 303 | </declare-styleable> |
Tadashi G. Takaoka | 0b60f83 | 2010-11-19 14:57:24 -0800 | [diff] [blame] | 304 | |
Tadashi G. Takaoka | 5a309f5 | 2010-12-02 18:46:21 +0900 | [diff] [blame] | 305 | <declare-styleable name="Keyboard_KeyStyle"> |
Tadashi G. Takaoka | 0b60f83 | 2010-11-19 14:57:24 -0800 | [diff] [blame] | 306 | <attr name="styleName" format="string" /> |
| 307 | <attr name="parentStyle" format="string" /> |
| 308 | </declare-styleable> |
Tadashi G. Takaoka | a619673 | 2011-06-16 17:20:29 +0900 | [diff] [blame] | 309 | |
| 310 | <declare-styleable name="LatinKeyboard"> |
Tadashi G. Takaoka | 9116bf1 | 2011-06-21 20:10:51 +0900 | [diff] [blame] | 311 | <attr name="autoCorrectionSpacebarLedEnabled" format="boolean" /> |
Tadashi G. Takaoka | a619673 | 2011-06-16 17:20:29 +0900 | [diff] [blame] | 312 | <attr name="autoCorrectionSpacebarLedIcon" format="reference" /> |
| 313 | <attr name="disabledShortcutIcon" format="reference" /> |
| 314 | <attr name="spacebarTextColor" format="color" /> |
| 315 | <attr name="spacebarTextShadowColor" format="color" /> |
Tadashi G. Takaoka | a619673 | 2011-06-16 17:20:29 +0900 | [diff] [blame] | 316 | </declare-styleable> |
satok | 979f869 | 2010-08-20 14:35:02 +0900 | [diff] [blame] | 317 | </resources> |