satok | 979f869 | 2010-08-20 14:35:02 +0900 | [diff] [blame] | 1 | <?xml version="1.0" encoding="utf-8"?> |
Tadashi G. Takaoka | e94bbca | 2013-08-27 17:04:06 +0900 | [diff] [blame] | 2 | <!-- |
| 3 | /* |
| 4 | ** |
| 5 | ** Copyright 2010, The Android Open Source Project |
| 6 | ** |
| 7 | ** Licensed under the Apache License, Version 2.0 (the "License"); |
| 8 | ** you may not use this file except in compliance with the License. |
| 9 | ** You may obtain a copy of the License at |
| 10 | ** |
| 11 | ** http://www.apache.org/licenses/LICENSE-2.0 |
| 12 | ** |
| 13 | ** Unless required by applicable law or agreed to in writing, software |
| 14 | ** distributed under the License is distributed on an "AS IS" BASIS, |
| 15 | ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 16 | ** See the License for the specific language governing permissions and |
| 17 | ** limitations under the License. |
| 18 | */ |
satok | 979f869 | 2010-08-20 14:35:02 +0900 | [diff] [blame] | 19 | --> |
| 20 | |
| 21 | <resources> |
Tadashi G. Takaoka | 13a7419 | 2011-05-24 21:08:20 +0900 | [diff] [blame] | 22 | <declare-styleable name="KeyboardTheme"> |
Tadashi G. Takaoka | b7758d6 | 2011-06-15 13:38:58 +0900 | [diff] [blame] | 23 | <!-- Keyboard style --> |
| 24 | <attr name="keyboardStyle" format="reference" /> |
Tadashi G. Takaoka | 13a7419 | 2011-05-24 21:08:20 +0900 | [diff] [blame] | 25 | <!-- KeyboardView style --> |
| 26 | <attr name="keyboardViewStyle" format="reference" /> |
Tadashi G. Takaoka | c8e45dd | 2012-07-23 10:27:14 +0900 | [diff] [blame] | 27 | <!-- MainKeyboardView style --> |
| 28 | <attr name="mainKeyboardViewStyle" format="reference" /> |
Satoshi Kataoka | d76b552 | 2013-10-07 11:28:57 +0900 | [diff] [blame] | 29 | <!-- EmojiPalettesView style --> |
| 30 | <attr name="emojiPalettesViewStyle" format="reference" /> |
Tadashi G. Takaoka | 2affaf9 | 2012-02-08 16:12:11 +0900 | [diff] [blame] | 31 | <!-- MoreKeysKeyboard style --> |
| 32 | <attr name="moreKeysKeyboardStyle" format="reference" /> |
| 33 | <!-- MoreKeysKeyboardView style --> |
| 34 | <attr name="moreKeysKeyboardViewStyle" format="reference" /> |
Tadashi G. Takaoka | 0f33e61 | 2014-08-22 18:36:09 +0900 | [diff] [blame] | 35 | <!-- MoreKeysKeyboardView style for action key --> |
| 36 | <attr name="moreKeysKeyboardViewForActionStyle" format="reference" /> |
Tadashi G. Takaoka | 13a7419 | 2011-05-24 21:08:20 +0900 | [diff] [blame] | 37 | <!-- Suggestions strip style --> |
Tadashi G. Takaoka | 4702671 | 2012-07-23 15:28:28 +0900 | [diff] [blame] | 38 | <attr name="suggestionStripViewStyle" format="reference" /> |
Tadashi G. Takaoka | 0861d67 | 2013-08-28 15:59:49 +0900 | [diff] [blame] | 39 | <!-- Suggestion word style --> |
| 40 | <attr name="suggestionWordStyle" format="reference" /> |
Yusuke Nojima | d633963 | 2011-09-29 11:53:51 +0900 | [diff] [blame] | 41 | </declare-styleable> |
satok | 979f869 | 2010-08-20 14:35:02 +0900 | [diff] [blame] | 42 | |
Tadashi G. Takaoka | 5a309f5 | 2010-12-02 18:46:21 +0900 | [diff] [blame] | 43 | <declare-styleable name="KeyboardView"> |
Tadashi G. Takaoka | c1e6100 | 2014-05-14 15:30:37 +0900 | [diff] [blame] | 44 | <!-- Background image for the key. This image needs to be a {@link StateListDrawable}, |
| 45 | with the following possible states: normal, pressed, checkable, checkable+pressed, |
Ken Wakasa | 2fa3693 | 2013-12-13 17:09:16 +0900 | [diff] [blame] | 46 | checkable+checked, checkable+checked+pressed. --> |
satok | 979f869 | 2010-08-20 14:35:02 +0900 | [diff] [blame] | 47 | <attr name="keyBackground" format="reference" /> |
Tadashi G. Takaoka | c1e6100 | 2014-05-14 15:30:37 +0900 | [diff] [blame] | 48 | <!-- Background image for the functional key. This image needs to be a |
| 49 | {@link StateListDrawable}, with the following possible states: normal, pressed. --> |
| 50 | <attr name="functionalKeyBackground" format="reference" /> |
| 51 | <!-- Background image for the spacebar. This image needs to be a |
| 52 | {@link StateListDrawable}, with the following possible states: normal, pressed. --> |
| 53 | <attr name="spacebarBackground" format="reference" /> |
Tadashi G. Takaoka | 4180819 | 2014-05-15 17:28:54 +0900 | [diff] [blame] | 54 | <attr name="spacebarIconWidthRatio" format="float" /> |
Tadashi G. Takaoka | 71b52a8 | 2012-08-31 10:09:43 +0900 | [diff] [blame] | 55 | <!-- Right padding of hint letter to the edge of the key.--> |
| 56 | <attr name="keyHintLetterPadding" format="dimension" /> |
Tadashi G. Takaoka | 3410e16 | 2014-08-05 17:32:53 +0900 | [diff] [blame] | 57 | <!-- Popup hint letter string--> |
| 58 | <attr name="keyPopupHintLetter" format="string" /> |
| 59 | <!-- Bottom padding of popup hint letter to the edge of the key.--> |
Tadashi G. Takaoka | 71b52a8 | 2012-08-31 10:09:43 +0900 | [diff] [blame] | 60 | <attr name="keyPopupHintLetterPadding" format="dimension" /> |
| 61 | <!-- Right padding of shifted letter hint to the edge of the key.--> |
| 62 | <attr name="keyShiftedLetterHintPadding" format="dimension" /> |
Tadashi G. Takaoka | dc34da2 | 2012-08-30 17:42:49 +0900 | [diff] [blame] | 63 | <!-- Blur radius of key text shadow. --> |
| 64 | <attr name="keyTextShadowRadius" format="float" /> |
Tadashi G. Takaoka | 71b52a8 | 2012-08-31 10:09:43 +0900 | [diff] [blame] | 65 | |
Tadashi G. Takaoka | e8c6d5a | 2012-09-05 15:34:51 +0900 | [diff] [blame] | 66 | <!-- Key preview background states --> |
| 67 | <attr name="state_left_edge" format="boolean" /> |
| 68 | <attr name="state_right_edge" format="boolean" /> |
| 69 | <attr name="state_has_morekeys" format="boolean" /> |
satok | 979f869 | 2010-08-20 14:35:02 +0900 | [diff] [blame] | 70 | |
| 71 | <!-- Amount to offset the touch Y coordinate by, for bias correction. --> |
| 72 | <attr name="verticalCorrection" format="dimension" /> |
satok | 979f869 | 2010-08-20 14:35:02 +0900 | [diff] [blame] | 73 | </declare-styleable> |
| 74 | |
Tadashi G. Takaoka | c8e45dd | 2012-07-23 10:27:14 +0900 | [diff] [blame] | 75 | <declare-styleable name="MainKeyboardView"> |
Tadashi G. Takaoka | 4112dc0 | 2011-12-18 08:13:36 +0900 | [diff] [blame] | 76 | <!-- Size of the text for spacebar language label, in the proportion of key height. --> |
Ken Wakasa | 2fa3693 | 2013-12-13 17:09:16 +0900 | [diff] [blame] | 77 | <attr name="languageOnSpacebarTextRatio" format="fraction" /> |
| 78 | <attr name="languageOnSpacebarTextColor" format="color" /> |
Tadashi G. Takaoka | 41f9f1e | 2014-05-13 11:19:43 +0900 | [diff] [blame] | 79 | <attr name="languageOnSpacebarTextShadowRadius" format="float" /> |
Ken Wakasa | 2fa3693 | 2013-12-13 17:09:16 +0900 | [diff] [blame] | 80 | <attr name="languageOnSpacebarTextShadowColor" format="color" /> |
Tadashi G. Takaoka | d7c4ba1 | 2012-03-14 12:33:03 +0900 | [diff] [blame] | 81 | <!-- Fadeout animator for spacebar language label. --> |
Tadashi G. Takaoka | 31c94ce | 2012-03-16 14:05:20 +0900 | [diff] [blame] | 82 | <attr name="languageOnSpacebarFinalAlpha" format="integer" /> |
Tadashi G. Takaoka | d7c4ba1 | 2012-03-14 12:33:03 +0900 | [diff] [blame] | 83 | <attr name="languageOnSpacebarFadeoutAnimator" format="reference" /> |
Tadashi G. Takaoka | 73a46bf | 2012-03-14 14:46:22 +0900 | [diff] [blame] | 84 | <!-- Fadeout and fadein animator for altCodeWhileTyping keys. --> |
| 85 | <attr name="altCodeKeyWhileTypingFadeoutAnimator" format="reference" /> |
| 86 | <attr name="altCodeKeyWhileTypingFadeinAnimator" format="reference" /> |
Tadashi G. Takaoka | 160f012 | 2012-01-25 20:14:39 +0900 | [diff] [blame] | 87 | <!-- Key detection hysteresis distance. --> |
| 88 | <attr name="keyHysteresisDistance" format="dimension" /> |
Tadashi G. Takaoka | f731eb1 | 2012-10-06 23:22:36 +0900 | [diff] [blame] | 89 | <!-- Key detection hysteresis distance for shift/symbols sliding input. --> |
| 90 | <attr name="keyHysteresisDistanceForSlidingModifier" format="dimension" /> |
Tadashi G. Takaoka | 160f012 | 2012-01-25 20:14:39 +0900 | [diff] [blame] | 91 | <!-- Touch noise threshold time in millisecond --> |
| 92 | <attr name="touchNoiseThresholdTime" format="integer" /> |
| 93 | <!-- Touch noise threshold distance in millimeter --> |
| 94 | <attr name="touchNoiseThresholdDistance" format="dimension" /> |
Ken Wakasa | 2fa3693 | 2013-12-13 17:09:16 +0900 | [diff] [blame] | 95 | <!-- Enable key selection by dragging finger --> |
| 96 | <attr name="keySelectionByDraggingFinger" format="boolean" /> |
Tadashi G. Takaoka | ff961dd | 2013-01-24 16:08:33 +0900 | [diff] [blame] | 97 | <attr name="slidingKeyInputPreviewColor" format="color" /> |
| 98 | <attr name="slidingKeyInputPreviewWidth" format="dimension" /> |
Tadashi G. Takaoka | c71dde9 | 2013-04-16 16:44:23 +0900 | [diff] [blame] | 99 | <attr name="slidingKeyInputPreviewBodyRatio" format="integer" /> |
| 100 | <attr name="slidingKeyInputPreviewShadowRatio" format="integer" /> |
Tadashi G. Takaoka | 160f012 | 2012-01-25 20:14:39 +0900 | [diff] [blame] | 101 | <!-- Key repeat start timeout --> |
| 102 | <attr name="keyRepeatStartTimeout" format="integer" /> |
| 103 | <!-- Key repeat interval in millisecond. --> |
| 104 | <attr name="keyRepeatInterval" format="integer" /> |
Tadashi G. Takaoka | cc5e4a4 | 2013-01-18 12:19:59 +0900 | [diff] [blame] | 105 | <!-- Long press timeout of shift key to shift lock in millisecond. --> |
| 106 | <attr name="longPressShiftLockTimeout" format="integer" /> |
Tadashi G. Takaoka | 160f012 | 2012-01-25 20:14:39 +0900 | [diff] [blame] | 107 | <!-- Ignore special key timeout while typing in millisecond. --> |
Tadashi G. Takaoka | 73a46bf | 2012-03-14 14:46:22 +0900 | [diff] [blame] | 108 | <attr name="ignoreAltCodeKeyTimeout" format="integer" /> |
Tadashi G. Takaoka | 615f431 | 2014-06-17 17:42:36 -0700 | [diff] [blame] | 109 | <!-- Background resource for key press feedback.--> |
| 110 | <attr name="keyPreviewBackground" format="reference" /> |
Tadashi G. Takaoka | 0e4f0da | 2013-01-21 15:23:32 +0900 | [diff] [blame] | 111 | <!-- Vertical offset of the key press feedback from the key. --> |
| 112 | <attr name="keyPreviewOffset" format="dimension" /> |
| 113 | <!-- Height of the key press feedback popup. --> |
| 114 | <attr name="keyPreviewHeight" format="dimension" /> |
Tadashi G. Takaoka | c9072dc | 2014-02-17 12:10:09 +0900 | [diff] [blame] | 115 | <!-- TODO: consolidate key preview linger timeout with the key preview animation parameters. --> |
Tadashi G. Takaoka | 0e4f0da | 2013-01-21 15:23:32 +0900 | [diff] [blame] | 116 | <!-- Delay after key releasing and key press feedback dismissing in millisecond --> |
| 117 | <attr name="keyPreviewLingerTimeout" format="integer" /> |
Tadashi G. Takaoka | ac88f3d | 2014-09-01 18:26:34 +0900 | [diff] [blame] | 118 | <!-- Key preview show up animator --> |
| 119 | <attr name="keyPreviewShowUpAnimator" format="reference" /> |
| 120 | <!-- Key preview dismiss animator --> |
| 121 | <attr name="keyPreviewDismissAnimator" format="reference" /> |
Tadashi G. Takaoka | d9449cc | 2013-01-21 14:41:33 +0900 | [diff] [blame] | 122 | <!-- Layout resource for more keys keyboard --> |
| 123 | <attr name="moreKeysKeyboardLayout" format="reference" /> |
Tadashi G. Takaoka | 0f33e61 | 2014-08-22 18:36:09 +0900 | [diff] [blame] | 124 | <!-- Layout resource for more keys keyboard of action key --> |
| 125 | <attr name="moreKeysKeyboardForActionLayout" format="reference" /> |
Tadashi G. Takaoka | f3c4cd4 | 2013-01-21 16:36:25 +0900 | [diff] [blame] | 126 | <attr name="backgroundDimAlpha" format="integer" /> |
Tadashi G. Takaoka | 2affaf9 | 2012-02-08 16:12:11 +0900 | [diff] [blame] | 127 | <!-- More keys keyboard will shown at touched point. --> |
| 128 | <attr name="showMoreKeysKeyboardAtTouchedPoint" format="boolean" /> |
Ken Wakasa | cb3bba3 | 2013-05-13 13:12:12 +0900 | [diff] [blame] | 129 | <!-- Minimum distance between gesture trail sampling points. --> |
| 130 | <attr name="gestureTrailMinSamplingDistance" format="dimension" /> |
| 131 | <!-- Maximum angular threshold between gesture trail interpolation segments in degree. --> |
| 132 | <attr name="gestureTrailMaxInterpolationAngularThreshold" format="integer" /> |
| 133 | <!-- Maximum distance threshold between gesture trail interpolation segments. --> |
| 134 | <attr name="gestureTrailMaxInterpolationDistanceThreshold" format="dimension" /> |
| 135 | <!-- Maximum number of gesture trail interpolation segments. --> |
| 136 | <attr name="gestureTrailMaxInterpolationSegments" format="integer" /> |
Tadashi G. Takaoka | 9c968b6 | 2013-01-21 16:16:48 +0900 | [diff] [blame] | 137 | <!-- Delay after gesture trail starts fading out in millisecond. --> |
Ken Wakasa | cb3bba3 | 2013-05-13 13:12:12 +0900 | [diff] [blame] | 138 | <attr name="gestureTrailFadeoutStartDelay" format="integer" /> |
| 139 | <!-- Duration while gesture trail is fading out in millisecond. --> |
| 140 | <attr name="gestureTrailFadeoutDuration" format="integer" /> |
| 141 | <!-- Interval of updating gesture trail in millisecond. --> |
| 142 | <attr name="gestureTrailUpdateInterval" format="integer" /> |
| 143 | <attr name="gestureTrailColor" format="color" /> |
| 144 | <attr name="gestureTrailStartWidth" format="dimension" /> |
| 145 | <attr name="gestureTrailEndWidth" format="dimension" /> |
| 146 | <attr name="gestureTrailBodyRatio" format="integer" /> |
| 147 | <attr name="gestureTrailShadowRatio" format="integer" /> |
Tadashi G. Takaoka | 3759821 | 2013-01-21 15:57:32 +0900 | [diff] [blame] | 148 | <!-- Delay after gesture input and gesture floating preview text dismissing in millisecond --> |
| 149 | <attr name="gestureFloatingPreviewTextLingerTimeout" format="integer" /> |
Tadashi G. Takaoka | 9c968b6 | 2013-01-21 16:16:48 +0900 | [diff] [blame] | 150 | <!-- Attributes for GestureFloatingPreviewText --> |
| 151 | <attr name="gestureFloatingPreviewTextSize" format="dimension" /> |
| 152 | <attr name="gestureFloatingPreviewTextColor" format="color" /> |
| 153 | <attr name="gestureFloatingPreviewTextOffset" format="dimension" /> |
| 154 | <attr name="gestureFloatingPreviewColor" format="color" /> |
| 155 | <attr name="gestureFloatingPreviewHorizontalPadding" format="dimension" /> |
| 156 | <attr name="gestureFloatingPreviewVerticalPadding" format="dimension" /> |
| 157 | <attr name="gestureFloatingPreviewRoundRadius" format="dimension" /> |
Tadashi G. Takaoka | 80bcb99 | 2012-10-05 12:12:54 +0900 | [diff] [blame] | 158 | <!-- Static threshold for gesture after fast typing (msec) --> |
| 159 | <attr name="gestureStaticTimeThresholdAfterFastTyping" format="integer" /> |
| 160 | <!-- Static threshold for starting gesture detection (keyWidth%/sec) --> |
| 161 | <attr name="gestureDetectFastMoveSpeedThreshold" format="fraction" /> |
| 162 | <!-- Dynamic threshold for gesture after fast typing (msec) --> |
| 163 | <attr name="gestureDynamicThresholdDecayDuration" format="integer" /> |
| 164 | <!-- Time based threshold values for gesture detection (msec) --> |
| 165 | <attr name="gestureDynamicTimeThresholdFrom" format="integer" /> |
| 166 | <attr name="gestureDynamicTimeThresholdTo" format="integer" /> |
| 167 | <!-- Distance based threshold values for gesture detection (keyWidth%/sec) --> |
| 168 | <attr name="gestureDynamicDistanceThresholdFrom" format="fraction" /> |
| 169 | <attr name="gestureDynamicDistanceThresholdTo" format="fraction" /> |
| 170 | <!-- Parameter for gesture sampling (keyWidth%/sec) --> |
| 171 | <attr name="gestureSamplingMinimumDistance" format="fraction" /> |
| 172 | <!-- Parameters for gesture recognition (msec) and (keyWidth%/sec) --> |
| 173 | <attr name="gestureRecognitionMinimumTime" format="integer" /> |
Tadashi G. Takaoka | 72fd096 | 2012-11-22 11:04:41 +0900 | [diff] [blame] | 174 | <attr name="gestureRecognitionUpdateTime" format="integer" /> |
Tadashi G. Takaoka | 80bcb99 | 2012-10-05 12:12:54 +0900 | [diff] [blame] | 175 | <attr name="gestureRecognitionSpeedThreshold" format="fraction" /> |
Tadashi G. Takaoka | 3623b97 | 2012-10-05 14:37:22 +0900 | [diff] [blame] | 176 | <!-- Suppress showing key preview duration after batch input in millisecond --> |
| 177 | <attr name="suppressKeyPreviewAfterBatchInputDuration" format="integer" /> |
Tadashi G. Takaoka | 5afc3ae | 2011-12-18 04:55:17 +0900 | [diff] [blame] | 178 | </declare-styleable> |
| 179 | |
Tadashi G. Takaoka | 727e818 | 2014-09-05 13:07:50 +0900 | [diff] [blame] | 180 | <declare-styleable name="MoreKeysKeyboardView"> |
| 181 | <attr name="divider" format="reference" /> |
| 182 | </declare-styleable> |
| 183 | |
Satoshi Kataoka | d76b552 | 2013-10-07 11:28:57 +0900 | [diff] [blame] | 184 | <declare-styleable name="EmojiPalettesView"> |
Tadashi G. Takaoka | 2782f97 | 2014-05-23 16:04:39 +0900 | [diff] [blame] | 185 | <attr name="categoryIndicatorEnabled" format="boolean" /> |
| 186 | <attr name="categoryIndicatorDrawable" format="reference" /> |
| 187 | <attr name="categoryIndicatorBackground" format="reference" /> |
| 188 | <attr name="categoryPageIndicatorColor" format="color" /> |
| 189 | <attr name="categoryPageIndicatorBackground" format="color" /> |
Tadashi G. Takaoka | 27ca9f1 | 2014-05-16 10:32:04 +0900 | [diff] [blame] | 190 | <attr name="iconEmojiRecentsTab" format="reference" /> |
| 191 | <attr name="iconEmojiCategory1Tab" format="reference" /> |
| 192 | <attr name="iconEmojiCategory2Tab" format="reference" /> |
| 193 | <attr name="iconEmojiCategory3Tab" format="reference" /> |
| 194 | <attr name="iconEmojiCategory4Tab" format="reference" /> |
| 195 | <attr name="iconEmojiCategory5Tab" format="reference" /> |
| 196 | <attr name="iconEmojiCategory6Tab" format="reference" /> |
Tadashi G. Takaoka | d189d2a | 2013-08-26 17:30:23 +0900 | [diff] [blame] | 197 | </declare-styleable> |
| 198 | |
Tadashi G. Takaoka | 4702671 | 2012-07-23 15:28:28 +0900 | [diff] [blame] | 199 | <declare-styleable name="SuggestionStripView"> |
Jean Chalard | a098466 | 2014-02-25 14:52:18 +0900 | [diff] [blame] | 200 | <attr name="suggestionStripOptions" format="integer"> |
Tadashi G. Takaoka | a0c3e02 | 2013-05-30 23:47:54 +0900 | [diff] [blame] | 201 | <!-- This should be aligned with SuggestionStripLayoutHelper.AUTO_CORRECT_* and etc. --> |
Tadashi G. Takaoka | 08a6f2a | 2011-06-15 11:49:57 +0900 | [diff] [blame] | 202 | <flag name="autoCorrectBold" value="0x01" /> |
| 203 | <flag name="autoCorrectUnderline" value="0x02" /> |
Tadashi G. Takaoka | 77a87e3 | 2011-09-21 15:04:50 +0900 | [diff] [blame] | 204 | <flag name="validTypedWordBold" value="0x04" /> |
Tadashi G. Takaoka | 08a6f2a | 2011-06-15 11:49:57 +0900 | [diff] [blame] | 205 | </attr> |
Tadashi G. Takaoka | a44685a | 2011-12-15 16:38:17 +0900 | [diff] [blame] | 206 | <attr name="colorValidTypedWord" format="color" /> |
Tadashi G. Takaoka | 08a6f2a | 2011-06-15 11:49:57 +0900 | [diff] [blame] | 207 | <attr name="colorTypedWord" format="color" /> |
| 208 | <attr name="colorAutoCorrect" format="color" /> |
| 209 | <attr name="colorSuggested" format="color" /> |
Tadashi G. Takaoka | ef2bfad | 2012-08-28 13:10:03 +0900 | [diff] [blame] | 210 | <attr name="alphaObsoleted" format="fraction" /> |
Tadashi G. Takaoka | 913e2ae | 2011-09-01 14:54:28 +0900 | [diff] [blame] | 211 | <attr name="suggestionsCountInStrip" format="integer" /> |
Tadashi G. Takaoka | ef2bfad | 2012-08-28 13:10:03 +0900 | [diff] [blame] | 212 | <attr name="centerSuggestionPercentile" format="fraction" /> |
Tadashi G. Takaoka | 9676038 | 2011-09-05 17:22:34 +0900 | [diff] [blame] | 213 | <attr name="maxMoreSuggestionsRow" format="integer" /> |
| 214 | <attr name="minMoreSuggestionsWidth" format="float" /> |
Tadashi G. Takaoka | 08a6f2a | 2011-06-15 11:49:57 +0900 | [diff] [blame] | 215 | </declare-styleable> |
| 216 | |
Tadashi G. Takaoka | 5a309f5 | 2010-12-02 18:46:21 +0900 | [diff] [blame] | 217 | <declare-styleable name="Keyboard"> |
Tadashi G. Takaoka | 0af2472 | 2014-09-03 10:52:56 +0900 | [diff] [blame] | 218 | <attr name="themeId" format="enum"> |
| 219 | <!-- This should be aligned with KeyboardTheme.THEME_ID_*. --> |
| 220 | <enum name="ICS" value="0" /> |
| 221 | <enum name="KLP" value="2" /> |
| 222 | <enum name="LXXLight" value="3" /> |
| 223 | <enum name="LXXDark" value="4" /> |
| 224 | </attr> |
Tadashi G. Takaoka | 5c26922 | 2011-09-30 21:12:20 +0900 | [diff] [blame] | 225 | <!-- Touch position correction --> |
| 226 | <attr name="touchPositionCorrectionData" format="reference" /> |
Tadashi G. Takaoka | e1f091c | 2013-01-30 13:08:44 +0900 | [diff] [blame] | 227 | <!-- Keyboard top, bottom, left, right edges paddings, in propotion of keyboard height. --> |
Tadashi G. Takaoka | 5ee2d79 | 2013-01-29 18:30:42 +0900 | [diff] [blame] | 228 | <attr name="keyboardTopPadding" format="fraction" /> |
| 229 | <attr name="keyboardBottomPadding" format="fraction" /> |
Tadashi G. Takaoka | e1f091c | 2013-01-30 13:08:44 +0900 | [diff] [blame] | 230 | <attr name="keyboardLeftPadding" format="fraction" /> |
| 231 | <attr name="keyboardRightPadding" format="fraction" /> |
Tadashi G. Takaoka | 5ee2d79 | 2013-01-29 18:30:42 +0900 | [diff] [blame] | 232 | <!-- Default height of a row (key height + vertical gap), in pixels or in the proportion of |
Tadashi G. Takaoka | 9f01ed5 | 2010-12-08 14:36:41 +0900 | [diff] [blame] | 233 | keyboard height. --> |
| 234 | <attr name="rowHeight" format="dimension|fraction" /> |
Tadashi G. Takaoka | 5ee2d79 | 2013-01-29 18:30:42 +0900 | [diff] [blame] | 235 | <!-- Default horizontal gap between keys, in the proportion of keyboard width. --> |
| 236 | <attr name="horizontalGap" format="fraction" /> |
| 237 | <!-- Default vertical gap between rows of keys, in the proportion of keyboard height. --> |
| 238 | <attr name="verticalGap" format="fraction" /> |
Tadashi G. Takaoka | 9d5601e | 2011-08-31 15:26:32 +0900 | [diff] [blame] | 239 | <!-- More keys keyboard layout template --> |
| 240 | <attr name="moreKeysTemplate" format="reference" /> |
Tadashi G. Takaoka | cf41aff | 2012-04-20 06:24:51 +0900 | [diff] [blame] | 241 | <!-- Icon set for key top and key preview. |
| 242 | These should be aligned with KeyboardIconsSet.NAMES_AND_ATTR_IDS[] --> |
Tadashi G. Takaoka | c2a2178 | 2011-06-21 23:38:42 +0900 | [diff] [blame] | 243 | <attr name="iconShiftKey" format="reference" /> |
Tadashi G. Takaoka | c2a2178 | 2011-06-21 23:38:42 +0900 | [diff] [blame] | 244 | <attr name="iconDeleteKey" format="reference" /> |
| 245 | <attr name="iconSettingsKey" format="reference" /> |
Tadashi G. Takaoka | c2a2178 | 2011-06-21 23:38:42 +0900 | [diff] [blame] | 246 | <attr name="iconSpaceKey" format="reference" /> |
Tadashi G. Takaoka | cf41aff | 2012-04-20 06:24:51 +0900 | [diff] [blame] | 247 | <attr name="iconEnterKey" format="reference" /> |
Tadashi G. Takaoka | dd68d4e | 2014-05-13 11:02:42 +0900 | [diff] [blame] | 248 | <attr name="iconGoKey" format="reference" /> |
Tadashi G. Takaoka | c2a2178 | 2011-06-21 23:38:42 +0900 | [diff] [blame] | 249 | <attr name="iconSearchKey" format="reference" /> |
Tadashi G. Takaoka | dd68d4e | 2014-05-13 11:02:42 +0900 | [diff] [blame] | 250 | <attr name="iconSendKey" format="reference" /> |
| 251 | <attr name="iconNextKey" format="reference" /> |
| 252 | <attr name="iconDoneKey" format="reference" /> |
| 253 | <attr name="iconPreviousKey" format="reference" /> |
Tadashi G. Takaoka | c2a2178 | 2011-06-21 23:38:42 +0900 | [diff] [blame] | 254 | <attr name="iconTabKey" format="reference" /> |
Tadashi G. Takaoka | 62d4a96 | 2011-08-02 21:29:24 -0700 | [diff] [blame] | 255 | <attr name="iconShortcutKey" format="reference" /> |
Tadashi G. Takaoka | 7bd714c | 2011-12-18 08:00:07 +0900 | [diff] [blame] | 256 | <attr name="iconSpaceKeyForNumberLayout" format="reference" /> |
Tadashi G. Takaoka | 7bd714c | 2011-12-18 08:00:07 +0900 | [diff] [blame] | 257 | <attr name="iconShiftKeyShifted" format="reference" /> |
Tadashi G. Takaoka | cf41aff | 2012-04-20 06:24:51 +0900 | [diff] [blame] | 258 | <attr name="iconShortcutKeyDisabled" format="reference" /> |
Tadashi G. Takaoka | 81d4e3c | 2012-02-17 17:46:01 -0800 | [diff] [blame] | 259 | <attr name="iconLanguageSwitchKey" format="reference" /> |
Tadashi G. Takaoka | 39390d3 | 2012-03-23 19:14:32 +0900 | [diff] [blame] | 260 | <attr name="iconZwnjKey" format="reference" /> |
| 261 | <attr name="iconZwjKey" format="reference" /> |
Tadashi G. Takaoka | d189d2a | 2013-08-26 17:30:23 +0900 | [diff] [blame] | 262 | <attr name="iconImeKey" format="reference" /> |
Tadashi G. Takaoka | a94c89e | 2014-08-13 23:07:59 +0900 | [diff] [blame] | 263 | <attr name="iconEmojiActionKey" format="reference" /> |
| 264 | <attr name="iconEmojiNormalKey" format="reference" /> |
satok | 4fc510a | 2010-10-01 19:40:44 +0900 | [diff] [blame] | 265 | </declare-styleable> |
| 266 | |
Tadashi G. Takaoka | 2f5a933 | 2013-08-26 13:09:19 +0900 | [diff] [blame] | 267 | <declare-styleable name="Keyboard_GridRows"> |
| 268 | <attr name="codesArray" format="reference" /> |
| 269 | <attr name="textsArray" format="reference" /> |
| 270 | </declare-styleable> |
| 271 | |
Tadashi G. Takaoka | 5a309f5 | 2010-12-02 18:46:21 +0900 | [diff] [blame] | 272 | <declare-styleable name="Keyboard_Key"> |
Tadashi G. Takaoka | ed3bac9 | 2012-04-09 17:48:32 +0900 | [diff] [blame] | 273 | <!-- The alternate unicode value that this key outputs while typing. |
| 274 | Code value represented in hexadecimal prefixed with "0x" or code value reference using |
| 275 | "!code/<code_name>" notation. --> |
| 276 | <attr name="altCode" format="string" /> |
Tadashi G. Takaoka | 9d5601e | 2011-08-31 15:26:32 +0900 | [diff] [blame] | 277 | <!-- The keys to display in the more keys keyboard. --> |
| 278 | <attr name="moreKeys" format="string" /> |
Tadashi G. Takaoka | 15c99e9 | 2012-01-30 11:14:45 +0900 | [diff] [blame] | 279 | <!-- The keys to display in the more keys keyboard in addition to moreKeys. |
| 280 | The additional more keys are inserted at the '%' markers in the moreKeys if any. |
| 281 | They are inserted at the head of moreKeys if none. |
| 282 | If there are remaining entries of additionalMoreKeys even after all '%' markers have |
| 283 | been replaced, those remaining entries are appended at the end of moreKeys. --> |
| 284 | <attr name="additionalMoreKeys" format="string" /> |
Tadashi G. Takaoka | 9d5601e | 2011-08-31 15:26:32 +0900 | [diff] [blame] | 285 | <!-- Maximum column of more keys keyboard --> |
Tadashi G. Takaoka | 7a39bd4 | 2012-02-07 17:07:23 +0900 | [diff] [blame] | 286 | <attr name="maxMoreKeysColumn" format="integer" /> |
Tadashi G. Takaoka | 7918ed0 | 2011-09-15 14:21:46 +0900 | [diff] [blame] | 287 | <attr name="backgroundType" format="enum"> |
| 288 | <!-- This should be aligned with Key.BACKGROUND_TYPE_* --> |
Tadashi G. Takaoka | e18439d | 2013-08-14 17:55:21 +0900 | [diff] [blame] | 289 | <enum name="empty" value="0" /> |
| 290 | <enum name="normal" value="1" /> |
| 291 | <enum name="functional" value="2" /> |
Tadashi G. Takaoka | 017e9f7 | 2014-08-06 17:23:14 +0900 | [diff] [blame] | 292 | <enum name="stickyOff" value="3" /> |
| 293 | <enum name="stickyOn" value="4" /> |
| 294 | <enum name="action" value="5" /> |
Tadashi G. Takaoka | 1c2cf71 | 2014-09-03 10:52:56 +0900 | [diff] [blame] | 295 | <enum name="spacebar" value="6" /> |
Tadashi G. Takaoka | 7918ed0 | 2011-09-15 14:21:46 +0900 | [diff] [blame] | 296 | </attr> |
Tadashi G. Takaoka | 13d5f66 | 2011-11-21 19:55:38 -0800 | [diff] [blame] | 297 | <!-- The key action flags. --> |
| 298 | <attr name="keyActionFlags" format="integer"> |
| 299 | <!-- This should be aligned with Key.ACTION_FLAGS_* --> |
| 300 | <flag name="isRepeatable" value="0x01" /> |
| 301 | <flag name="noKeyPreview" value="0x02" /> |
Tadashi G. Takaoka | 2013bab | 2011-11-30 17:54:58 +0900 | [diff] [blame] | 302 | <flag name="altCodeWhileTyping" value="0x04" /> |
Tadashi G. Takaoka | a5c96f3 | 2012-02-01 15:07:25 +0900 | [diff] [blame] | 303 | <flag name="enableLongPress" value="0x08" /> |
Tadashi G. Takaoka | 13d5f66 | 2011-11-21 19:55:38 -0800 | [diff] [blame] | 304 | </attr> |
Tadashi G. Takaoka | 9684b33 | 2014-02-06 15:11:05 +0900 | [diff] [blame] | 305 | <!-- The label, icon to display on the key. And code, outputText of the key. --> |
| 306 | <attr name="keySpec" format="string" /> |
Tadashi G. Takaoka | 520a297 | 2011-06-25 19:38:55 +0900 | [diff] [blame] | 307 | <!-- The hint label to display on the key in conjunction with the label. --> |
| 308 | <attr name="keyHintLabel" format="string" /> |
Ken Wakasa | 2fa3693 | 2013-12-13 17:09:16 +0900 | [diff] [blame] | 309 | <!-- The vertical adjustment of key hint label in proportion to its height. --> |
| 310 | <attr name="keyHintLabelVerticalAdjustment" format="fraction" /> |
Tadashi G. Takaoka | 13d5f66 | 2011-11-21 19:55:38 -0800 | [diff] [blame] | 311 | <!-- The key label flags. --> |
| 312 | <attr name="keyLabelFlags" format="integer"> |
| 313 | <!-- This should be aligned with Key.LABEL_FLAGS__* --> |
Tadashi G. Takaoka | db77614 | 2014-08-07 23:44:34 +0900 | [diff] [blame] | 314 | <flag name="alignHintLabelToBottom" value="0x02" /> |
Tadashi G. Takaoka | e19c520 | 2014-08-07 12:32:59 +0900 | [diff] [blame] | 315 | <flag name="alignIconToBottom" value="0x04" /> |
Tadashi G. Takaoka | 0b5d12c | 2014-08-07 14:31:47 +0000 | [diff] [blame] | 316 | <flag name="alignLabelOffCenter" value="0x08" /> |
Tadashi G. Takaoka | ab0d0d8 | 2012-04-11 12:34:30 +0900 | [diff] [blame] | 317 | <flag name="fontNormal" value="0x10" /> |
| 318 | <flag name="fontMonoSpace" value="0x20" /> |
Tadashi G. Takaoka | 649de3f | 2014-07-07 16:54:00 +0900 | [diff] [blame] | 319 | <flag name="fontDefault" value="0x30" /> |
Tadashi G. Takaoka | ab0d0d8 | 2012-04-11 12:34:30 +0900 | [diff] [blame] | 320 | <flag name="followKeyLargeLetterRatio" value="0x40" /> |
Tadashi G. Takaoka | 520a297 | 2011-06-25 19:38:55 +0900 | [diff] [blame] | 321 | <flag name="followKeyLetterRatio" value="0x80" /> |
Tadashi G. Takaoka | ab0d0d8 | 2012-04-11 12:34:30 +0900 | [diff] [blame] | 322 | <flag name="followKeyLabelRatio" value="0xC0" /> |
Tadashi G. Takaoka | a08759f | 2012-05-17 19:30:38 +0900 | [diff] [blame] | 323 | <flag name="followKeyHintLabelRatio" value="0x140" /> |
Tadashi G. Takaoka | 520a297 | 2011-06-25 19:38:55 +0900 | [diff] [blame] | 324 | <flag name="hasPopupHint" value="0x200" /> |
Tadashi G. Takaoka | ca2f051 | 2012-01-26 18:03:30 +0900 | [diff] [blame] | 325 | <flag name="hasShiftedLetterHint" value="0x400" /> |
Tadashi G. Takaoka | 520a297 | 2011-06-25 19:38:55 +0900 | [diff] [blame] | 326 | <flag name="hasHintLabel" value="0x800" /> |
Tadashi G. Takaoka | 4486d77 | 2011-09-12 16:29:24 +0900 | [diff] [blame] | 327 | <flag name="autoXScale" value="0x4000" /> |
Ken Wakasa | 2fa3693 | 2013-12-13 17:09:16 +0900 | [diff] [blame] | 328 | <!-- The autoScale value implies autoXScale bit on to optimize scaling code path. --> |
| 329 | <flag name="autoScale" value="0xc000" /> |
Tadashi G. Takaoka | 09f8b12 | 2012-01-25 19:43:13 +0900 | [diff] [blame] | 330 | <!-- If true, character case of code, altCode, moreKeys, keyOutputText, keyLabel, |
| 331 | or keyHintLabel will never be subject to change. --> |
Ken Wakasa | 2fa3693 | 2013-12-13 17:09:16 +0900 | [diff] [blame] | 332 | <flag name="preserveCase" value="0x10000" /> |
Tadashi G. Takaoka | ca2f051 | 2012-01-26 18:03:30 +0900 | [diff] [blame] | 333 | <!-- If true, use keyShiftedLetterHintActivatedColor for the shifted letter hint and |
| 334 | keyTextInactivatedColor for the primary key top label. --> |
Ken Wakasa | 2fa3693 | 2013-12-13 17:09:16 +0900 | [diff] [blame] | 335 | <flag name="shiftedLetterActivated" value="0x20000" /> |
Tadashi G. Takaoka | 7a39bd4 | 2012-02-07 17:07:23 +0900 | [diff] [blame] | 336 | <!-- If true, use EditorInfo.actionLabel for the key label. --> |
Ken Wakasa | 2fa3693 | 2013-12-13 17:09:16 +0900 | [diff] [blame] | 337 | <flag name="fromCustomActionLabel" value="0x40000" /> |
Tadashi G. Takaoka | 37ec0fe | 2014-05-15 15:39:01 +0900 | [diff] [blame] | 338 | <!-- If true, use functionalTextColor instead of ketTextColor to drawing the label on |
| 339 | the key --> |
| 340 | <flag name="followFunctionalTextColor" value="0x80000" /> |
Tadashi G. Takaoka | 486c489 | 2014-09-09 13:05:31 +0900 | [diff] [blame] | 341 | <!-- Keep aspect ratio of key background. --> |
| 342 | <flag name="keepBackgroundAspectRatio" value="0x100000" /> |
Tadashi G. Takaoka | b03529a | 2012-03-12 16:30:59 +0900 | [diff] [blame] | 343 | <!-- If true, disable keyHintLabel. --> |
| 344 | <flag name="disableKeyHintLabel" value="0x40000000" /> |
| 345 | <!-- If true, disable additionalMoreKeys. --> |
| 346 | <flag name="disableAdditionalMoreKeys" value="0x80000000" /> |
Tadashi G. Takaoka | cd39f2a | 2010-11-20 08:03:24 -0800 | [diff] [blame] | 347 | </attr> |
Tadashi G. Takaoka | 42fcb2d | 2011-12-19 01:11:09 +0900 | [diff] [blame] | 348 | <!-- The icon for disabled key --> |
Tadashi G. Takaoka | cf41aff | 2012-04-20 06:24:51 +0900 | [diff] [blame] | 349 | <attr name="keyIconDisabled" format="string" /> |
Tadashi G. Takaoka | 0b60f83 | 2010-11-19 14:57:24 -0800 | [diff] [blame] | 350 | <!-- The key style to specify a set of key attributes defined by <key_style/> --> |
| 351 | <attr name="keyStyle" format="string" /> |
Tadashi G. Takaoka | 5ee2d79 | 2013-01-29 18:30:42 +0900 | [diff] [blame] | 352 | <!-- Visual insets, in the proportion of keyboard width. --> |
| 353 | <attr name="visualInsetsLeft" format="fraction" /> |
| 354 | <attr name="visualInsetsRight" format="fraction" /> |
| 355 | <!-- Width of the key, in the proportion of keyboard width. |
| 356 | If the value is fillRight, the actual key width will be determined to fill out the |
| 357 | area up to the right edge of the keyboard. --> |
Tadashi G. Takaoka | 287f4f8 | 2011-09-26 11:26:38 +0900 | [diff] [blame] | 358 | <!-- This should be aligned with KeyboardBuilder.Row.KEYWIDTH_* --> |
Tadashi G. Takaoka | 5ee2d79 | 2013-01-29 18:30:42 +0900 | [diff] [blame] | 359 | <attr name="keyWidth" format="fraction|enum"> |
Tadashi G. Takaoka | 287f4f8 | 2011-09-26 11:26:38 +0900 | [diff] [blame] | 360 | <enum name="fillRight" value="-1" /> |
Tadashi G. Takaoka | 287f4f8 | 2011-09-26 11:26:38 +0900 | [diff] [blame] | 361 | </attr> |
Tadashi G. Takaoka | 5ee2d79 | 2013-01-29 18:30:42 +0900 | [diff] [blame] | 362 | <!-- The X-coordinate of upper right corner of this key including horizontal gap, in the |
| 363 | proportion of keyboard width. |
Tadashi G. Takaoka | 327763e | 2011-05-30 20:05:50 +0900 | [diff] [blame] | 364 | If the value is negative, the origin is the right edge of the keyboard. --> |
Tadashi G. Takaoka | 5ee2d79 | 2013-01-29 18:30:42 +0900 | [diff] [blame] | 365 | <attr name="keyXPos" format="fraction" /> |
Tadashi G. Takaoka | 749cc18 | 2012-08-30 16:05:40 +0900 | [diff] [blame] | 366 | |
| 367 | <!-- Key top visual attributes --> |
| 368 | <attr name="keyTypeface" format="enum"> |
| 369 | <!-- This should be aligned with Typeface.NORMAL etc. --> |
| 370 | <enum name="normal" value="0" /> |
| 371 | <enum name="bold" value="1" /> |
| 372 | <enum name="italic" value="2" /> |
| 373 | <enum name="boldItalic" value="3" /> |
| 374 | </attr> |
| 375 | <!-- Size of the text for one letter keys. If specified as fraction, the text size is |
| 376 | measured in the proportion of key height. --> |
| 377 | <attr name="keyLetterSize" format="dimension|fraction" /> |
| 378 | <!-- Size of the text for keys with multiple letters. If specified as fraction, the text |
| 379 | size is measured in the proportion of key height. --> |
| 380 | <attr name="keyLabelSize" format="dimension|fraction" /> |
| 381 | <!-- Large size of the text for one letter keys, in the proportion of key height. --> |
| 382 | <attr name="keyLargeLetterRatio" format="fraction" /> |
Tadashi G. Takaoka | 749cc18 | 2012-08-30 16:05:40 +0900 | [diff] [blame] | 383 | <!-- Size of the text for hint letter (= one character hint label), in the proportion of |
| 384 | key height. --> |
| 385 | <attr name="keyHintLetterRatio" format="fraction" /> |
| 386 | <!-- Size of the text for hint label, in the proportion of key height. --> |
| 387 | <attr name="keyHintLabelRatio" format="fraction" /> |
| 388 | <!-- Size of the text for shifted letter hint, in the proportion of key height. --> |
Tadashi G. Takaoka | 71b52a8 | 2012-08-31 10:09:43 +0900 | [diff] [blame] | 389 | <attr name="keyShiftedLetterHintRatio" format="fraction" /> |
Tadashi G. Takaoka | 0b5d12c | 2014-08-07 14:31:47 +0000 | [diff] [blame] | 390 | <!-- The label's horizontal offset to the center of the key. Negative is to left and |
| 391 | positive is to right. The value is in proportion of the width of |
| 392 | TypefaceUtils.KEY_LABEL_REFERENCE_CHAR. --> |
| 393 | <attr name="keyLabelOffCenterRatio" format="fraction" /> |
| 394 | <!-- The hint label's horizontal offset to the center of the key. Negative is to left and |
| 395 | positive is to right. The value is in proportion of the width of |
| 396 | TypefaceUtils.KEY_LABEL_REFERENCE_CHAR. --> |
| 397 | <attr name="keyHintLabelOffCenterRatio" format="fraction" /> |
Tadashi G. Takaoka | 749cc18 | 2012-08-30 16:05:40 +0900 | [diff] [blame] | 398 | <!-- Color to use for the label in a key. --> |
| 399 | <attr name="keyTextColor" format="color" /> |
| 400 | <attr name="keyTextShadowColor" format="color" /> |
Tadashi G. Takaoka | 749cc18 | 2012-08-30 16:05:40 +0900 | [diff] [blame] | 401 | <!-- Color to use for the label in a key when in inactivated state. --> |
| 402 | <attr name="keyTextInactivatedColor" format="color" /> |
Tadashi G. Takaoka | 37ec0fe | 2014-05-15 15:39:01 +0900 | [diff] [blame] | 403 | <!-- Color to use for the label in a key that has followFunctionalTextColor keyLabelFlags. --> |
| 404 | <attr name="functionalTextColor" format="color" /> |
Tadashi G. Takaoka | 749cc18 | 2012-08-30 16:05:40 +0900 | [diff] [blame] | 405 | <!-- Key hint letter (= one character hint label) color --> |
| 406 | <attr name="keyHintLetterColor" format="color" /> |
| 407 | <!-- Key hint label color --> |
| 408 | <attr name="keyHintLabelColor" format="color" /> |
| 409 | <!-- Shifted letter hint colors --> |
| 410 | <attr name="keyShiftedLetterHintInactivatedColor" format="color" /> |
| 411 | <attr name="keyShiftedLetterHintActivatedColor" format="color" /> |
| 412 | |
| 413 | <!-- Key preview visual parameters --> |
| 414 | <!-- The text color for key press feedback. --> |
| 415 | <attr name="keyPreviewTextColor" format="color" /> |
| 416 | <!-- Size of the text for key press feedback popup, in the proportion of key height. --> |
| 417 | <attr name="keyPreviewTextRatio" format="fraction" /> |
satok | 4fc510a | 2010-10-01 19:40:44 +0900 | [diff] [blame] | 418 | </declare-styleable> |
| 419 | |
Tadashi G. Takaoka | 5a309f5 | 2010-12-02 18:46:21 +0900 | [diff] [blame] | 420 | <declare-styleable name="Keyboard_Include"> |
Tadashi G. Takaoka | d663555 | 2010-10-07 17:13:30 +0900 | [diff] [blame] | 421 | <attr name="keyboardLayout" format="reference" /> |
| 422 | </declare-styleable> |
Tadashi G. Takaoka | b046511 | 2010-11-11 15:28:14 -0800 | [diff] [blame] | 423 | |
Tadashi G. Takaoka | 5a309f5 | 2010-12-02 18:46:21 +0900 | [diff] [blame] | 424 | <declare-styleable name="Keyboard_Case"> |
Tadashi G. Takaoka | 41745c4 | 2013-08-29 09:50:45 +0900 | [diff] [blame] | 425 | <attr name="keyboardLayoutSet" format="string" /> |
Tadashi G. Takaoka | 11d9ee7 | 2012-04-04 14:30:42 +0900 | [diff] [blame] | 426 | <!-- This should be aligned with KeyboardLayoutSet_Element's elementName. --> |
| 427 | <attr name="keyboardLayoutSetElement" format="enum|string"> |
Tadashi G. Takaoka | 83306b9 | 2012-01-25 13:14:59 +0900 | [diff] [blame] | 428 | <enum name="alphabet" value="0" /> |
| 429 | <enum name="alphabetManualShifted" value="1" /> |
| 430 | <enum name="alphabetAutomaticShifted" value="2" /> |
| 431 | <enum name="alphabetShiftLocked" value="3" /> |
| 432 | <enum name="alphabetShiftLockShifted" value="4" /> |
| 433 | <enum name="symbols" value="5" /> |
Satoshi Kataoka | e315066 | 2013-09-04 03:57:04 +0000 | [diff] [blame] | 434 | <enum name="symbolsShifted" value="6" /> |
Tadashi G. Takaoka | 83306b9 | 2012-01-25 13:14:59 +0900 | [diff] [blame] | 435 | <enum name="phone" value="7" /> |
Tadashi G. Takaoka | a5c96f3 | 2012-02-01 15:07:25 +0900 | [diff] [blame] | 436 | <enum name="phoneSymbols" value="8" /> |
Tadashi G. Takaoka | 83306b9 | 2012-01-25 13:14:59 +0900 | [diff] [blame] | 437 | <enum name="number" value="9" /> |
Tadashi G. Takaoka | 68b990e | 2013-08-26 12:27:38 +0900 | [diff] [blame] | 438 | <enum name="emojiRecents" value="10" /> |
| 439 | <enum name="emojiCategory1" value="11" /> |
| 440 | <enum name="emojiCategory2" value="12" /> |
| 441 | <enum name="emojiCategory3" value="13" /> |
| 442 | <enum name="emojiCategory4" value="14" /> |
| 443 | <enum name="emojiCategory5" value="15" /> |
| 444 | <enum name="emojiCategory6" value="16" /> |
Tadashi G. Takaoka | 83306b9 | 2012-01-25 13:14:59 +0900 | [diff] [blame] | 445 | </attr> |
Tadashi G. Takaoka | 0af2472 | 2014-09-03 10:52:56 +0900 | [diff] [blame] | 446 | <!-- This should be aligned with Keyboard.themeId and KeyboardTheme.THEME_ID_* --> |
| 447 | <attr name="keyboardTheme" format="enum|string"> |
| 448 | <enum name="ICS" value="0" /> |
| 449 | <enum name="KLP" value="2" /> |
| 450 | <enum name="LXXLight" value="3" /> |
| 451 | <enum name="LXXDark" value="4" /> |
| 452 | </attr> |
Tadashi G. Takaoka | 5a309f5 | 2010-12-02 18:46:21 +0900 | [diff] [blame] | 453 | <!-- This should be aligned with KeyboardId.MODE_* --> |
Tadashi G. Takaoka | 5859205 | 2011-06-03 02:18:57 +0900 | [diff] [blame] | 454 | <attr name="mode" format="enum|string"> |
Tadashi G. Takaoka | cd39f2a | 2010-11-20 08:03:24 -0800 | [diff] [blame] | 455 | <enum name="text" value="0" /> |
| 456 | <enum name="url" value="1" /> |
| 457 | <enum name="email" value="2" /> |
| 458 | <enum name="im" value="3" /> |
Tadashi G. Takaoka | 9e2d810 | 2011-05-27 21:41:13 +0900 | [diff] [blame] | 459 | <enum name="phone" value="4" /> |
| 460 | <enum name="number" value="5" /> |
Tadashi G. Takaoka | 1d8196c | 2010-11-19 14:57:24 -0800 | [diff] [blame] | 461 | </attr> |
Tadashi G. Takaoka | 05bfd18 | 2012-02-16 23:14:14 -0800 | [diff] [blame] | 462 | <attr name="navigateNext" format="boolean" /> |
| 463 | <attr name="navigatePrevious" format="boolean" /> |
Tadashi G. Takaoka | 4b13b4f | 2011-02-20 12:54:14 +0900 | [diff] [blame] | 464 | <attr name="passwordInput" format="boolean" /> |
Tadashi G. Takaoka | cd96a69 | 2011-06-23 21:55:56 +0900 | [diff] [blame] | 465 | <attr name="clobberSettingsKey" format="boolean" /> |
Tadashi G. Takaoka | c3afe2c | 2011-07-31 18:34:54 -0700 | [diff] [blame] | 466 | <attr name="hasShortcutKey" format="boolean" /> |
Tadashi G. Takaoka | 81d4e3c | 2012-02-17 17:46:01 -0800 | [diff] [blame] | 467 | <attr name="languageSwitchKeyEnabled" format="boolean" /> |
Tadashi G. Takaoka | 7a39bd4 | 2012-02-07 17:07:23 +0900 | [diff] [blame] | 468 | <attr name="isMultiLine" format="boolean" /> |
Tadashi G. Takaoka | 5859205 | 2011-06-03 02:18:57 +0900 | [diff] [blame] | 469 | <attr name="imeAction" format="enum"> |
Tadashi G. Takaoka | 6624fd8 | 2010-11-19 16:04:52 -0800 | [diff] [blame] | 470 | <!-- This should be aligned with EditorInfo.IME_ACTION_* --> |
Tadashi G. Takaoka | 5859205 | 2011-06-03 02:18:57 +0900 | [diff] [blame] | 471 | <enum name="actionUnspecified" value="0" /> |
| 472 | <enum name="actionNone" value="1" /> |
| 473 | <enum name="actionGo" value="2" /> |
| 474 | <enum name="actionSearch" value="3" /> |
| 475 | <enum name="actionSend" value="4" /> |
| 476 | <enum name="actionNext" value="5" /> |
| 477 | <enum name="actionDone" value="6" /> |
| 478 | <enum name="actionPrevious" value="7" /> |
Tadashi G. Takaoka | 7a39bd4 | 2012-02-07 17:07:23 +0900 | [diff] [blame] | 479 | <!-- This should be aligned with KeyboardId.IME_ACTION_* --> |
| 480 | <enum name="actionCustomLabel" value="0x100" /> |
Tadashi G. Takaoka | 6624fd8 | 2010-11-19 16:04:52 -0800 | [diff] [blame] | 481 | </attr> |
Tadashi G. Takaoka | 1c8e069 | 2014-05-12 18:50:51 +0900 | [diff] [blame] | 482 | <attr name="isIconDefined" format="string" /> |
Tadashi G. Takaoka | 5859205 | 2011-06-03 02:18:57 +0900 | [diff] [blame] | 483 | <attr name="localeCode" format="string" /> |
Tadashi G. Takaoka | ea6c2e3 | 2011-02-18 15:33:44 +0900 | [diff] [blame] | 484 | <attr name="languageCode" format="string" /> |
Tadashi G. Takaoka | 912ade3 | 2011-02-23 17:09:24 +0900 | [diff] [blame] | 485 | <attr name="countryCode" format="string" /> |
Sandeep Siddhartha | 9c31e8f | 2014-09-09 16:21:35 +0900 | [diff] [blame^] | 486 | <!-- Enable split keyboard layout. Disabled by default. --> |
| 487 | <attr name="isSplitLayout" format="boolean" /> |
Tadashi G. Takaoka | b046511 | 2010-11-11 15:28:14 -0800 | [diff] [blame] | 488 | </declare-styleable> |
Tadashi G. Takaoka | 0b60f83 | 2010-11-19 14:57:24 -0800 | [diff] [blame] | 489 | |
Tadashi G. Takaoka | 5a309f5 | 2010-12-02 18:46:21 +0900 | [diff] [blame] | 490 | <declare-styleable name="Keyboard_KeyStyle"> |
Tadashi G. Takaoka | 0b60f83 | 2010-11-19 14:57:24 -0800 | [diff] [blame] | 491 | <attr name="styleName" format="string" /> |
| 492 | <attr name="parentStyle" format="string" /> |
| 493 | </declare-styleable> |
Tadashi G. Takaoka | a619673 | 2011-06-16 17:20:29 +0900 | [diff] [blame] | 494 | |
Tadashi G. Takaoka | 11d9ee7 | 2012-04-04 14:30:42 +0900 | [diff] [blame] | 495 | <declare-styleable name="KeyboardLayoutSet_Element"> |
Tadashi G. Takaoka | f86109c | 2011-12-13 17:30:51 +0900 | [diff] [blame] | 496 | <!-- This should be aligned with KeyboardId.ELEMENT_* --> |
| 497 | <attr name="elementName" format="enum"> |
Tadashi G. Takaoka | 117c124 | 2012-01-24 18:03:50 +0900 | [diff] [blame] | 498 | <enum name="alphabet" value="0" /> |
| 499 | <enum name="alphabetManualShifted" value="1" /> |
| 500 | <enum name="alphabetAutomaticShifted" value="2" /> |
| 501 | <enum name="alphabetShiftLocked" value="3" /> |
| 502 | <enum name="alphabetShiftLockShifted" value="4" /> |
| 503 | <enum name="symbols" value="5" /> |
Satoshi Kataoka | e315066 | 2013-09-04 03:57:04 +0000 | [diff] [blame] | 504 | <enum name="symbolsShifted" value="6" /> |
Tadashi G. Takaoka | 117c124 | 2012-01-24 18:03:50 +0900 | [diff] [blame] | 505 | <enum name="phone" value="7" /> |
Tadashi G. Takaoka | a5c96f3 | 2012-02-01 15:07:25 +0900 | [diff] [blame] | 506 | <enum name="phoneSymbols" value="8" /> |
Tadashi G. Takaoka | 117c124 | 2012-01-24 18:03:50 +0900 | [diff] [blame] | 507 | <enum name="number" value="9" /> |
Tadashi G. Takaoka | 68b990e | 2013-08-26 12:27:38 +0900 | [diff] [blame] | 508 | <enum name="emojiRecents" value="10" /> |
| 509 | <enum name="emojiCategory1" value="11" /> |
| 510 | <enum name="emojiCategory2" value="12" /> |
| 511 | <enum name="emojiCategory3" value="13" /> |
| 512 | <enum name="emojiCategory4" value="14" /> |
| 513 | <enum name="emojiCategory5" value="15" /> |
| 514 | <enum name="emojiCategory6" value="16" /> |
Tadashi G. Takaoka | f86109c | 2011-12-13 17:30:51 +0900 | [diff] [blame] | 515 | </attr> |
Tadashi G. Takaoka | 117c124 | 2012-01-24 18:03:50 +0900 | [diff] [blame] | 516 | <attr name="elementKeyboard" format="reference"/> |
Tadashi G. Takaoka | 8dcad2e | 2012-03-28 17:33:25 +0900 | [diff] [blame] | 517 | <!-- Enable proximity characters correction. Disabled by default. --> |
| 518 | <attr name="enableProximityCharsCorrection" format="boolean" /> |
Sandeep Siddhartha | 3939455 | 2014-09-10 10:32:24 +0900 | [diff] [blame] | 519 | <!-- Indicates if the keyboard layout supports being split or not. false by default --> |
| 520 | <attr name="supportsSplitLayout" format="boolean" /> |
Tadashi G. Takaoka | f86109c | 2011-12-13 17:30:51 +0900 | [diff] [blame] | 521 | </declare-styleable> |
Tadashi G. Takaoka | 2df0cf2 | 2013-01-18 16:47:49 +0900 | [diff] [blame] | 522 | |
Jean Chalard | aca2ef8 | 2014-06-26 16:20:59 +0900 | [diff] [blame] | 523 | <declare-styleable name="KeyboardLayoutSet_Feature"> |
| 524 | <!-- This should be aligned with ScriptUtils.SCRIPT_* --> |
| 525 | <attr name="supportedScript" format="enum"> |
Jean Chalard | ae4e203 | 2014-07-30 15:56:56 +0900 | [diff] [blame] | 526 | <enum name="arabic" value="0" /> |
| 527 | <enum name="armenian" value="1" /> |
| 528 | <enum name="bengali" value="2" /> |
| 529 | <enum name="cyrillic" value="3" /> |
| 530 | <enum name="devanagari" value="4" /> |
| 531 | <enum name="georgian" value="5" /> |
| 532 | <enum name="greek" value="6" /> |
| 533 | <enum name="hebrew" value="7" /> |
| 534 | <enum name="kannada" value="8" /> |
| 535 | <enum name="khmer" value="9" /> |
| 536 | <enum name="lao" value="10" /> |
| 537 | <enum name="latin" value="11" /> |
| 538 | <enum name="malayalam" value="12" /> |
| 539 | <enum name="myanmar" value="13" /> |
| 540 | <enum name="sinhala" value="14" /> |
Jean Chalard | 3a729d4 | 2014-07-30 13:01:44 +0900 | [diff] [blame] | 541 | <enum name="tamil" value="15" /> |
Jean Chalard | ae4e203 | 2014-07-30 15:56:56 +0900 | [diff] [blame] | 542 | <enum name="telugu" value="16" /> |
| 543 | <enum name="thai" value="17" /> |
Jean Chalard | aca2ef8 | 2014-06-26 16:20:59 +0900 | [diff] [blame] | 544 | </attr> |
| 545 | </declare-styleable> |
| 546 | |
Tadashi G. Takaoka | 2df0cf2 | 2013-01-18 16:47:49 +0900 | [diff] [blame] | 547 | <declare-styleable name="SeekBarDialogPreference"> |
Tadashi G. Takaoka | 2df0cf2 | 2013-01-18 16:47:49 +0900 | [diff] [blame] | 548 | <attr name="maxValue" format="integer" /> |
Tadashi G. Takaoka | c053293 | 2013-01-22 12:32:04 +0900 | [diff] [blame] | 549 | <attr name="minValue" format="integer" /> |
| 550 | <attr name="stepValue" format="integer" /> |
Tadashi G. Takaoka | 2df0cf2 | 2013-01-18 16:47:49 +0900 | [diff] [blame] | 551 | </declare-styleable> |
satok | 979f869 | 2010-08-20 14:35:02 +0900 | [diff] [blame] | 552 | </resources> |