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 Takaoka | 6886472 | 2010-11-05 18:30:22 +0900 | [diff] [blame] | 19 | <declare-styleable name="BaseKeyboardView"> |
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 | |
| 28 | <!-- Size of the text for character keys. --> |
| 29 | <attr name="keyTextSize" format="dimension" /> |
| 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 | |
| 37 | <!-- Layout resource for key press feedback.--> |
| 38 | <attr name="keyPreviewLayout" format="reference" /> |
| 39 | |
| 40 | <!-- Vertical offset of the key press feedback from the key. --> |
| 41 | <attr name="keyPreviewOffset" format="dimension" /> |
| 42 | |
| 43 | <!-- Height of the key press feedback popup. --> |
| 44 | <attr name="keyPreviewHeight" format="dimension" /> |
| 45 | |
Tadashi G. Takaoka | eb68036 | 2010-09-13 19:26:23 +0900 | [diff] [blame] | 46 | <!-- Hysteresis distance for key debouncing --> |
| 47 | <attr name="keyHysteresisDistance" format="dimension" /> |
| 48 | |
satok | 979f869 | 2010-08-20 14:35:02 +0900 | [diff] [blame] | 49 | <!-- Amount to offset the touch Y coordinate by, for bias correction. --> |
| 50 | <attr name="verticalCorrection" format="dimension" /> |
| 51 | |
satok | 979f869 | 2010-08-20 14:35:02 +0900 | [diff] [blame] | 52 | <!-- Layout resource for popup keyboards. --> |
| 53 | <attr name="popupLayout" format="reference" /> |
| 54 | |
| 55 | <attr name="shadowColor" format="color" /> |
| 56 | <attr name="shadowRadius" format="float" /> |
| 57 | <attr name="backgroundDimAmount" format="float" /> |
| 58 | |
| 59 | <attr name="keyTextStyle"> |
Tadashi G. Takaoka | 59c9930 | 2010-11-21 16:40:38 -0800 | [diff] [blame] | 60 | <enum name="normal" value="0" /> |
| 61 | <enum name="bold" value="1" /> |
| 62 | <enum name="italic" value="2" /> |
satok | 979f869 | 2010-08-20 14:35:02 +0900 | [diff] [blame] | 63 | </attr> |
| 64 | |
Tadashi G. Takaoka | 59c9930 | 2010-11-21 16:40:38 -0800 | [diff] [blame] | 65 | <attr name="colorScheme"> |
| 66 | <!-- This should be aligned with BaseKeyboardView.COLOR_SCHEME_* --> |
| 67 | <enum name="white" value="0" /> |
| 68 | <enum name="black" value="1" /> |
satok | 979f869 | 2010-08-20 14:35:02 +0900 | [diff] [blame] | 69 | </attr> |
| 70 | |
| 71 | </declare-styleable> |
| 72 | |
satok | 4fc510a | 2010-10-01 19:40:44 +0900 | [diff] [blame] | 73 | <declare-styleable name="BaseKeyboard"> |
| 74 | <!-- Default width of a key, in pixels or percentage of display width. --> |
| 75 | <attr name="keyWidth" format="dimension|fraction" /> |
| 76 | <!-- Default height of a key, in pixels or percentage of display width. --> |
| 77 | <attr name="keyHeight" format="dimension|fraction" /> |
| 78 | <!-- Default horizontal gap between keys. --> |
| 79 | <attr name="horizontalGap" format="dimension|fraction" /> |
| 80 | <!-- Default vertical gap between rows of keys. --> |
| 81 | <attr name="verticalGap" format="dimension|fraction" /> |
| 82 | </declare-styleable> |
| 83 | |
| 84 | <declare-styleable name="BaseKeyboard_Key"> |
| 85 | <!-- The unicode value or comma-separated values that this key outputs. --> |
| 86 | <attr name="codes" format="integer|string" /> |
| 87 | <!-- The XML keyboard layout of any popup keyboard. --> |
| 88 | <attr name="popupKeyboard" format="reference" /> |
| 89 | <!-- The characters to display in the popup keyboard. --> |
| 90 | <attr name="popupCharacters" format="string" /> |
| 91 | <!-- Key edge flags. --> |
| 92 | <attr name="keyEdgeFlags"> |
| 93 | <!-- Key is anchored to the left of the keyboard. --> |
| 94 | <flag name="left" value="1" /> |
| 95 | <!-- Key is anchored to the right of the keyboard. --> |
| 96 | <flag name="right" value="2" /> |
| 97 | </attr> |
| 98 | <!-- Whether this is a modifier key such as Alt or Shift. --> |
| 99 | <attr name="isModifier" format="boolean" /> |
| 100 | <!-- Whether this is a toggle key. --> |
| 101 | <attr name="isSticky" format="boolean" /> |
| 102 | <!-- Whether long-pressing on this key will make it repeat. --> |
| 103 | <attr name="isRepeatable" format="boolean" /> |
| 104 | <!-- The icon to show in the popup preview. --> |
| 105 | <attr name="iconPreview" format="reference" /> |
| 106 | <!-- The string of characters to output when this key is pressed. --> |
| 107 | <attr name="keyOutputText" format="string" /> |
| 108 | <!-- The label to display on the key. --> |
| 109 | <attr name="keyLabel" format="string" /> |
Tadashi G. Takaoka | cd39f2a | 2010-11-20 08:03:24 -0800 | [diff] [blame] | 110 | <!-- The key label option --> |
| 111 | <attr name="keyLabelOption"> |
| 112 | <!-- This should be aligned with BaseKeyboardView.KEY_LABEL_OPTION_* --> |
| 113 | <flag name="alignLeft" value="1" /> |
| 114 | <flag name="alignRight" value="2" /> |
| 115 | <flag name="alignBottom" value="8" /> |
Tadashi G. Takaoka | fab243a | 2010-11-22 22:51:59 -0800 | [diff] [blame] | 116 | <flag name="fontNormal" value="16" /> |
Tadashi G. Takaoka | cd39f2a | 2010-11-20 08:03:24 -0800 | [diff] [blame] | 117 | </attr> |
Tadashi G. Takaoka | 10227a7 | 2010-11-13 00:16:34 -0800 | [diff] [blame] | 118 | <!-- The unicode that this key generates in manual temporary upper case mode. --> |
| 119 | <attr name="manualTemporaryUpperCaseCode" format="integer" /> |
satok | 4fc510a | 2010-10-01 19:40:44 +0900 | [diff] [blame] | 120 | <!-- The icon to display on the key instead of the label. --> |
| 121 | <attr name="keyIcon" format="reference" /> |
Tadashi G. Takaoka | 66e306d | 2010-10-02 15:17:27 +0900 | [diff] [blame] | 122 | <!-- The hint icon to display on the key in conjunction with the label --> |
| 123 | <attr name="keyHintIcon" format="reference" /> |
Tadashi G. Takaoka | 10227a7 | 2010-11-13 00:16:34 -0800 | [diff] [blame] | 124 | <!-- The hint icon to display on the key when keyboard is in manual temporary upper case |
| 125 | mode. --> |
| 126 | <attr name="manualTemporaryUpperCaseHintIcon" format="reference" /> |
Tadashi G. Takaoka | 0b60f83 | 2010-11-19 14:57:24 -0800 | [diff] [blame] | 127 | <!-- The key style to specify a set of key attributes defined by <key_style/> --> |
| 128 | <attr name="keyStyle" format="string" /> |
Tadashi G. Takaoka | 7f0befe | 2010-11-23 23:59:56 -0800 | [diff] [blame^] | 129 | <!-- Shift key icon for shifted state --> |
| 130 | <attr name="shiftedIcon" format="reference" /> |
satok | 4fc510a | 2010-10-01 19:40:44 +0900 | [diff] [blame] | 131 | </declare-styleable> |
| 132 | |
| 133 | <declare-styleable name="BaseKeyboard_Row"> |
| 134 | <!-- Row edge flags. --> |
| 135 | <attr name="rowEdgeFlags"> |
| 136 | <!-- Row is anchored to the top of the keyboard. --> |
| 137 | <flag name="top" value="4" /> |
| 138 | <!-- Row is anchored to the bottom of the keyboard. --> |
| 139 | <flag name="bottom" value="8" /> |
| 140 | </attr> |
satok | 4fc510a | 2010-10-01 19:40:44 +0900 | [diff] [blame] | 141 | </declare-styleable> |
Tadashi G. Takaoka | d663555 | 2010-10-07 17:13:30 +0900 | [diff] [blame] | 142 | |
| 143 | <declare-styleable name="BaseKeyboard_Include"> |
| 144 | <attr name="keyboardLayout" format="reference" /> |
| 145 | </declare-styleable> |
Tadashi G. Takaoka | b046511 | 2010-11-11 15:28:14 -0800 | [diff] [blame] | 146 | |
| 147 | <declare-styleable name="BaseKeyboard_Case"> |
Tadashi G. Takaoka | cd39f2a | 2010-11-20 08:03:24 -0800 | [diff] [blame] | 148 | <!-- This should be aligned with KeyboardSwitcher.MODE_* --> |
Tadashi G. Takaoka | 1d8196c | 2010-11-19 14:57:24 -0800 | [diff] [blame] | 149 | <attr name="mode"> |
Tadashi G. Takaoka | cd39f2a | 2010-11-20 08:03:24 -0800 | [diff] [blame] | 150 | <enum name="text" value="0" /> |
| 151 | <enum name="url" value="1" /> |
| 152 | <enum name="email" value="2" /> |
| 153 | <enum name="im" value="3" /> |
| 154 | <enum name="web" value="4" /> |
| 155 | <enum name="phone" value="5" /> |
Tadashi G. Takaoka | 1d8196c | 2010-11-19 14:57:24 -0800 | [diff] [blame] | 156 | </attr> |
Tadashi G. Takaoka | 04448c2 | 2010-11-19 18:45:30 -0800 | [diff] [blame] | 157 | <attr name="hasSettingsKey" format="string" /> |
| 158 | <attr name="voiceKeyEnabled" format="string" /> |
| 159 | <attr name="hasVoiceKey" format="string" /> |
Tadashi G. Takaoka | 6624fd8 | 2010-11-19 16:04:52 -0800 | [diff] [blame] | 160 | <attr name="imeOptions"> |
| 161 | <!-- This should be aligned with EditorInfo.IME_ACTION_* --> |
| 162 | <flag name="actionUnspecified" value="0" /> |
| 163 | <flag name="actionNone" value="1" /> |
| 164 | <flag name="actionGo" value="2" /> |
| 165 | <flag name="actionSearch" value="3" /> |
| 166 | <flag name="actionSend" value="4" /> |
| 167 | <flag name="actionNext" value="5" /> |
| 168 | <flag name="actionDone" value="6" /> |
| 169 | <flag name="actionPrevious" value="7" /> |
| 170 | </attr> |
Tadashi G. Takaoka | b046511 | 2010-11-11 15:28:14 -0800 | [diff] [blame] | 171 | </declare-styleable> |
Tadashi G. Takaoka | 0b60f83 | 2010-11-19 14:57:24 -0800 | [diff] [blame] | 172 | |
| 173 | <declare-styleable name="BaseKeyboard_KeyStyle"> |
| 174 | <attr name="styleName" format="string" /> |
| 175 | <attr name="parentStyle" format="string" /> |
| 176 | </declare-styleable> |
satok | 979f869 | 2010-08-20 14:35:02 +0900 | [diff] [blame] | 177 | </resources> |