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