• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2010 The Android Open Source Project
3
4     Licensed under the Apache License, Version 2.0 (the "License");
5     you may not use this file except in compliance with the License.
6     You may obtain a copy of the License at
7
8          http://www.apache.org/licenses/LICENSE-2.0
9
10     Unless required by applicable law or agreed to in writing, software
11     distributed under the License is distributed on an "AS IS" BASIS,
12     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13     See the License for the specific language governing permissions and
14     limitations under the License.
15-->
16
17<resources xmlns:android="http://schemas.android.com/apk/res/android">
18    <!-- Theme "Basic" -->
19    <style name="Keyboard">
20        <!-- This should be aligned with KeyboardSwitcher.KEYBOARD_THEMES[] -->
21        <item name="themeId">0</item>
22        <item name="touchPositionCorrectionData">@array/touch_position_correction_data_default</item>
23        <item name="rowHeight">25%p</item>
24        <item name="keyboardHeight">@dimen/keyboardHeight</item>
25        <item name="maxKeyboardHeight">@fraction/maxKeyboardHeight</item>
26        <item name="minKeyboardHeight">@fraction/minKeyboardHeight</item>
27        <item name="moreKeysTemplate">@xml/kbd_more_keys_keyboard_template</item>
28        <item name="keyboardTopPadding">@fraction/keyboard_top_padding</item>
29        <item name="keyboardBottomPadding">@fraction/keyboard_bottom_padding</item>
30        <item name="keyboardHorizontalEdgesPadding">@fraction/keyboard_horizontal_edges_padding</item>
31        <item name="horizontalGap">@fraction/key_horizontal_gap</item>
32        <item name="verticalGap">@fraction/key_bottom_gap</item>
33        <item name="maxMoreKeysColumn">@integer/config_max_more_keys_column</item>
34    </style>
35    <style name="KeyboardView">
36        <item name="android:background">@drawable/keyboard_background</item>
37        <item name="keyBackground">@drawable/btn_keyboard_key</item>
38        <item name="keyLetterSize">@fraction/key_letter_ratio</item>
39        <item name="keyLargeLetterRatio">@fraction/key_large_letter_ratio</item>
40        <item name="keyLabelSize">@fraction/key_label_ratio</item>
41        <item name="keyLargeLabelRatio">@fraction/key_large_label_ratio</item>
42        <item name="keyHintLetterRatio">@fraction/key_hint_letter_ratio</item>
43        <item name="keyHintLabelRatio">@fraction/key_hint_label_ratio</item>
44        <item name="keyShiftedLetterHintRatio">@fraction/key_uppercase_letter_ratio</item>
45        <item name="keyTypeface">normal</item>
46        <item name="keyTextColor">#FFFFFFFF</item>
47        <item name="keyTextInactivatedColor">#FFFFFFFF</item>
48        <item name="keyHintLetterColor">#80000000</item>
49        <item name="keyHintLabelColor">#E0E0E4E5</item>
50        <item name="keyShiftedLetterHintInactivatedColor">#66E0E4E5</item>
51        <item name="keyShiftedLetterHintActivatedColor">#CCE0E4E5</item>
52        <item name="keyLabelHorizontalPadding">@dimen/key_label_horizontal_padding</item>
53        <item name="keyHintLetterPadding">@dimen/key_hint_letter_padding</item>
54        <item name="keyPopupHintLetterPadding">@dimen/key_popup_hint_letter_padding</item>
55        <item name="keyShiftedLetterHintPadding">@dimen/key_uppercase_letter_padding</item>
56        <item name="keyPreviewLayout">@layout/key_preview</item>
57        <item name="keyPreviewTextColor">#FFFFFFFF</item>
58        <item name="keyPreviewOffset">@dimen/key_preview_offset</item>
59        <item name="keyPreviewHeight">@dimen/key_preview_height</item>
60        <item name="keyPreviewTextRatio">@fraction/key_preview_text_ratio</item>
61        <item name="keyPreviewLingerTimeout">@integer/config_key_preview_linger_timeout</item>
62        <item name="moreKeysLayout">@layout/more_keys_keyboard</item>
63        <item name="verticalCorrection">@dimen/keyboard_vertical_correction</item>
64        <item name="keyTextShadowColor">#BB000000</item>
65        <item name="keyTextShadowRadius">2.75</item>
66        <item name="backgroundDimAlpha">128</item>
67        <!-- android:color/holo_blue_light=#FF33B5E5 -->
68        <item name="gestureFloatingPreviewTextSize">@dimen/gesture_floating_preview_text_size</item>
69        <item name="gestureFloatingPreviewTextColor">@android:color/holo_blue_light</item>
70        <item name="gestureFloatingPreviewTextOffset">@dimen/gesture_floating_preview_text_offset</item>
71        <item name="gestureFloatingPreviewColor">#C0000000</item>
72        <item name="gestureFloatingPreviewHorizontalPadding">@dimen/gesture_floating_preview_horizontal_padding</item>
73        <item name="gestureFloatingPreviewVerticalPadding">@dimen/gesture_floating_preview_vertical_padding</item>
74        <item name="gestureFloatingPreviewRoundRadius">@dimen/gesture_floating_preview_round_radius</item>
75        <item name="gestureFloatingPreviewTextLingerTimeout">@integer/config_gesture_floating_preview_text_linger_timeout</item>
76        <item name="gesturePreviewTrailFadeoutStartDelay">@integer/config_gesture_preview_trail_fadeout_start_delay</item>
77        <item name="gesturePreviewTrailFadeoutDuration">@integer/config_gesture_preview_trail_fadeout_duration</item>
78        <item name="gesturePreviewTrailUpdateInterval">@integer/config_gesture_preview_trail_update_interval</item>
79        <item name="gesturePreviewTrailColor">@android:color/holo_blue_light</item>
80        <item name="gesturePreviewTrailStartWidth">@dimen/gesture_preview_trail_start_width</item>
81        <item name="gesturePreviewTrailEndWidth">@dimen/gesture_preview_trail_end_width</item>
82        <!-- Common attributes of MainKeyboardView -->
83        <item name="keyHysteresisDistance">@dimen/config_key_hysteresis_distance</item>
84        <item name="keyHysteresisDistanceForSlidingModifier">@dimen/config_key_hysteresis_distance_for_sliding_modifier</item>
85        <item name="touchNoiseThresholdTime">@integer/config_touch_noise_threshold_time</item>
86        <item name="touchNoiseThresholdDistance">@dimen/config_touch_noise_threshold_distance</item>
87        <item name="slidingKeyInputEnable">@bool/config_sliding_key_input_enabled</item>
88        <item name="keyRepeatStartTimeout">@integer/config_key_repeat_start_timeout</item>
89        <item name="keyRepeatInterval">@integer/config_key_repeat_interval</item>
90        <item name="longPressKeyTimeout">@integer/config_long_press_key_timeout</item>
91        <item name="longPressShiftKeyTimeout">@integer/config_long_press_shift_key_timeout</item>
92        <item name="ignoreAltCodeKeyTimeout">@integer/config_ignore_alt_code_key_timeout</item>
93        <item name="showMoreKeysKeyboardAtTouchedPoint">@bool/config_show_more_keys_keyboard_at_touched_point</item>
94        <item name="languageOnSpacebarFinalAlpha">@integer/config_language_on_spacebar_final_alpha</item>
95        <item name="languageOnSpacebarFadeoutAnimator">@anim/language_on_spacebar_fadeout</item>
96        <item name="altCodeKeyWhileTypingFadeoutAnimator">@anim/alt_code_key_while_typing_fadeout</item>
97        <item name="altCodeKeyWhileTypingFadeinAnimator">@anim/alt_code_key_while_typing_fadein</item>
98        <!-- Common attributes of MainKeyboardView for gesture typing detection and recognition -->
99        <item name="gestureStaticTimeThresholdAfterFastTyping">@integer/config_gesture_static_time_threshold_after_fast_typing</item>
100        <item name="gestureDetectFastMoveSpeedThreshold">@fraction/config_gesture_detect_fast_move_speed_threshold</item>
101        <item name="gestureDynamicThresholdDecayDuration">@integer/config_gesture_dynamic_threshold_decay_duration</item>
102        <item name="gestureDynamicTimeThresholdFrom">@integer/config_gesture_dynamic_time_threshold_from</item>
103        <item name="gestureDynamicTimeThresholdTo">@integer/config_gesture_dynamic_time_threshold_to</item>
104        <item name="gestureDynamicDistanceThresholdFrom">@fraction/config_gesture_dynamic_distance_threshold_from</item>
105        <item name="gestureDynamicDistanceThresholdTo">@fraction/config_gesture_dynamic_distance_threshold_to</item>
106        <item name="gestureSamplingMinimumDistance">@fraction/config_gesture_sampling_minimum_distance</item>
107        <item name="gestureRecognitionMinimumTime">@integer/config_gesture_recognition_minimum_time</item>
108        <item name="gestureRecognitionSpeedThreshold">@fraction/config_gesture_recognition_speed_threshold</item>
109        <item name="suppressKeyPreviewAfterBatchInputDuration">@integer/config_suppress_key_preview_after_batch_input_duration</item>
110    </style>
111    <style
112        name="MainKeyboardView"
113        parent="KeyboardView">
114        <item name="autoCorrectionSpacebarLedEnabled">true</item>
115        <item name="autoCorrectionSpacebarLedIcon">@drawable/sym_keyboard_space_led</item>
116        <item name="spacebarTextRatio">@fraction/spacebar_text_ratio</item>
117        <item name="spacebarTextColor">#FFC0C0C0</item>
118        <item name="spacebarTextShadowColor">#80000000</item>
119    </style>
120    <style
121        name="MoreKeysKeyboard"
122        parent="Keyboard"
123    >
124        <item name="keyboardTopPadding">0dp</item>
125        <item name="keyboardBottomPadding">0dp</item>
126        <item name="horizontalGap">0dp</item>
127    </style>
128    <style
129        name="MoreKeysKeyboardView"
130        parent="KeyboardView"
131    >
132        <item name="keyBackground">@drawable/btn_keyboard_key_popup</item>
133        <item name="verticalCorrection">@dimen/more_keys_keyboard_vertical_correction</item>
134    </style>
135    <style name="MoreKeysKeyboardPanelStyle">
136        <item name="android:background">@drawable/keyboard_popup_panel_background</item>
137    </style>
138    <style name="SuggestionsStripBackgroundStyle">
139        <item name="android:background">@drawable/keyboard_suggest_strip</item>
140    </style>
141    <style
142        name="SuggestionStripViewStyle"
143        parent="SuggestionsStripBackgroundStyle"
144    >
145        <item name="suggestionStripOption">autoCorrectBold|validTypedWordBold</item>
146        <item name="colorValidTypedWord">#FFFCAE00</item>
147        <item name="colorTypedWord">@android:color/white</item>
148        <item name="colorAutoCorrect">#FFFCAE00</item>
149        <item name="colorSuggested">#FFFCAE00</item>
150        <item name="alphaObsoleted">50%</item>
151        <item name="suggestionsCountInStrip">@integer/suggestions_count_in_strip</item>
152        <item name="centerSuggestionPercentile">@fraction/center_suggestion_percentile</item>
153        <item name="maxMoreSuggestionsRow">@integer/max_more_suggestions_row</item>
154        <item name="minMoreSuggestionsWidth">@fraction/min_more_suggestions_width</item>
155    </style>
156    <style
157        name="MoreSuggestionsViewStyle"
158        parent="MoreKeysKeyboardView"
159    >
160    </style>
161    <style name="SuggestionBackgroundStyle">
162        <item name="android:background">@drawable/btn_suggestion</item>
163    </style>
164    <style name="SuggestionPreviewBackgroundStyle">
165        <item name="android:background">@drawable/suggestion_feedback_background</item>
166    </style>
167    <!-- Theme "Basic high contrast" -->
168    <style
169        name="Keyboard.HighContrast"
170        parent="Keyboard"
171    >
172        <!-- This should be aligned with KeyboardSwitcher.KEYBOARD_THEMES[] -->
173        <item name="themeId">1</item>
174    </style>
175    <style
176        name="KeyboardView.HighContrast"
177        parent="KeyboardView"
178    >
179        <item name="android:background">@android:color/black</item>
180        <item name="keyBackground">@drawable/btn_keyboard_key3</item>
181    </style>
182    <style
183        name="MainKeyboardView.HighContrast"
184        parent="KeyboardView.HighContrast"
185    >
186        <item name="autoCorrectionSpacebarLedEnabled">true</item>
187        <item name="autoCorrectionSpacebarLedIcon">@drawable/sym_keyboard_space_led</item>
188        <item name="spacebarTextRatio">@fraction/spacebar_text_ratio</item>
189        <item name="spacebarTextColor">#FFC0C0C0</item>
190        <item name="spacebarTextShadowColor">#80000000</item>
191    </style>
192    <!-- Theme "Stone" -->
193    <style
194        name="Keyboard.Stone"
195        parent="Keyboard"
196    >
197        <!-- This should be aligned with KeyboardSwitcher.KEYBOARD_THEMES[] -->
198        <item name="themeId">6</item>
199        <item name="keyboardTopPadding">@fraction/keyboard_top_padding_stone</item>
200        <item name="keyboardBottomPadding">@fraction/keyboard_bottom_padding_stone</item>
201        <item name="horizontalGap">@fraction/key_horizontal_gap_stone</item>
202        <item name="verticalGap">@fraction/key_bottom_gap_stone</item>
203    </style>
204    <style
205        name="KeyboardView.Stone"
206        parent="KeyboardView"
207    >
208        <item name="keyBackground">@drawable/btn_keyboard_key_stone</item>
209        <item name="keyTextColor">#FF000000</item>
210        <item name="keyTextInactivatedColor">#FF808080</item>
211        <item name="keyHintLetterColor">#80000000</item>
212        <item name="keyHintLabelColor">#E0000000</item>
213        <item name="keyShiftedLetterHintInactivatedColor">#66000000</item>
214        <item name="keyShiftedLetterHintActivatedColor">#CC000000</item>
215        <item name="keyTextShadowColor">#FFFFFFFF</item>
216    </style>
217    <style
218        name="MainKeyboardView.Stone"
219        parent="KeyboardView.Stone"
220    >
221        <item name="autoCorrectionSpacebarLedEnabled">true</item>
222        <item name="autoCorrectionSpacebarLedIcon">@drawable/sym_keyboard_space_led</item>
223        <item name="spacebarTextRatio">@fraction/spacebar_text_ratio</item>
224        <item name="spacebarTextColor">#FF000000</item>
225        <item name="spacebarTextShadowColor">#D0FFFFFF</item>
226    </style>
227    <style
228        name="MoreKeysKeyboard.Stone"
229        parent="Keyboard.Stone"
230    >
231        <item name="keyboardTopPadding">0dp</item>
232        <item name="keyboardBottomPadding">0dp</item>
233        <item name="horizontalGap">0dp</item>
234    </style>
235    <style
236        name="MoreKeysKeyboardView.Stone"
237        parent="MoreKeysKeyboardView"
238    >
239        <item name="keyBackground">@drawable/btn_keyboard_key_stone</item>
240        <item name="keyTextColor">#FF000000</item>
241        <item name="keyTextShadowColor">#FFFFFFFF</item>
242    </style>
243    <!-- Theme "Stone bold" -->
244    <style
245        name="Keyboard.Stone.Bold"
246        parent="Keyboard.Stone"
247    >
248        <!-- This should be aligned with KeyboardSwitcher.KEYBOARD_THEMES[] -->
249        <item name="themeId">7</item>
250    </style>
251    <style
252        name="KeyboardView.Stone.Bold"
253        parent="KeyboardView.Stone"
254    >
255        <item name="keyTypeface">bold</item>
256    </style>
257    <style
258        name="MainKeyboardView.Stone.Bold"
259        parent="KeyboardView.Stone.Bold"
260    >
261        <item name="autoCorrectionSpacebarLedEnabled">true</item>
262        <item name="autoCorrectionSpacebarLedIcon">@drawable/sym_keyboard_space_led</item>
263        <item name="spacebarTextRatio">@fraction/spacebar_text_ratio</item>
264        <item name="spacebarTextColor">#FF000000</item>
265        <item name="spacebarTextShadowColor">#D0FFFFFF</item>
266    </style>
267    <!-- Theme "Gingerbread" -->
268    <style
269        name="Keyboard.Gingerbread"
270        parent="Keyboard"
271    >
272        <!-- This should be aligned with KeyboardSwitcher.KEYBOARD_THEMES[] -->
273        <item name="themeId">8</item>
274        <item name="touchPositionCorrectionData">@array/touch_position_correction_data_gingerbread</item>
275        <item name="horizontalGap">@fraction/key_horizontal_gap_gb</item>
276        <item name="verticalGap">@fraction/key_bottom_gap_gb</item>
277    </style>
278    <style
279        name="KeyboardView.Gingerbread"
280        parent="KeyboardView"
281    >
282        <item name="android:background">@drawable/keyboard_dark_background</item>
283        <item name="keyBackground">@drawable/btn_keyboard_key_gingerbread</item>
284        <item name="keyTypeface">bold</item>
285    </style>
286    <style
287        name="MainKeyboardView.Gingerbread"
288        parent="KeyboardView.Gingerbread"
289    >
290        <item name="autoCorrectionSpacebarLedEnabled">true</item>
291        <item name="autoCorrectionSpacebarLedIcon">@drawable/sym_keyboard_space_led</item>
292        <item name="spacebarTextRatio">@fraction/spacebar_text_ratio</item>
293        <item name="spacebarTextColor">#FFC0C0C0</item>
294        <item name="spacebarTextShadowColor">#80000000</item>
295    </style>
296    <style
297        name="MoreKeysKeyboard.Gingerbread"
298        parent="Keyboard.Gingerbread"
299    >
300        <item name="keyboardTopPadding">0dp</item>
301        <item name="keyboardBottomPadding">0dp</item>
302        <item name="horizontalGap">0dp</item>
303    </style>
304    <style
305        name="MoreKeysKeyboardView.Gingerbread"
306        parent="MoreKeysKeyboardView"
307    >
308        <item name="android:background">@null</item>
309    </style>
310    <!-- Theme "IceCreamSandwich" -->
311    <style
312        name="Keyboard.IceCreamSandwich"
313        parent="Keyboard"
314    >
315        <!-- This should be aligned with KeyboardSwitcher.KEYBOARD_THEMES[] -->
316        <item name="themeId">5</item>
317        <item name="keyboardTopPadding">@fraction/keyboard_top_padding_ics</item>
318        <item name="keyboardBottomPadding">@fraction/keyboard_bottom_padding_ics</item>
319        <item name="horizontalGap">@fraction/key_horizontal_gap_ics</item>
320        <item name="verticalGap">@fraction/key_bottom_gap_ics</item>
321        <item name="touchPositionCorrectionData">@array/touch_position_correction_data_ice_cream_sandwich</item>
322    </style>
323    <style
324        name="KeyboardView.IceCreamSandwich"
325        parent="KeyboardView"
326    >
327        <item name="android:background">@drawable/keyboard_background_holo</item>
328        <item name="keyBackground">@drawable/btn_keyboard_key_ics</item>
329        <item name="keyTypeface">bold</item>
330        <item name="keyTextInactivatedColor">#66E0E4E5</item>
331        <item name="keyHintLetterColor">#80000000</item>
332        <item name="keyHintLabelColor">#A0FFFFFF</item>
333        <item name="keyShiftedLetterHintInactivatedColor">#66E0E4E5</item>
334        <item name="keyShiftedLetterHintActivatedColor">#FFFFFFFF</item>
335        <item name="keyPreviewLayout">@layout/key_preview_ics</item>
336        <item name="keyPreviewTextColor">#FFFFFFFF</item>
337        <item name="keyPreviewOffset">@dimen/key_preview_offset_ics</item>
338        <item name="keyTextShadowColor">#00000000</item>
339        <item name="keyTextShadowRadius">0.0</item>
340    </style>
341    <style
342        name="MainKeyboardView.IceCreamSandwich"
343        parent="KeyboardView.IceCreamSandwich"
344    >
345        <item name="autoCorrectionSpacebarLedEnabled">false</item>
346        <item name="autoCorrectionSpacebarLedIcon">@drawable/sym_keyboard_space_led_holo</item>
347        <item name="spacebarTextRatio">@fraction/spacebar_text_ratio</item>
348        <item name="spacebarTextColor">#FFC0C0C0</item>
349        <item name="spacebarTextShadowColor">#80000000</item>
350    </style>
351    <style
352        name="MoreKeysKeyboard.IceCreamSandwich"
353        parent="Keyboard.IceCreamSandwich"
354    >
355        <item name="keyboardTopPadding">0dp</item>
356        <item name="keyboardBottomPadding">0dp</item>
357        <item name="horizontalGap">0dp</item>
358    </style>
359    <style
360        name="MoreKeysKeyboardView.IceCreamSandwich"
361        parent="MoreKeysKeyboardView"
362    >
363        <item name="android:background">@null</item>
364        <item name="keyBackground">@drawable/btn_keyboard_key_popup_ics</item>
365        <item name="verticalCorrection">@dimen/more_keys_keyboard_vertical_correction_ics</item>
366    </style>
367    <style name="MoreKeysKeyboardPanelStyle.IceCreamSandwich">
368        <item name="android:background">@drawable/keyboard_popup_panel_background_holo</item>
369    </style>
370    <style name="SuggestionsStripBackgroundStyle.IceCreamSandwich">
371        <item name="android:background">@drawable/keyboard_suggest_strip_holo</item>
372    </style>
373    <style
374        name="SuggestionStripViewStyle.IceCreamSandwich"
375        parent="SuggestionsStripBackgroundStyle.IceCreamSandwich"
376    >
377        <item name="suggestionStripOption">autoCorrectBold|validTypedWordBold</item>
378        <!-- android:color/holo_blue_light=#FF33B5E5 -->
379        <item name="colorValidTypedWord">@android:color/holo_blue_light</item>
380        <item name="colorTypedWord">@android:color/holo_blue_light</item>
381        <item name="colorAutoCorrect">@android:color/holo_blue_light</item>
382        <item name="colorSuggested">@android:color/holo_blue_light</item>
383        <item name="alphaValidTypedWord">85%</item>
384        <item name="alphaTypedWord">85%</item>
385        <item name="alphaSuggested">70%</item>
386        <item name="alphaObsoleted">70%</item>
387        <item name="suggestionsCountInStrip">@integer/suggestions_count_in_strip</item>
388        <item name="centerSuggestionPercentile">@fraction/center_suggestion_percentile</item>
389        <item name="maxMoreSuggestionsRow">@integer/max_more_suggestions_row</item>
390        <item name="minMoreSuggestionsWidth">@fraction/min_more_suggestions_width</item>
391    </style>
392    <style
393        name="MoreSuggestionsViewStyle.IceCreamSandwich"
394        parent="MoreKeysKeyboardView.IceCreamSandwich"
395    >
396    </style>
397    <style name="SuggestionBackgroundStyle.IceCreamSandwich">
398        <item name="android:background">@drawable/btn_suggestion_ics</item>
399    </style>
400    <style
401        name="SuggestionPreviewBackgroundStyle.IceCreamSandwich"
402        parent="MoreKeysKeyboardPanelStyle.IceCreamSandwich"
403    >
404    </style>
405    <style name="MoreKeysKeyboardAnimation">
406        <item name="android:windowEnterAnimation">@anim/more_keys_keyboard_fadein</item>
407        <item name="android:windowExitAnimation">@anim/more_keys_keyboard_fadeout</item>
408    </style>
409</resources>
410