1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
|
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2010 Android Open Source Project
Copyright (C) 2013 Menny Even-Danan
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<resources>
<declare-styleable name="AnyKeyboardViewTheme">
<!-- Image for the key. This image needs to be a StateListDrawable, with the following
possible states: normal, pressed, checkable, checkable+pressed, checkable+checked,
checkable+checked+pressed. -->
<attr name="keyBackground" format="reference"/>
<!-- Size of the text for character keys. -->
<attr name="keyTextSize" format="reference|dimension"/>
<!-- Size of the text for custom keys with some text and no icon. -->
<attr name="labelTextSize" format="reference|dimension"/>
<!-- Color to use for the label in a key. -->
<attr name="keyTextColor" format="reference|color"/>
<!-- size of different keys height -->
<attr name="keyNormalHeight" format="reference|dimension"/>
<attr name="keySmallHeight" format="reference|dimension"/>
<attr name="keyLargeHeight" format="reference|dimension"/>
<attr name="keyHorizontalGap" format="reference|dimension"/>
<attr name="keyVerticalGap" format="reference|dimension"/>
<!-- Vertical offset of the key press feedback from the key. -->
<attr name="keyPreviewOffset" format="reference|dimension"/>
<attr name="keyPreviewBackground" format="reference"/>
<attr name="keyPreviewTextSize" format="reference|dimension"/>
<attr name="keyPreviewTextColor" format="reference|color"/>
<attr name="keyPreviewLabelTextSize" format="reference|dimension"/>
<!-- Hysteresis distance for key debouncing -->
<attr name="keyHysteresisDistance" format="reference|dimension"/>
<!-- Amount to offset the touch Y coordinate by, for bias correction. -->
<attr name="verticalCorrection" format="reference|dimension"/>
<attr name="shadowColor" format="reference|color"/>
<attr name="shadowRadius" format="reference|dimension"/>
<attr name="shadowOffsetX" format="reference|dimension"/>
<attr name="shadowOffsetY" format="reference|dimension"/>
<attr name="backgroundDimAmount" format="reference|float"/>
<attr name="keyTextStyle">
<flag name="normal" value="0"/>
<flag name="bold" value="1"/>
<flag name="italic" value="2"/>
</attr>
<attr name="keyTextCaseStyle">
<flag name="auto" value="0"/>
<flag name="lowercase" value="1"/>
<flag name="uppercase" value="2"/>
</attr>
<attr name="symbolColorScheme">
<flag name="white" value="0"/>
<flag name="black" value="1"/>
</attr>
<attr name="android:background"/>
<attr name="android:paddingLeft"/>
<attr name="android:paddingTop"/>
<attr name="android:paddingRight"/>
<attr name="android:paddingBottom"/>
<attr name="suggestionNormalTextColor" format="reference|color"/>
<attr name="suggestionRecommendedTextColor" format="reference|color"/>
<attr name="suggestionOthersTextColor" format="reference|color"/>
<attr name="suggestionTextSize" format="reference|dimension"/>
<attr name="suggestionBackgroundImage" format="reference"/>
<attr name="suggestionDividerImage" format="reference"/>
<attr name="suggestionCloseImage" format="reference"/>
<attr name="suggestionStripHeight" format="reference|dimension"/>
<!-- Size of the text for hinting about long press output. -->
<attr name="hintTextSize" format="reference|dimension"/>
<!-- Color to use for hint text. -->
<attr name="hintTextColor" format="reference|color"/>
<!-- Size of the text for the prefered word. -->
<attr name="suggestionPreferedWordTextSize" format="reference|dimension"/>
<!-- vertical padding. -->
<attr name="suggestionWordXGap" format="reference|dimension"/>
<!-- location of hint labels -->
<attr name="hintLabelAlign">
<flag name="left" value="3"/>
<flag name="center" value="17"/>
<flag name="right" value="5"/>
</attr>
<attr name="hintLabelVAlign">
<flag name="top" value="48"/>
<flag name="bottom" value="80"/>
<!-- currently not supported -->
<flag name="center" value="17"/>
</attr>
<!-- hint label to use when hintLabel unspecified and more than 3 characters in -->
<!-- popupCharacters or when longPressCode instead of popupCharacters -->
<!-- (if none specified, app default used) -->
<attr name="hintOverflowLabel" format="reference|string"/>
<!-- FOR FUTURE EXPANSION - NOT YET SUPPORTED -->
<!-- hint icon to use when no hintLabel given and more than 3 characters in popupCharacters -->
<!-- or when longPressCode instead of popupCharacters (if not specified, app default used) -->
<!-- if both icon and label specified, icon wins -->
<attr name="hintOverflowIcon" format="reference"/>
<!-- allow the key to have another hint to show that there are more characters in -->
<!-- popupCharacters than shown by the hint label (if not specified, none used) -->
<attr name="extraHintLabel" format="reference|string"/>
<attr name="extraHintIcon" format="reference"/>
<attr name="extraHintLabelAlign">
<flag name="left" value="3"/>
<flag name="center" value="17"/>
<flag name="right" value="5"/>
</attr>
<attr name="extraHintLabelVAlign">
<flag name="top" value="48"/>
<flag name="bottom" value="80"/>
<!-- less likely to support... -->
<flag name="center" value="17"/>
</attr>
<!-- allow main key label/icon to be in different positions -->
<!-- behavior before implemented: keyLabelIconAlign="center" keyLabelIconVAlign="auto" -->
<attr name="keyLabelIconAlign">
<!-- against left or right edge of key -->
<flag name="left" value="3"/>
<flag name="right" value="5"/>
<!-- horizontally centered at center of key (adjusted only for key padding) -->
<flag name="center" value="17"/>
<!-- centered, but also adjust position to account for hint label location -->
<flag name="auto" value="7"/>
</attr>
<attr name="keyLabelIconVAlign">
<!-- against top or bottom edge of key -->
<flag name="top" value="48"/>
<flag name="bottom" value="80"/>
<!-- vertically centered at center of key (adjusted only for key padding) -->
<flag name="center" value="17"/>
<!-- centered, but also adjust position to account for hint label location -->
<flag name="auto" value="112"/>
</attr>
<!-- expected behavior if showHintOnPreview="false" and showExtraHintOnPreview="true" -->
<!-- is that extra hint is shown if any long press or popupCharacters for key -->
<!-- keyboard wallpaper - this is the image BEHIND the keyboard, it is visible when switching layout with animation -->
<attr name="keyboardWallpaper" format="reference"/>
<attr name="keyboardNameTextSize" format="reference|dimension"/>
<attr name="keyboardNameTextColor" format="reference|color"/>
<attr name="previewGestureTextSize" format="reference|dimension"/>
<attr name="previewGestureTextColor" format="reference|color"/>
<!-- show hint and/or extra hint on preview -->
<attr name="showHintOnPreview" format="reference|boolean"/>
<attr name="showExtraHintOnPreview" format="reference|boolean"/>
<attr name="previewAnimationType">
<flag name="none" value="0"/>
<!--default value-->
<flag name="extend_key" value="1"/>
<flag name="appear" value="2"/>
</attr>
<attr name="swipeTypingColor" format="reference|color"/>
<attr name="swipeTypingStrokeWidth" format="reference|dimension"/>
<attr name="swipeTypingStrokeMinWidth" format="reference|dimension"/>
<attr name="swipeTypingStrokeWidthStep" format="reference|dimension"/>
<attr name="swipeTypingStrokeMinAlpha" format="reference|float"/>
<attr name="swipeTypingStrokeAlphaStep" format="reference|integer"/>
<attr name="swipeTypingShadowColor" format="reference|color"/>
<attr name="swipeTypingShadowRadius" format="reference|dimension"/>
<attr name="swipeTypingShadowOffsetX" format="reference|dimension"/>
<attr name="swipeTypingShadowOffsetY" format="reference|dimension"/>
</declare-styleable>
<declare-styleable name="AnyKeyboardViewIconsTheme">
<!-- should support normal, android:state_pressed, key_type_feedback, android:state_pressed+key_type_feedback, android:state_checked, state_checked+key_type_feedback -->
<attr name="iconKeyShift" format="reference"/>
<!-- should support normal, android:state_pressed, key_type_feedback, android:state_pressed+key_type_feedback, android:state_checked, state_checked+key_type_feedback -->
<attr name="iconKeyControl" format="reference"/>
<!-- should support normal, key_type_feedback -->
<attr name="iconKeyBackspace" format="reference"/>
<!-- should support normal, key_type_feedback -->
<attr name="iconKeySpace" format="reference"/>
<!-- should support normal, key_type_feedback -->
<attr name="iconKeyTab" format="reference"/>
<!-- should support normal, key_type_feedback -->
<attr name="iconKeyCancel" format="reference"/>
<!-- should support normal, key_type_feedback -->
<attr name="iconKeyGlobe" format="reference"/>
<!-- should support normal, key_type_feedback, action_done, action_done+key_type_feedback, action_search, action_search+key_type_feedback, action_go, action_go+key_type_feedback -->
<attr name="iconKeyAction" format="reference"/>
<!-- should support normal, key_type_feedback -->
<attr name="iconKeyArrowRight" format="reference"/>
<!-- should support normal, key_type_feedback -->
<attr name="iconKeyArrowLeft" format="reference"/>
<!-- should support normal, key_type_feedback -->
<attr name="iconKeyArrowUp" format="reference"/>
<!-- should support normal, key_type_feedback -->
<attr name="iconKeyArrowDown" format="reference"/>
<!-- should support normal, key_type_feedback -->
<attr name="iconKeyMic" format="reference"/>
<!-- should support normal, key_type_feedback -->
<attr name="iconKeySettings" format="reference"/>
<!-- should support normal, key_type_feedback -->
<attr name="iconKeyInputClear" format="reference"/>
<!-- should support normal, key_type_feedback -->
<attr name="iconKeyInputSelectAll" format="reference"/>
<!-- should support normal, key_type_feedback -->
<attr name="iconKeyInputClipboardCopy" format="reference"/>
<!-- should support normal, key_type_feedback -->
<attr name="iconKeyInputClipboardCut" format="reference"/>
<!-- should support normal, key_type_feedback -->
<attr name="iconKeyInputClipboardPaste" format="reference"/>
<!-- should support normal, key_type_feedback -->
<attr name="iconKeyInputMoveEnd" format="reference"/>
<!-- should support normal, key_type_feedback -->
<attr name="iconKeyInputMoveHome" format="reference"/>
<!-- should support normal, key_type_feedback -->
<attr name="iconKeyCondenseNormal" format="reference"/>
<!-- should support normal, key_type_feedback -->
<attr name="iconKeyCondenseSplit" format="reference"/>
<!-- should support normal, key_type_feedback -->
<attr name="iconKeyCondenseCompactToRight" format="reference"/>
<!-- should support normal, key_type_feedback -->
<attr name="iconKeyCondenseCompactToLeft" format="reference"/>
<!-- should support normal, key_type_feedback -->
<attr name="iconKeyClipboardCopy" format="reference"/>
<!-- should support normal, key_type_feedback -->
<attr name="iconKeyClipboardCut" format="reference"/>
<!-- should support normal, key_type_feedback -->
<attr name="iconKeyClipboardPaste" format="reference"/>
<!-- should support normal, key_type_feedback -->
<attr name="iconKeyClipboardSelect" format="reference"/>
<!-- should support normal, key_type_feedback -->
<attr name="iconKeyClipboardFineSelect" format="reference"/>
<!-- should support normal, key_type_feedback -->
<attr name="iconKeyQuickText" format="reference"/>
<!-- should support normal, key_type_feedback -->
<attr name="iconKeyUndo" format="reference"/>
<!-- should support normal, key_type_feedback -->
<attr name="iconKeyRedo" format="reference"/>
<!-- should support normal, key_type_feedback -->
<attr name="iconKeyForwardDelete" format="reference"/>
<!-- should support normal, key_type_feedback -->
<attr name="iconKeyImageInsert" format="reference"/>
</declare-styleable>
</resources>
|