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 | 13a7419 | 2011-05-24 21:08:20 +0900 | [diff] [blame] | 21 | <!-- KeyboardView style --> |
| 22 | <attr name="keyboardViewStyle" format="reference" /> |
| 23 | <attr name="keyPreviewStyle" format="reference" /> |
| 24 | <!-- PopupMiniKeyboardView style --> |
| 25 | <attr name="popupMiniKeyboardViewStyle" format="reference" /> |
| 26 | <attr name="popupMiniKeyboardPanelStyle" format="reference" /> |
| 27 | <!-- Suggestions strip style --> |
| 28 | <attr name="suggestionsStripBackgroundStyle" format="reference" /> |
| 29 | <attr name="suggestionBackgroundStyle" format="reference" /> |
| 30 | <attr name="suggestionPreviewBackgroundStyle" format="reference" /> |
Tadashi G. Takaoka | 08a6f2a | 2011-06-15 11:49:57 +0900 | [diff] [blame^] | 31 | <attr name="candidateViewStyle" format="reference" /> |
Tadashi G. Takaoka | 13a7419 | 2011-05-24 21:08:20 +0900 | [diff] [blame] | 32 | </declare-styleable> |
satok | 979f869 | 2010-08-20 14:35:02 +0900 | [diff] [blame] | 33 | |
Tadashi G. Takaoka | 5a309f5 | 2010-12-02 18:46:21 +0900 | [diff] [blame] | 34 | <declare-styleable name="KeyboardView"> |
satok | 979f869 | 2010-08-20 14:35:02 +0900 | [diff] [blame] | 35 | <!-- Image for the key. This image needs to be a StateListDrawable, with the following |
| 36 | possible states: normal, pressed, checkable, checkable+pressed, checkable+checked, |
| 37 | checkable+checked+pressed. --> |
| 38 | <attr name="keyBackground" format="reference" /> |
| 39 | |
Tadashi G. Takaoka | d157834 | 2011-05-12 23:49:19 +0900 | [diff] [blame] | 40 | <!-- Size of the text for one letter character keys, in the proportion of key height. |
| 41 | --> |
| 42 | <attr name="keyLetterRatio" format="float" /> |
satok | 979f869 | 2010-08-20 14:35:02 +0900 | [diff] [blame] | 43 | |
Tadashi G. Takaoka | d157834 | 2011-05-12 23:49:19 +0900 | [diff] [blame] | 44 | <!-- Size of the text for custom keys with some text and no icon, in the proportion of key |
| 45 | height. --> |
| 46 | <attr name="labelTextRatio" format="float" /> |
satok | 979f869 | 2010-08-20 14:35:02 +0900 | [diff] [blame] | 47 | |
| 48 | <!-- Color to use for the label in a key. --> |
| 49 | <attr name="keyTextColor" format="color" /> |
| 50 | |
Tadashi G. Takaoka | 5d04042 | 2010-12-01 12:22:19 +0900 | [diff] [blame] | 51 | <!-- Color to use for the label in a key when in disabled state. --> |
| 52 | <attr name="keyTextColorDisabled" format="color" /> |
| 53 | |
satok | 979f869 | 2010-08-20 14:35:02 +0900 | [diff] [blame] | 54 | <!-- Layout resource for key press feedback.--> |
| 55 | <attr name="keyPreviewLayout" format="reference" /> |
| 56 | |
| 57 | <!-- Vertical offset of the key press feedback from the key. --> |
| 58 | <attr name="keyPreviewOffset" format="dimension" /> |
| 59 | |
| 60 | <!-- Height of the key press feedback popup. --> |
| 61 | <attr name="keyPreviewHeight" format="dimension" /> |
| 62 | |
Tadashi G. Takaoka | eb68036 | 2010-09-13 19:26:23 +0900 | [diff] [blame] | 63 | <!-- Hysteresis distance for key debouncing --> |
| 64 | <attr name="keyHysteresisDistance" format="dimension" /> |
| 65 | |
satok | 979f869 | 2010-08-20 14:35:02 +0900 | [diff] [blame] | 66 | <!-- Amount to offset the touch Y coordinate by, for bias correction. --> |
| 67 | <attr name="verticalCorrection" format="dimension" /> |
| 68 | |
satok | 979f869 | 2010-08-20 14:35:02 +0900 | [diff] [blame] | 69 | <!-- Layout resource for popup keyboards. --> |
| 70 | <attr name="popupLayout" format="reference" /> |
| 71 | |
| 72 | <attr name="shadowColor" format="color" /> |
| 73 | <attr name="shadowRadius" format="float" /> |
| 74 | <attr name="backgroundDimAmount" format="float" /> |
| 75 | |
Tadashi G. Takaoka | 5859205 | 2011-06-03 02:18:57 +0900 | [diff] [blame] | 76 | <attr name="keyLetterStyle" format="enum"> |
Tadashi G. Takaoka | 5d04042 | 2010-12-01 12:22:19 +0900 | [diff] [blame] | 77 | <!-- This should be aligned with Typeface.NORMAL etc. --> |
Tadashi G. Takaoka | 59c9930 | 2010-11-21 16:40:38 -0800 | [diff] [blame] | 78 | <enum name="normal" value="0" /> |
| 79 | <enum name="bold" value="1" /> |
| 80 | <enum name="italic" value="2" /> |
Tadashi G. Takaoka | 5d04042 | 2010-12-01 12:22:19 +0900 | [diff] [blame] | 81 | <enum name="boldItalic" value="3" /> |
satok | 979f869 | 2010-08-20 14:35:02 +0900 | [diff] [blame] | 82 | </attr> |
| 83 | |
Tadashi G. Takaoka | 5859205 | 2011-06-03 02:18:57 +0900 | [diff] [blame] | 84 | <attr name="colorScheme" format="enum"> |
Tadashi G. Takaoka | 5a309f5 | 2010-12-02 18:46:21 +0900 | [diff] [blame] | 85 | <!-- This should be aligned with KeyboardView.COLOR_SCHEME_* --> |
Tadashi G. Takaoka | 59c9930 | 2010-11-21 16:40:38 -0800 | [diff] [blame] | 86 | <enum name="white" value="0" /> |
| 87 | <enum name="black" value="1" /> |
satok | 979f869 | 2010-08-20 14:35:02 +0900 | [diff] [blame] | 88 | </attr> |
| 89 | |
| 90 | </declare-styleable> |
| 91 | |
Tadashi G. Takaoka | 08a6f2a | 2011-06-15 11:49:57 +0900 | [diff] [blame^] | 92 | <declare-styleable name="CandidateView"> |
| 93 | <attr name="autoCorrectHighlight" format="integer"> |
| 94 | <flag name="autoCorrectBold" value="0x01" /> |
| 95 | <flag name="autoCorrectUnderline" value="0x02" /> |
| 96 | <flag name="autoCorrectInvert" value="0x04" /> |
| 97 | <flag name="autoCorrectSpacebarLed" value="0x08" /> |
| 98 | </attr> |
| 99 | <attr name="colorTypedWord" format="color" /> |
| 100 | <attr name="colorAutoCorrect" format="color" /> |
| 101 | <attr name="colorSuggested" format="color" /> |
| 102 | <attr name="iconExpandPane" format="reference" /> |
| 103 | <attr name="iconClosePane" format="reference" /> |
| 104 | </declare-styleable> |
| 105 | |
Tadashi G. Takaoka | 5a309f5 | 2010-12-02 18:46:21 +0900 | [diff] [blame] | 106 | <declare-styleable name="Keyboard"> |
Tadashi G. Takaoka | 9f01ed5 | 2010-12-08 14:36:41 +0900 | [diff] [blame] | 107 | <!-- Default keyboard height --> |
| 108 | <attr name="keyboardHeight" format="dimension" /> |
| 109 | <!-- Maximum keyboard height, in pixels or percentage of display height --> |
| 110 | <attr name="maxKeyboardHeight" format="dimension|fraction" /> |
Tadashi G. Takaoka | ff483e8 | 2011-05-12 14:49:18 +0900 | [diff] [blame] | 111 | <!-- Minimum keyboard height represented in pixels, percentage of display height if fraction |
| 112 | is positive, or percentage of display width if fraction is negative. --> |
| 113 | <attr name="minKeyboardHeight" format="dimension|fraction" /> |
Tadashi G. Takaoka | 327763e | 2011-05-30 20:05:50 +0900 | [diff] [blame] | 114 | <!-- Default width of a key, in pixels or percentage of display width. |
| 115 | If the value is zero, the actual key width will be determined to fill out the area up |
| 116 | to the right edge of the keyboard. |
| 117 | If the value is negative, the actual key width will be determined to fill out the |
| 118 | area between the nearest key on the left hand side and the right edge of the keyboard. |
| 119 | --> |
| 120 | <attr name="keyWidth" format="dimension|fraction|enum"> |
| 121 | <enum name="fillRight" value="0" /> |
| 122 | <enum name="fillBoth" value="-1" /> |
| 123 | </attr> |
Tadashi G. Takaoka | 9f01ed5 | 2010-12-08 14:36:41 +0900 | [diff] [blame] | 124 | <!-- Default height of a row (key height + vertical gap), in pixels or percentage of |
| 125 | keyboard height. --> |
| 126 | <attr name="rowHeight" format="dimension|fraction" /> |
satok | 4fc510a | 2010-10-01 19:40:44 +0900 | [diff] [blame] | 127 | <!-- Default horizontal gap between keys. --> |
| 128 | <attr name="horizontalGap" format="dimension|fraction" /> |
| 129 | <!-- Default vertical gap between rows of keys. --> |
| 130 | <attr name="verticalGap" format="dimension|fraction" /> |
Tadashi G. Takaoka | 9b6d1d5 | 2010-12-14 15:31:47 +0900 | [diff] [blame] | 131 | <!-- Popup keyboard layout template --> |
| 132 | <attr name="popupKeyboardTemplate" format="reference" /> |
Tadashi G. Takaoka | b7758d6 | 2011-06-15 13:38:58 +0900 | [diff] [blame] | 133 | <!-- Popup hint icon --> |
| 134 | <attr name="popupHintIcon" format="reference" /> |
satok | 15a0ba6 | 2011-04-21 15:35:07 +0900 | [diff] [blame] | 135 | <!-- Locale of the keyboard layout --> |
| 136 | <attr name="keyboardLocale" format="string" /> |
satok | 4fc510a | 2010-10-01 19:40:44 +0900 | [diff] [blame] | 137 | </declare-styleable> |
| 138 | |
Tadashi G. Takaoka | 5a309f5 | 2010-12-02 18:46:21 +0900 | [diff] [blame] | 139 | <declare-styleable name="Keyboard_Key"> |
Tadashi G. Takaoka | c4f7166 | 2010-12-20 20:30:26 +0900 | [diff] [blame] | 140 | <!-- The unicode value that this key outputs. --> |
| 141 | <attr name="code" format="integer" /> |
satok | 4fc510a | 2010-10-01 19:40:44 +0900 | [diff] [blame] | 142 | <!-- The characters to display in the popup keyboard. --> |
| 143 | <attr name="popupCharacters" format="string" /> |
Tadashi G. Takaoka | 9b6d1d5 | 2010-12-14 15:31:47 +0900 | [diff] [blame] | 144 | <!-- Maximum column of popup keyboard --> |
| 145 | <attr name="maxPopupKeyboardColumn" format="integer" /> |
satok | 4fc510a | 2010-10-01 19:40:44 +0900 | [diff] [blame] | 146 | <!-- Key edge flags. --> |
Tadashi G. Takaoka | 5859205 | 2011-06-03 02:18:57 +0900 | [diff] [blame] | 147 | <attr name="keyEdgeFlags" format="integer"> |
satok | 4fc510a | 2010-10-01 19:40:44 +0900 | [diff] [blame] | 148 | <!-- Key is anchored to the left of the keyboard. --> |
| 149 | <flag name="left" value="1" /> |
| 150 | <!-- Key is anchored to the right of the keyboard. --> |
| 151 | <flag name="right" value="2" /> |
| 152 | </attr> |
Tadashi G. Takaoka | e7c0e73 | 2011-04-07 16:12:00 +0900 | [diff] [blame] | 153 | <!-- Whether this is a functional key which has different key top than normal key. --> |
| 154 | <attr name="isFunctional" format="boolean" /> |
satok | 4fc510a | 2010-10-01 19:40:44 +0900 | [diff] [blame] | 155 | <!-- Whether this is a toggle key. --> |
| 156 | <attr name="isSticky" format="boolean" /> |
| 157 | <!-- Whether long-pressing on this key will make it repeat. --> |
| 158 | <attr name="isRepeatable" format="boolean" /> |
| 159 | <!-- The icon to show in the popup preview. --> |
| 160 | <attr name="iconPreview" format="reference" /> |
| 161 | <!-- The string of characters to output when this key is pressed. --> |
| 162 | <attr name="keyOutputText" format="string" /> |
| 163 | <!-- The label to display on the key. --> |
| 164 | <attr name="keyLabel" format="string" /> |
Tadashi G. Takaoka | cd39f2a | 2010-11-20 08:03:24 -0800 | [diff] [blame] | 165 | <!-- The key label option --> |
Tadashi G. Takaoka | 5859205 | 2011-06-03 02:18:57 +0900 | [diff] [blame] | 166 | <attr name="keyLabelOption" format="integer"> |
Tadashi G. Takaoka | 5a309f5 | 2010-12-02 18:46:21 +0900 | [diff] [blame] | 167 | <!-- This should be aligned with KeyboardView.KEY_LABEL_OPTION_* --> |
Tadashi G. Takaoka | b7758d6 | 2011-06-15 13:38:58 +0900 | [diff] [blame] | 168 | <flag name="alignLeft" value="0x01" /> |
| 169 | <flag name="alignRight" value="0x02" /> |
| 170 | <flag name="alignBottom" value="0x08" /> |
| 171 | <flag name="fontNormal" value="0x10" /> |
| 172 | <flag name="popupHint" value="0x20" /> |
Tadashi G. Takaoka | cd39f2a | 2010-11-20 08:03:24 -0800 | [diff] [blame] | 173 | </attr> |
Tadashi G. Takaoka | 10227a7 | 2010-11-13 00:16:34 -0800 | [diff] [blame] | 174 | <!-- The unicode that this key generates in manual temporary upper case mode. --> |
| 175 | <attr name="manualTemporaryUpperCaseCode" format="integer" /> |
satok | 4fc510a | 2010-10-01 19:40:44 +0900 | [diff] [blame] | 176 | <!-- The icon to display on the key instead of the label. --> |
| 177 | <attr name="keyIcon" format="reference" /> |
Tadashi G. Takaoka | 66e306d | 2010-10-02 15:17:27 +0900 | [diff] [blame] | 178 | <!-- The hint icon to display on the key in conjunction with the label --> |
| 179 | <attr name="keyHintIcon" format="reference" /> |
Tadashi G. Takaoka | 10227a7 | 2010-11-13 00:16:34 -0800 | [diff] [blame] | 180 | <!-- The hint icon to display on the key when keyboard is in manual temporary upper case |
| 181 | mode. --> |
| 182 | <attr name="manualTemporaryUpperCaseHintIcon" format="reference" /> |
Tadashi G. Takaoka | 0b60f83 | 2010-11-19 14:57:24 -0800 | [diff] [blame] | 183 | <!-- The key style to specify a set of key attributes defined by <key_style/> --> |
| 184 | <attr name="keyStyle" format="string" /> |
Tadashi G. Takaoka | 7f0befe | 2010-11-23 23:59:56 -0800 | [diff] [blame] | 185 | <!-- Shift key icon for shifted state --> |
| 186 | <attr name="shiftedIcon" format="reference" /> |
Tadashi G. Takaoka | aa721c4 | 2011-02-18 11:28:17 +0900 | [diff] [blame] | 187 | <!-- The key is enabled and responds on press. --> |
| 188 | <attr name="enabled" format="boolean" /> |
Tadashi G. Takaoka | 56abeab | 2011-04-11 11:30:15 +0900 | [diff] [blame] | 189 | <!-- Visual insets --> |
| 190 | <attr name="visualInsetsLeft" format="dimension|fraction" /> |
| 191 | <attr name="visualInsetsRight" format="dimension|fraction" /> |
Tadashi G. Takaoka | 327763e | 2011-05-30 20:05:50 +0900 | [diff] [blame] | 192 | <!-- The X-coordinate of upper right corner of this key including horizontal gap. |
| 193 | If the value is negative, the origin is the right edge of the keyboard. --> |
| 194 | <attr name="keyXPos" format="dimension|fraction" /> |
satok | 4fc510a | 2010-10-01 19:40:44 +0900 | [diff] [blame] | 195 | </declare-styleable> |
| 196 | |
Tadashi G. Takaoka | 5a309f5 | 2010-12-02 18:46:21 +0900 | [diff] [blame] | 197 | <declare-styleable name="Keyboard_Row"> |
satok | 4fc510a | 2010-10-01 19:40:44 +0900 | [diff] [blame] | 198 | <!-- Row edge flags. --> |
Tadashi G. Takaoka | 5859205 | 2011-06-03 02:18:57 +0900 | [diff] [blame] | 199 | <attr name="rowEdgeFlags" format="integer"> |
satok | 4fc510a | 2010-10-01 19:40:44 +0900 | [diff] [blame] | 200 | <!-- Row is anchored to the top of the keyboard. --> |
| 201 | <flag name="top" value="4" /> |
| 202 | <!-- Row is anchored to the bottom of the keyboard. --> |
| 203 | <flag name="bottom" value="8" /> |
| 204 | </attr> |
satok | 4fc510a | 2010-10-01 19:40:44 +0900 | [diff] [blame] | 205 | </declare-styleable> |
Tadashi G. Takaoka | d663555 | 2010-10-07 17:13:30 +0900 | [diff] [blame] | 206 | |
Tadashi G. Takaoka | 5a309f5 | 2010-12-02 18:46:21 +0900 | [diff] [blame] | 207 | <declare-styleable name="Keyboard_Include"> |
Tadashi G. Takaoka | d663555 | 2010-10-07 17:13:30 +0900 | [diff] [blame] | 208 | <attr name="keyboardLayout" format="reference" /> |
| 209 | </declare-styleable> |
Tadashi G. Takaoka | b046511 | 2010-11-11 15:28:14 -0800 | [diff] [blame] | 210 | |
Tadashi G. Takaoka | 5a309f5 | 2010-12-02 18:46:21 +0900 | [diff] [blame] | 211 | <declare-styleable name="Keyboard_Case"> |
| 212 | <!-- This should be aligned with KeyboardId.MODE_* --> |
Tadashi G. Takaoka | 5859205 | 2011-06-03 02:18:57 +0900 | [diff] [blame] | 213 | <attr name="mode" format="enum|string"> |
Tadashi G. Takaoka | cd39f2a | 2010-11-20 08:03:24 -0800 | [diff] [blame] | 214 | <enum name="text" value="0" /> |
| 215 | <enum name="url" value="1" /> |
| 216 | <enum name="email" value="2" /> |
| 217 | <enum name="im" value="3" /> |
Tadashi G. Takaoka | 9e2d810 | 2011-05-27 21:41:13 +0900 | [diff] [blame] | 218 | <enum name="phone" value="4" /> |
| 219 | <enum name="number" value="5" /> |
Tadashi G. Takaoka | 1d8196c | 2010-11-19 14:57:24 -0800 | [diff] [blame] | 220 | </attr> |
Tadashi G. Takaoka | 9e2d810 | 2011-05-27 21:41:13 +0900 | [diff] [blame] | 221 | <attr name="webInput" format="boolean" /> |
Tadashi G. Takaoka | 4b13b4f | 2011-02-20 12:54:14 +0900 | [diff] [blame] | 222 | <attr name="passwordInput" format="boolean" /> |
Tadashi G. Takaoka | b7758d6 | 2011-06-15 13:38:58 +0900 | [diff] [blame] | 223 | <attr name="hasSettingsKey" format="boolean" /> |
| 224 | <attr name="voiceKeyEnabled" format="boolean" /> |
| 225 | <attr name="hasVoiceKey" format="boolean" /> |
Tadashi G. Takaoka | 5859205 | 2011-06-03 02:18:57 +0900 | [diff] [blame] | 226 | <attr name="imeAction" format="enum"> |
Tadashi G. Takaoka | 6624fd8 | 2010-11-19 16:04:52 -0800 | [diff] [blame] | 227 | <!-- This should be aligned with EditorInfo.IME_ACTION_* --> |
Tadashi G. Takaoka | 5859205 | 2011-06-03 02:18:57 +0900 | [diff] [blame] | 228 | <enum name="actionUnspecified" value="0" /> |
| 229 | <enum name="actionNone" value="1" /> |
| 230 | <enum name="actionGo" value="2" /> |
| 231 | <enum name="actionSearch" value="3" /> |
| 232 | <enum name="actionSend" value="4" /> |
| 233 | <enum name="actionNext" value="5" /> |
| 234 | <enum name="actionDone" value="6" /> |
| 235 | <enum name="actionPrevious" value="7" /> |
Tadashi G. Takaoka | 6624fd8 | 2010-11-19 16:04:52 -0800 | [diff] [blame] | 236 | </attr> |
Tadashi G. Takaoka | 5859205 | 2011-06-03 02:18:57 +0900 | [diff] [blame] | 237 | <attr name="localeCode" format="string" /> |
Tadashi G. Takaoka | ea6c2e3 | 2011-02-18 15:33:44 +0900 | [diff] [blame] | 238 | <attr name="languageCode" format="string" /> |
Tadashi G. Takaoka | 912ade3 | 2011-02-23 17:09:24 +0900 | [diff] [blame] | 239 | <attr name="countryCode" format="string" /> |
Tadashi G. Takaoka | b046511 | 2010-11-11 15:28:14 -0800 | [diff] [blame] | 240 | </declare-styleable> |
Tadashi G. Takaoka | 0b60f83 | 2010-11-19 14:57:24 -0800 | [diff] [blame] | 241 | |
Tadashi G. Takaoka | 5a309f5 | 2010-12-02 18:46:21 +0900 | [diff] [blame] | 242 | <declare-styleable name="Keyboard_KeyStyle"> |
Tadashi G. Takaoka | 0b60f83 | 2010-11-19 14:57:24 -0800 | [diff] [blame] | 243 | <attr name="styleName" format="string" /> |
| 244 | <attr name="parentStyle" format="string" /> |
| 245 | </declare-styleable> |
satok | 979f869 | 2010-08-20 14:35:02 +0900 | [diff] [blame] | 246 | </resources> |