2013-08-27 08:04:06 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<!--
|
|
|
|
/*
|
|
|
|
**
|
|
|
|
** Copyright 2013, The Android Open Source Project
|
|
|
|
**
|
|
|
|
** 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 xmlns:android="http://schemas.android.com/apk/res/android">
|
|
|
|
<style name="KeyboardIcons" />
|
|
|
|
<!-- Default theme values -->
|
|
|
|
<style name="Keyboard">
|
|
|
|
<item name="rowHeight">25%p</item>
|
2014-08-07 07:16:31 +00:00
|
|
|
<item name="horizontalGap">@fraction/config_key_horizontal_gap_holo</item>
|
|
|
|
<item name="verticalGap">@fraction/config_key_vertical_gap_holo</item>
|
|
|
|
<item name="touchPositionCorrectionData">@array/touch_position_correction_data_holo</item>
|
|
|
|
<item name="keyboardTopPadding">@fraction/config_keyboard_top_padding_holo</item>
|
|
|
|
<item name="keyboardBottomPadding">@fraction/config_keyboard_bottom_padding_holo</item>
|
2013-12-13 08:09:16 +00:00
|
|
|
<item name="keyboardLeftPadding">@fraction/config_keyboard_left_padding</item>
|
|
|
|
<item name="keyboardRightPadding">@fraction/config_keyboard_right_padding</item>
|
2014-08-07 07:16:31 +00:00
|
|
|
<item name="moreKeysTemplate">@xml/kbd_more_keys_keyboard_template</item>
|
2013-08-27 08:04:06 +00:00
|
|
|
<item name="maxMoreKeysColumn">@integer/config_max_more_keys_column</item>
|
|
|
|
</style>
|
|
|
|
<style name="KeyboardView">
|
2013-12-13 08:09:16 +00:00
|
|
|
<item name="keyLetterSize">@fraction/config_key_letter_ratio</item>
|
2014-08-07 11:36:20 +00:00
|
|
|
<item name="keyLargeLetterRatio">@fraction/config_key_large_letter_ratio</item>
|
2013-12-13 08:09:16 +00:00
|
|
|
<item name="keyLabelSize">@fraction/config_key_label_ratio</item>
|
|
|
|
<item name="keyHintLetterRatio">@fraction/config_key_hint_letter_ratio</item>
|
2014-08-07 11:36:20 +00:00
|
|
|
<item name="keyHintLabelRatio">@fraction/config_key_hint_label_ratio</item>
|
2013-12-13 08:09:16 +00:00
|
|
|
<item name="keyShiftedLetterHintRatio">@fraction/config_key_shifted_letter_hint_ratio</item>
|
2014-08-07 11:36:20 +00:00
|
|
|
<item name="keyLabelOffCenterRatio">-175%</item>
|
|
|
|
<item name="keyHintLabelOffCenterRatio">200%</item>
|
2013-08-27 08:04:06 +00:00
|
|
|
<item name="keyTypeface">normal</item>
|
2014-08-07 07:16:31 +00:00
|
|
|
<!-- A negative value to disable key text shadow layer. -->
|
|
|
|
<item name="keyTextShadowRadius">-1.0</item>
|
2013-12-13 08:09:16 +00:00
|
|
|
<item name="keyHintLetterPadding">@dimen/config_key_hint_letter_padding</item>
|
|
|
|
<item name="keyPopupHintLetterPadding">@dimen/config_key_popup_hint_letter_padding</item>
|
|
|
|
<item name="keyShiftedLetterHintPadding">@dimen/config_key_shifted_letter_hint_padding</item>
|
|
|
|
<item name="keyPreviewTextRatio">@fraction/config_key_preview_text_ratio</item>
|
|
|
|
<item name="verticalCorrection">@dimen/config_keyboard_vertical_correction</item>
|
2013-08-27 08:04:06 +00:00
|
|
|
<item name="backgroundDimAlpha">128</item>
|
2013-12-13 08:09:16 +00:00
|
|
|
<item name="gestureFloatingPreviewTextSize">@dimen/config_gesture_floating_preview_text_size</item>
|
|
|
|
<item name="gestureFloatingPreviewTextOffset">@dimen/config_gesture_floating_preview_text_offset</item>
|
|
|
|
<item name="gestureFloatingPreviewHorizontalPadding">@dimen/config_gesture_floating_preview_horizontal_padding</item>
|
|
|
|
<item name="gestureFloatingPreviewVerticalPadding">@dimen/config_gesture_floating_preview_vertical_padding</item>
|
|
|
|
<item name="gestureFloatingPreviewRoundRadius">@dimen/config_gesture_floating_preview_round_radius</item>
|
|
|
|
<item name="gestureTrailMinSamplingDistance">@dimen/config_gesture_trail_min_sampling_distance</item>
|
|
|
|
<item name="gestureTrailMaxInterpolationAngularThreshold">@integer/config_gesture_trail_max_interpolation_angular_threshold</item>
|
|
|
|
<item name="gestureTrailMaxInterpolationDistanceThreshold">@dimen/config_gesture_trail_max_interpolation_distance_threshold</item>
|
|
|
|
<item name="gestureTrailMaxInterpolationSegments">@integer/config_gesture_trail_max_interpolation_segments</item>
|
2013-08-27 08:04:06 +00:00
|
|
|
<item name="gestureTrailFadeoutStartDelay">@integer/config_gesture_trail_fadeout_start_delay</item>
|
|
|
|
<item name="gestureTrailFadeoutDuration">@integer/config_gesture_trail_fadeout_duration</item>
|
|
|
|
<item name="gestureTrailUpdateInterval">@integer/config_gesture_trail_update_interval</item>
|
2013-12-13 08:09:16 +00:00
|
|
|
<item name="gestureTrailStartWidth">@dimen/config_gesture_trail_start_width</item>
|
|
|
|
<item name="gestureTrailEndWidth">@dimen/config_gesture_trail_end_width</item>
|
|
|
|
<item name="gestureTrailBodyRatio">@integer/config_gesture_trail_body_ratio</item>
|
|
|
|
<item name="gestureTrailShadowRatio">@integer/config_gesture_trail_shadow_ratio</item>
|
2013-08-27 08:04:06 +00:00
|
|
|
<!-- Common attributes of MainKeyboardView -->
|
|
|
|
<item name="keyHysteresisDistance">@dimen/config_key_hysteresis_distance</item>
|
|
|
|
<item name="keyHysteresisDistanceForSlidingModifier">@dimen/config_key_hysteresis_distance_for_sliding_modifier</item>
|
|
|
|
<item name="touchNoiseThresholdTime">@integer/config_touch_noise_threshold_time</item>
|
|
|
|
<item name="touchNoiseThresholdDistance">@dimen/config_touch_noise_threshold_distance</item>
|
2013-12-13 08:09:16 +00:00
|
|
|
<item name="keySelectionByDraggingFinger">@bool/config_key_selection_by_dragging_finger</item>
|
2013-08-27 08:04:06 +00:00
|
|
|
<item name="slidingKeyInputPreviewWidth">@dimen/config_sliding_key_input_preview_width</item>
|
|
|
|
<item name="slidingKeyInputPreviewBodyRatio">@integer/config_sliding_key_input_preview_body_ratio</item>
|
|
|
|
<item name="slidingKeyInputPreviewShadowRatio">@integer/config_sliding_key_input_preview_shadow_ratio</item>
|
|
|
|
<item name="keyRepeatStartTimeout">@integer/config_key_repeat_start_timeout</item>
|
|
|
|
<item name="keyRepeatInterval">@integer/config_key_repeat_interval</item>
|
|
|
|
<item name="longPressShiftLockTimeout">@integer/config_longpress_shift_lock_timeout</item>
|
|
|
|
<item name="ignoreAltCodeKeyTimeout">@integer/config_ignore_alt_code_key_timeout</item>
|
2013-12-13 08:09:16 +00:00
|
|
|
<item name="keyPreviewHeight">@dimen/config_key_preview_height</item>
|
2014-02-17 03:10:09 +00:00
|
|
|
<!-- TODO: consolidate key preview linger timeout with the key preview animation parameters. -->
|
2013-08-27 08:04:06 +00:00
|
|
|
<item name="keyPreviewLingerTimeout">@integer/config_key_preview_linger_timeout</item>
|
|
|
|
<item name="moreKeysKeyboardLayout">@layout/more_keys_keyboard</item>
|
|
|
|
<item name="showMoreKeysKeyboardAtTouchedPoint">@bool/config_show_more_keys_keyboard_at_touched_point</item>
|
2013-12-13 08:09:16 +00:00
|
|
|
<item name="languageOnSpacebarTextRatio">@fraction/config_language_on_spacebar_text_ratio</item>
|
2013-08-27 08:04:06 +00:00
|
|
|
<item name="languageOnSpacebarFinalAlpha">@integer/config_language_on_spacebar_final_alpha</item>
|
|
|
|
<item name="languageOnSpacebarFadeoutAnimator">@anim/language_on_spacebar_fadeout</item>
|
|
|
|
<!-- Remove animations for now because it could drain a non-negligible amount of battery while typing.
|
|
|
|
<item name="altCodeKeyWhileTypingFadeoutAnimator">@anim/alt_code_key_while_typing_fadeout</item>
|
|
|
|
<item name="altCodeKeyWhileTypingFadeinAnimator">@anim/alt_code_key_while_typing_fadein</item>
|
|
|
|
-->
|
|
|
|
<!-- Common attributes of MainKeyboardView for gesture typing detection and recognition -->
|
|
|
|
<item name="gestureFloatingPreviewTextLingerTimeout">@integer/config_gesture_floating_preview_text_linger_timeout</item>
|
|
|
|
<item name="gestureStaticTimeThresholdAfterFastTyping">@integer/config_gesture_static_time_threshold_after_fast_typing</item>
|
|
|
|
<item name="gestureDetectFastMoveSpeedThreshold">@fraction/config_gesture_detect_fast_move_speed_threshold</item>
|
|
|
|
<item name="gestureDynamicThresholdDecayDuration">@integer/config_gesture_dynamic_threshold_decay_duration</item>
|
|
|
|
<item name="gestureDynamicTimeThresholdFrom">@integer/config_gesture_dynamic_time_threshold_from</item>
|
|
|
|
<item name="gestureDynamicTimeThresholdTo">@integer/config_gesture_dynamic_time_threshold_to</item>
|
|
|
|
<item name="gestureDynamicDistanceThresholdFrom">@fraction/config_gesture_dynamic_distance_threshold_from</item>
|
|
|
|
<item name="gestureDynamicDistanceThresholdTo">@fraction/config_gesture_dynamic_distance_threshold_to</item>
|
|
|
|
<item name="gestureSamplingMinimumDistance">@fraction/config_gesture_sampling_minimum_distance</item>
|
|
|
|
<item name="gestureRecognitionMinimumTime">@integer/config_gesture_recognition_minimum_time</item>
|
|
|
|
<item name="gestureRecognitionUpdateTime">@integer/config_gesture_recognition_update_time</item>
|
|
|
|
<item name="gestureRecognitionSpeedThreshold">@fraction/config_gesture_recognition_speed_threshold</item>
|
|
|
|
<item name="suppressKeyPreviewAfterBatchInputDuration">@integer/config_suppress_key_preview_after_batch_input_duration</item>
|
|
|
|
</style>
|
2013-08-28 06:59:49 +00:00
|
|
|
<style
|
|
|
|
name="MainKeyboardView"
|
|
|
|
parent="KeyboardView" />
|
2013-10-07 02:28:57 +00:00
|
|
|
<!-- Though {@link EmojiPalettesView} doesn't extend {@link KeyboardView}, some views inside it,
|
2013-08-30 10:28:01 +00:00
|
|
|
for instance delete button, need themed {@link KeyboardView} attributes. -->
|
2014-05-14 06:30:37 +00:00
|
|
|
<style name="EmojiPalettesView" />
|
2013-08-27 08:04:06 +00:00
|
|
|
<style name="MoreKeysKeyboard" />
|
|
|
|
<style
|
2013-08-28 06:59:49 +00:00
|
|
|
name="MoreKeysKeyboardView"
|
|
|
|
parent="MainKeyboardView" />
|
|
|
|
<style name="MoreKeysKeyboardContainer" />
|
2014-05-02 08:03:12 +00:00
|
|
|
<style name="SuggestionStripView" />
|
2014-01-28 10:22:27 +00:00
|
|
|
<style name="SuggestionWord">
|
|
|
|
<item name="android:minWidth">@dimen/config_suggestion_min_width</item>
|
|
|
|
<item name="android:textSize">@dimen/config_suggestion_text_size</item>
|
|
|
|
<item name="android:gravity">center</item>
|
|
|
|
<item name="android:paddingLeft">@dimen/config_suggestion_text_horizontal_padding</item>
|
|
|
|
<item name="android:paddingTop">0dp</item>
|
|
|
|
<item name="android:paddingRight">@dimen/config_suggestion_text_horizontal_padding</item>
|
|
|
|
<item name="android:paddingBottom">0dp</item>
|
2014-06-09 14:25:02 +00:00
|
|
|
<!-- Provide audio and haptic feedback by ourselves based on the keyboard settings.
|
|
|
|
We just need to ignore the system's audio and haptic feedback settings. -->
|
2014-01-28 10:22:27 +00:00
|
|
|
<item name="android:hapticFeedbackEnabled">false</item>
|
2014-06-09 14:25:02 +00:00
|
|
|
<item name="android:soundEffectsEnabled">false</item>
|
2014-01-28 10:22:27 +00:00
|
|
|
<item name="android:focusable">false</item>
|
|
|
|
<item name="android:clickable">false</item>
|
|
|
|
<item name="android:singleLine">true</item>
|
|
|
|
<item name="android:ellipsize">none</item>
|
|
|
|
</style>
|
2013-12-13 08:09:16 +00:00
|
|
|
</resources>
|