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> |
| 18 | |
Tadashi G. Takaoka | 5a309f5 | 2010-12-02 18:46:21 +0900 | [diff] [blame] | 19 | <declare-styleable name="KeyboardView"> |
satok | 979f869 | 2010-08-20 14:35:02 +0900 | [diff] [blame] | 20 | <!-- Default KeyboardView style. --> |
| 21 | <attr name="keyboardViewStyle" format="reference" /> |
| 22 | |
| 23 | <!-- Image for the key. This image needs to be a StateListDrawable, with the following |
| 24 | possible states: normal, pressed, checkable, checkable+pressed, checkable+checked, |
| 25 | checkable+checked+pressed. --> |
| 26 | <attr name="keyBackground" format="reference" /> |
| 27 | |
Tadashi G. Takaoka | 5d04042 | 2010-12-01 12:22:19 +0900 | [diff] [blame] | 28 | <!-- Size of the text for one letter character keys. --> |
| 29 | <attr name="keyLetterSize" format="dimension" /> |
satok | 979f869 | 2010-08-20 14:35:02 +0900 | [diff] [blame] | 30 | |
| 31 | <!-- Size of the text for custom keys with some text and no icon. --> |
| 32 | <attr name="labelTextSize" format="dimension" /> |
| 33 | |
| 34 | <!-- Color to use for the label in a key. --> |
| 35 | <attr name="keyTextColor" format="color" /> |
| 36 | |
Tadashi G. Takaoka | 5d04042 | 2010-12-01 12:22:19 +0900 | [diff] [blame] | 37 | <!-- Color to use for the label in a key when in disabled state. --> |
| 38 | <attr name="keyTextColorDisabled" format="color" /> |
| 39 | |
satok | 979f869 | 2010-08-20 14:35:02 +0900 | [diff] [blame] | 40 | <!-- Layout resource for key press feedback.--> |
| 41 | <attr name="keyPreviewLayout" format="reference" /> |
| 42 | |
| 43 | <!-- Vertical offset of the key press feedback from the key. --> |
| 44 | <attr name="keyPreviewOffset" format="dimension" /> |
| 45 | |
| 46 | <!-- Height of the key press feedback popup. --> |
| 47 | <attr name="keyPreviewHeight" format="dimension" /> |
| 48 | |
Tadashi G. Takaoka | eb68036 | 2010-09-13 19:26:23 +0900 | [diff] [blame] | 49 | <!-- Hysteresis distance for key debouncing --> |
| 50 | <attr name="keyHysteresisDistance" format="dimension" /> |
| 51 | |
satok | 979f869 | 2010-08-20 14:35:02 +0900 | [diff] [blame] | 52 | <!-- Amount to offset the touch Y coordinate by, for bias correction. --> |
| 53 | <attr name="verticalCorrection" format="dimension" /> |
| 54 | |
satok | 979f869 | 2010-08-20 14:35:02 +0900 | [diff] [blame] | 55 | <!-- Layout resource for popup keyboards. --> |
| 56 | <attr name="popupLayout" format="reference" /> |
| 57 | |
| 58 | <attr name="shadowColor" format="color" /> |
| 59 | <attr name="shadowRadius" format="float" /> |
| 60 | <attr name="backgroundDimAmount" format="float" /> |
| 61 | |
Tadashi G. Takaoka | 5d04042 | 2010-12-01 12:22:19 +0900 | [diff] [blame] | 62 | <attr name="keyLetterStyle"> |
| 63 | <!-- This should be aligned with Typeface.NORMAL etc. --> |
Tadashi G. Takaoka | 59c9930 | 2010-11-21 16:40:38 -0800 | [diff] [blame] | 64 | <enum name="normal" value="0" /> |
| 65 | <enum name="bold" value="1" /> |
| 66 | <enum name="italic" value="2" /> |
Tadashi G. Takaoka | 5d04042 | 2010-12-01 12:22:19 +0900 | [diff] [blame] | 67 | <enum name="boldItalic" value="3" /> |
satok | 979f869 | 2010-08-20 14:35:02 +0900 | [diff] [blame] | 68 | </attr> |
| 69 | |
Tadashi G. Takaoka | 59c9930 | 2010-11-21 16:40:38 -0800 | [diff] [blame] | 70 | <attr name="colorScheme"> |
Tadashi G. Takaoka | 5a309f5 | 2010-12-02 18:46:21 +0900 | [diff] [blame] | 71 | <!-- This should be aligned with KeyboardView.COLOR_SCHEME_* --> |
Tadashi G. Takaoka | 59c9930 | 2010-11-21 16:40:38 -0800 | [diff] [blame] | 72 | <enum name="white" value="0" /> |
| 73 | <enum name="black" value="1" /> |
satok | 979f869 | 2010-08-20 14:35:02 +0900 | [diff] [blame] | 74 | </attr> |
| 75 | |
| 76 | </declare-styleable> |
| 77 | |
Tadashi G. Takaoka | 5a309f5 | 2010-12-02 18:46:21 +0900 | [diff] [blame] | 78 | <declare-styleable name="Keyboard"> |
Tadashi G. Takaoka | 9f01ed5 | 2010-12-08 14:36:41 +0900 | [diff] [blame] | 79 | <!-- Default keyboard height --> |
| 80 | <attr name="keyboardHeight" format="dimension" /> |
| 81 | <!-- Maximum keyboard height, in pixels or percentage of display height --> |
| 82 | <attr name="maxKeyboardHeight" format="dimension|fraction" /> |
satok | 4fc510a | 2010-10-01 19:40:44 +0900 | [diff] [blame] | 83 | <!-- Default width of a key, in pixels or percentage of display width. --> |
| 84 | <attr name="keyWidth" format="dimension|fraction" /> |
Tadashi G. Takaoka | 9f01ed5 | 2010-12-08 14:36:41 +0900 | [diff] [blame] | 85 | <!-- Default height of a row (key height + vertical gap), in pixels or percentage of |
| 86 | keyboard height. --> |
| 87 | <attr name="rowHeight" format="dimension|fraction" /> |
satok | 4fc510a | 2010-10-01 19:40:44 +0900 | [diff] [blame] | 88 | <!-- Default horizontal gap between keys. --> |
| 89 | <attr name="horizontalGap" format="dimension|fraction" /> |
| 90 | <!-- Default vertical gap between rows of keys. --> |
| 91 | <attr name="verticalGap" format="dimension|fraction" /> |
Tadashi G. Takaoka | 9b6d1d5 | 2010-12-14 15:31:47 +0900 | [diff] [blame] | 92 | <!-- Popup keyboard layout template --> |
| 93 | <attr name="popupKeyboardTemplate" format="reference" /> |
satok | 4fc510a | 2010-10-01 19:40:44 +0900 | [diff] [blame] | 94 | </declare-styleable> |
| 95 | |
Tadashi G. Takaoka | 5a309f5 | 2010-12-02 18:46:21 +0900 | [diff] [blame] | 96 | <declare-styleable name="Keyboard_Key"> |
Tadashi G. Takaoka | c4f7166 | 2010-12-20 20:30:26 +0900 | [diff] [blame] | 97 | <!-- The unicode value that this key outputs. --> |
| 98 | <attr name="code" format="integer" /> |
satok | 4fc510a | 2010-10-01 19:40:44 +0900 | [diff] [blame] | 99 | <!-- The characters to display in the popup keyboard. --> |
| 100 | <attr name="popupCharacters" format="string" /> |
Tadashi G. Takaoka | 9b6d1d5 | 2010-12-14 15:31:47 +0900 | [diff] [blame] | 101 | <!-- Maximum column of popup keyboard --> |
| 102 | <attr name="maxPopupKeyboardColumn" format="integer" /> |
satok | 4fc510a | 2010-10-01 19:40:44 +0900 | [diff] [blame] | 103 | <!-- Key edge flags. --> |
| 104 | <attr name="keyEdgeFlags"> |
| 105 | <!-- Key is anchored to the left of the keyboard. --> |
| 106 | <flag name="left" value="1" /> |
| 107 | <!-- Key is anchored to the right of the keyboard. --> |
| 108 | <flag name="right" value="2" /> |
| 109 | </attr> |
Tadashi G. Takaoka | e7c0e73 | 2011-04-07 16:12:00 +0900 | [diff] [blame^] | 110 | <!-- Whether this is a functional key which has different key top than normal key. --> |
| 111 | <attr name="isFunctional" format="boolean" /> |
satok | 4fc510a | 2010-10-01 19:40:44 +0900 | [diff] [blame] | 112 | <!-- Whether this is a toggle key. --> |
| 113 | <attr name="isSticky" format="boolean" /> |
| 114 | <!-- Whether long-pressing on this key will make it repeat. --> |
| 115 | <attr name="isRepeatable" format="boolean" /> |
| 116 | <!-- The icon to show in the popup preview. --> |
| 117 | <attr name="iconPreview" format="reference" /> |
| 118 | <!-- The string of characters to output when this key is pressed. --> |
| 119 | <attr name="keyOutputText" format="string" /> |
| 120 | <!-- The label to display on the key. --> |
| 121 | <attr name="keyLabel" format="string" /> |
Tadashi G. Takaoka | cd39f2a | 2010-11-20 08:03:24 -0800 | [diff] [blame] | 122 | <!-- The key label option --> |
| 123 | <attr name="keyLabelOption"> |
Tadashi G. Takaoka | 5a309f5 | 2010-12-02 18:46:21 +0900 | [diff] [blame] | 124 | <!-- This should be aligned with KeyboardView.KEY_LABEL_OPTION_* --> |
Tadashi G. Takaoka | cd39f2a | 2010-11-20 08:03:24 -0800 | [diff] [blame] | 125 | <flag name="alignLeft" value="1" /> |
| 126 | <flag name="alignRight" value="2" /> |
| 127 | <flag name="alignBottom" value="8" /> |
Tadashi G. Takaoka | fab243a | 2010-11-22 22:51:59 -0800 | [diff] [blame] | 128 | <flag name="fontNormal" value="16" /> |
Tadashi G. Takaoka | cd39f2a | 2010-11-20 08:03:24 -0800 | [diff] [blame] | 129 | </attr> |
Tadashi G. Takaoka | 10227a7 | 2010-11-13 00:16:34 -0800 | [diff] [blame] | 130 | <!-- The unicode that this key generates in manual temporary upper case mode. --> |
| 131 | <attr name="manualTemporaryUpperCaseCode" format="integer" /> |
satok | 4fc510a | 2010-10-01 19:40:44 +0900 | [diff] [blame] | 132 | <!-- The icon to display on the key instead of the label. --> |
| 133 | <attr name="keyIcon" format="reference" /> |
Tadashi G. Takaoka | 66e306d | 2010-10-02 15:17:27 +0900 | [diff] [blame] | 134 | <!-- The hint icon to display on the key in conjunction with the label --> |
| 135 | <attr name="keyHintIcon" format="reference" /> |
Tadashi G. Takaoka | 10227a7 | 2010-11-13 00:16:34 -0800 | [diff] [blame] | 136 | <!-- The hint icon to display on the key when keyboard is in manual temporary upper case |
| 137 | mode. --> |
| 138 | <attr name="manualTemporaryUpperCaseHintIcon" format="reference" /> |
Tadashi G. Takaoka | 0b60f83 | 2010-11-19 14:57:24 -0800 | [diff] [blame] | 139 | <!-- The key style to specify a set of key attributes defined by <key_style/> --> |
| 140 | <attr name="keyStyle" format="string" /> |
Tadashi G. Takaoka | 7f0befe | 2010-11-23 23:59:56 -0800 | [diff] [blame] | 141 | <!-- Shift key icon for shifted state --> |
| 142 | <attr name="shiftedIcon" format="reference" /> |
Tadashi G. Takaoka | aa721c4 | 2011-02-18 11:28:17 +0900 | [diff] [blame] | 143 | <!-- The key is enabled and responds on press. --> |
| 144 | <attr name="enabled" format="boolean" /> |
satok | 4fc510a | 2010-10-01 19:40:44 +0900 | [diff] [blame] | 145 | </declare-styleable> |
| 146 | |
Tadashi G. Takaoka | 5a309f5 | 2010-12-02 18:46:21 +0900 | [diff] [blame] | 147 | <declare-styleable name="Keyboard_Row"> |
satok | 4fc510a | 2010-10-01 19:40:44 +0900 | [diff] [blame] | 148 | <!-- Row edge flags. --> |
| 149 | <attr name="rowEdgeFlags"> |
| 150 | <!-- Row is anchored to the top of the keyboard. --> |
| 151 | <flag name="top" value="4" /> |
| 152 | <!-- Row is anchored to the bottom of the keyboard. --> |
| 153 | <flag name="bottom" value="8" /> |
| 154 | </attr> |
satok | 4fc510a | 2010-10-01 19:40:44 +0900 | [diff] [blame] | 155 | </declare-styleable> |
Tadashi G. Takaoka | d663555 | 2010-10-07 17:13:30 +0900 | [diff] [blame] | 156 | |
Tadashi G. Takaoka | 5a309f5 | 2010-12-02 18:46:21 +0900 | [diff] [blame] | 157 | <declare-styleable name="Keyboard_Include"> |
Tadashi G. Takaoka | d663555 | 2010-10-07 17:13:30 +0900 | [diff] [blame] | 158 | <attr name="keyboardLayout" format="reference" /> |
| 159 | </declare-styleable> |
Tadashi G. Takaoka | b046511 | 2010-11-11 15:28:14 -0800 | [diff] [blame] | 160 | |
Tadashi G. Takaoka | 5a309f5 | 2010-12-02 18:46:21 +0900 | [diff] [blame] | 161 | <declare-styleable name="Keyboard_Case"> |
| 162 | <!-- This should be aligned with KeyboardId.MODE_* --> |
Tadashi G. Takaoka | 1d8196c | 2010-11-19 14:57:24 -0800 | [diff] [blame] | 163 | <attr name="mode"> |
Tadashi G. Takaoka | cd39f2a | 2010-11-20 08:03:24 -0800 | [diff] [blame] | 164 | <enum name="text" value="0" /> |
| 165 | <enum name="url" value="1" /> |
| 166 | <enum name="email" value="2" /> |
| 167 | <enum name="im" value="3" /> |
| 168 | <enum name="web" value="4" /> |
| 169 | <enum name="phone" value="5" /> |
Tadashi G. Takaoka | 1d8196c | 2010-11-19 14:57:24 -0800 | [diff] [blame] | 170 | </attr> |
Tadashi G. Takaoka | 4b13b4f | 2011-02-20 12:54:14 +0900 | [diff] [blame] | 171 | <attr name="passwordInput" format="boolean" /> |
Tadashi G. Takaoka | 04448c2 | 2010-11-19 18:45:30 -0800 | [diff] [blame] | 172 | <attr name="hasSettingsKey" format="string" /> |
| 173 | <attr name="voiceKeyEnabled" format="string" /> |
| 174 | <attr name="hasVoiceKey" format="string" /> |
Tadashi G. Takaoka | d9c52ba | 2011-02-18 14:16:29 +0900 | [diff] [blame] | 175 | <attr name="imeAction"> |
Tadashi G. Takaoka | 6624fd8 | 2010-11-19 16:04:52 -0800 | [diff] [blame] | 176 | <!-- This should be aligned with EditorInfo.IME_ACTION_* --> |
| 177 | <flag name="actionUnspecified" value="0" /> |
| 178 | <flag name="actionNone" value="1" /> |
| 179 | <flag name="actionGo" value="2" /> |
| 180 | <flag name="actionSearch" value="3" /> |
| 181 | <flag name="actionSend" value="4" /> |
| 182 | <flag name="actionNext" value="5" /> |
| 183 | <flag name="actionDone" value="6" /> |
| 184 | <flag name="actionPrevious" value="7" /> |
| 185 | </attr> |
Tadashi G. Takaoka | ea6c2e3 | 2011-02-18 15:33:44 +0900 | [diff] [blame] | 186 | <attr name="languageCode" format="string" /> |
Tadashi G. Takaoka | 912ade3 | 2011-02-23 17:09:24 +0900 | [diff] [blame] | 187 | <attr name="countryCode" format="string" /> |
Tadashi G. Takaoka | b046511 | 2010-11-11 15:28:14 -0800 | [diff] [blame] | 188 | </declare-styleable> |
Tadashi G. Takaoka | 0b60f83 | 2010-11-19 14:57:24 -0800 | [diff] [blame] | 189 | |
Tadashi G. Takaoka | 5a309f5 | 2010-12-02 18:46:21 +0900 | [diff] [blame] | 190 | <declare-styleable name="Keyboard_KeyStyle"> |
Tadashi G. Takaoka | 0b60f83 | 2010-11-19 14:57:24 -0800 | [diff] [blame] | 191 | <attr name="styleName" format="string" /> |
| 192 | <attr name="parentStyle" format="string" /> |
| 193 | </declare-styleable> |
satok | 979f869 | 2010-08-20 14:35:02 +0900 | [diff] [blame] | 194 | </resources> |