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