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"> |
| 60 | <flag name="normal" value="0" /> |
| 61 | <flag name="bold" value="1" /> |
| 62 | <flag name="italic" value="2" /> |
| 63 | </attr> |
| 64 | |
| 65 | <attr name="symbolColorScheme"> |
| 66 | <flag name="white" value="0" /> |
| 67 | <flag name="black" value="1" /> |
| 68 | </attr> |
| 69 | |
| 70 | </declare-styleable> |
| 71 | |
satok | 4fc510a | 2010-10-01 19:40:44 +0900 | [diff] [blame] | 72 | <declare-styleable name="BaseKeyboard"> |
| 73 | <!-- Default width of a key, in pixels or percentage of display width. --> |
| 74 | <attr name="keyWidth" format="dimension|fraction" /> |
| 75 | <!-- Default height of a key, in pixels or percentage of display width. --> |
| 76 | <attr name="keyHeight" format="dimension|fraction" /> |
| 77 | <!-- Default horizontal gap between keys. --> |
| 78 | <attr name="horizontalGap" format="dimension|fraction" /> |
| 79 | <!-- Default vertical gap between rows of keys. --> |
| 80 | <attr name="verticalGap" format="dimension|fraction" /> |
| 81 | </declare-styleable> |
| 82 | |
| 83 | <declare-styleable name="BaseKeyboard_Key"> |
| 84 | <!-- The unicode value or comma-separated values that this key outputs. --> |
| 85 | <attr name="codes" format="integer|string" /> |
| 86 | <!-- The XML keyboard layout of any popup keyboard. --> |
| 87 | <attr name="popupKeyboard" format="reference" /> |
| 88 | <!-- The characters to display in the popup keyboard. --> |
| 89 | <attr name="popupCharacters" format="string" /> |
| 90 | <!-- Key edge flags. --> |
| 91 | <attr name="keyEdgeFlags"> |
| 92 | <!-- Key is anchored to the left of the keyboard. --> |
| 93 | <flag name="left" value="1" /> |
| 94 | <!-- Key is anchored to the right of the keyboard. --> |
| 95 | <flag name="right" value="2" /> |
| 96 | </attr> |
| 97 | <!-- Whether this is a modifier key such as Alt or Shift. --> |
| 98 | <attr name="isModifier" format="boolean" /> |
| 99 | <!-- Whether this is a toggle key. --> |
| 100 | <attr name="isSticky" format="boolean" /> |
| 101 | <!-- Whether long-pressing on this key will make it repeat. --> |
| 102 | <attr name="isRepeatable" format="boolean" /> |
| 103 | <!-- The icon to show in the popup preview. --> |
| 104 | <attr name="iconPreview" format="reference" /> |
| 105 | <!-- The string of characters to output when this key is pressed. --> |
| 106 | <attr name="keyOutputText" format="string" /> |
| 107 | <!-- The label to display on the key. --> |
| 108 | <attr name="keyLabel" format="string" /> |
Tadashi G. Takaoka | cd39f2a | 2010-11-20 08:03:24 -0800 | [diff] [blame^] | 109 | <!-- The key label option --> |
| 110 | <attr name="keyLabelOption"> |
| 111 | <!-- This should be aligned with BaseKeyboardView.KEY_LABEL_OPTION_* --> |
| 112 | <flag name="alignLeft" value="1" /> |
| 113 | <flag name="alignRight" value="2" /> |
| 114 | <flag name="alignBottom" value="8" /> |
| 115 | <flag name="fontItalic" value="16" /> |
| 116 | </attr> |
Tadashi G. Takaoka | 10227a7 | 2010-11-13 00:16:34 -0800 | [diff] [blame] | 117 | <!-- The unicode that this key generates in manual temporary upper case mode. --> |
| 118 | <attr name="manualTemporaryUpperCaseCode" format="integer" /> |
satok | 4fc510a | 2010-10-01 19:40:44 +0900 | [diff] [blame] | 119 | <!-- The icon to display on the key instead of the label. --> |
| 120 | <attr name="keyIcon" format="reference" /> |
Tadashi G. Takaoka | 66e306d | 2010-10-02 15:17:27 +0900 | [diff] [blame] | 121 | <!-- The hint icon to display on the key in conjunction with the label --> |
| 122 | <attr name="keyHintIcon" format="reference" /> |
Tadashi G. Takaoka | 10227a7 | 2010-11-13 00:16:34 -0800 | [diff] [blame] | 123 | <!-- The hint icon to display on the key when keyboard is in manual temporary upper case |
| 124 | mode. --> |
| 125 | <attr name="manualTemporaryUpperCaseHintIcon" format="reference" /> |
satok | 4fc510a | 2010-10-01 19:40:44 +0900 | [diff] [blame] | 126 | </declare-styleable> |
| 127 | |
| 128 | <declare-styleable name="BaseKeyboard_Row"> |
| 129 | <!-- Row edge flags. --> |
| 130 | <attr name="rowEdgeFlags"> |
| 131 | <!-- Row is anchored to the top of the keyboard. --> |
| 132 | <flag name="top" value="4" /> |
| 133 | <!-- Row is anchored to the bottom of the keyboard. --> |
| 134 | <flag name="bottom" value="8" /> |
| 135 | </attr> |
satok | 4fc510a | 2010-10-01 19:40:44 +0900 | [diff] [blame] | 136 | </declare-styleable> |
Tadashi G. Takaoka | d663555 | 2010-10-07 17:13:30 +0900 | [diff] [blame] | 137 | |
| 138 | <declare-styleable name="BaseKeyboard_Include"> |
| 139 | <attr name="keyboardLayout" format="reference" /> |
| 140 | </declare-styleable> |
Tadashi G. Takaoka | b046511 | 2010-11-11 15:28:14 -0800 | [diff] [blame] | 141 | |
| 142 | <declare-styleable name="BaseKeyboard_Case"> |
Tadashi G. Takaoka | cd39f2a | 2010-11-20 08:03:24 -0800 | [diff] [blame^] | 143 | <!-- This should be aligned with KeyboardSwitcher.MODE_* --> |
Tadashi G. Takaoka | 1d8196c | 2010-11-19 14:57:24 -0800 | [diff] [blame] | 144 | <attr name="mode"> |
Tadashi G. Takaoka | cd39f2a | 2010-11-20 08:03:24 -0800 | [diff] [blame^] | 145 | <enum name="text" value="0" /> |
| 146 | <enum name="url" value="1" /> |
| 147 | <enum name="email" value="2" /> |
| 148 | <enum name="im" value="3" /> |
| 149 | <enum name="web" value="4" /> |
| 150 | <enum name="phone" value="5" /> |
Tadashi G. Takaoka | 1d8196c | 2010-11-19 14:57:24 -0800 | [diff] [blame] | 151 | </attr> |
Tadashi G. Takaoka | b046511 | 2010-11-11 15:28:14 -0800 | [diff] [blame] | 152 | <attr name="settingsKey" format="string" /> |
| 153 | <attr name="voiceKey" format="string" /> |
| 154 | </declare-styleable> |
satok | 979f869 | 2010-08-20 14:35:02 +0900 | [diff] [blame] | 155 | </resources> |