From 160f01211d169d64102205e80e9ac8d46c7d674b Mon Sep 17 00:00:00 2001 From: "Tadashi G. Takaoka" Date: Wed, 25 Jan 2012 20:14:39 +0900 Subject: [PATCH] Get rid of Resource reference from KeyboardView, LatinKeyboardView and PointerTracker This change introduces the following attributes. * KeyboardView - keyPreviewLingerTimeout * LatinKeboardView - keyHysteresisDistance - touchNoiseThresholdTime - touchNoiseThresholdDistance - slidingKeyInputEnable - keyRepeatStartTimeout - keyRepeatInterval - longPressKeyTimeout - longPressShiftKeyTimeout - longPressSpaceKeyTimeout - ignoreSpecialKeyTimeout - showMiniKeyboardAtTouchedPoint Change-Id: I25159a87289b12447e20031add173523070e9b03 --- java/res/values-sw600dp/config.xml | 9 ++- java/res/values-sw768dp/config.xml | 9 ++- java/res/values/attrs.xml | 24 ++++++ java/res/values/config.xml | 35 +++++--- java/res/values/dimens.xml | 2 - java/res/values/styles.xml | 13 +++ .../inputmethod/keyboard/KeyboardView.java | 49 ++--------- .../keyboard/LatinKeyboardView.java | 81 ++++++++++++++----- .../inputmethod/keyboard/PointerTracker.java | 55 +++++-------- .../android/inputmethod/latin/Settings.java | 2 +- .../inputmethod/latin/SettingsValues.java | 5 +- 11 files changed, 163 insertions(+), 121 deletions(-) diff --git a/java/res/values-sw600dp/config.xml b/java/res/values-sw600dp/config.xml index 1dd93121d..35da3009f 100644 --- a/java/res/values-sw600dp/config.xml +++ b/java/res/values-sw600dp/config.xml @@ -24,14 +24,11 @@ false false false - false false false true false - - true 1200 @@ -39,4 +36,10 @@ 5 5 + + false + + true diff --git a/java/res/values-sw768dp/config.xml b/java/res/values-sw768dp/config.xml index 06553a7c9..ddeadaf0f 100644 --- a/java/res/values-sw768dp/config.xml +++ b/java/res/values-sw768dp/config.xml @@ -24,19 +24,22 @@ false false false - false false false true false - - true 0 5 5 + + false + + true + + @@ -130,6 +132,28 @@ + + + + + + + + + + + + + + + + + + + + + + diff --git a/java/res/values/config.xml b/java/res/values/config.xml index 5e6804364..32041df74 100644 --- a/java/res/values/config.xml +++ b/java/res/values/config.xml @@ -27,7 +27,6 @@ true true - true true true @@ -39,8 +38,6 @@ false false true - - false 1200 100 @@ -48,26 +45,38 @@ 100 50 50 - 0 - 70 0 100 - 400 - 50 32 16 + 1100 + + 5 + 5 + + 70 + + 0.05in + 40 + 2.0mm + true + 400 + 50 400 1200 @integer/config_long_press_key_timeout - 40 - 1100 700 - 2.0mm - - 5 - 5 + + false + diff --git a/java/res/values/dimens.xml b/java/res/values/dimens.xml index e46ff7718..95c4e5b8b 100644 --- a/java/res/values/dimens.xml +++ b/java/res/values/dimens.xml @@ -96,6 +96,4 @@ 27dip 3 36 - - 0.05in diff --git a/java/res/values/styles.xml b/java/res/values/styles.xml index c4e39e357..69637d75a 100644 --- a/java/res/values/styles.xml +++ b/java/res/values/styles.xml @@ -59,11 +59,24 @@ @dimen/key_preview_offset @dimen/key_preview_height @fraction/key_preview_text_ratio + @integer/config_key_preview_linger_timeout @layout/mini_keyboard @dimen/keyboard_vertical_correction #BB000000 2.75 0.5 + + @dimen/config_key_hysteresis_distance + @integer/config_touch_noise_threshold_time + @dimen/config_touch_noise_threshold_distance + @bool/config_sliding_key_input_enabled + @integer/config_key_repeat_start_timeout + @integer/config_key_repeat_interval + @integer/config_long_press_key_timeout + @integer/config_long_press_shift_key_timeout + @integer/config_long_press_space_key_timeout + @integer/config_ignore_special_key_timeout + @bool/config_show_mini_keyboard_at_touched_point