mirror of
https://github.com/Helium314/HeliBoard.git
synced 2025-05-01 20:34:30 +00:00
remove unused key popup animation code already marked for removal
This commit is contained in:
parent
017c057585
commit
9c272fd881
18 changed files with 1 additions and 413 deletions
|
@ -173,14 +173,6 @@ public final class KeyboardSwitcher implements KeyboardState.SwitchActions {
|
|||
keyboardView.setKeyboard(newKeyboard);
|
||||
mCurrentInputView.setKeyboardTopPadding(newKeyboard.mTopPadding);
|
||||
keyboardView.setKeyPreviewPopupEnabled(currentSettingsValues.mKeyPreviewPopupOn);
|
||||
keyboardView.setKeyPreviewAnimationParams(
|
||||
currentSettingsValues.mHasCustomKeyPreviewAnimationParams,
|
||||
currentSettingsValues.mKeyPreviewShowUpStartXScale,
|
||||
currentSettingsValues.mKeyPreviewShowUpStartYScale,
|
||||
currentSettingsValues.mKeyPreviewShowUpDuration,
|
||||
currentSettingsValues.mKeyPreviewDismissEndXScale,
|
||||
currentSettingsValues.mKeyPreviewDismissEndYScale,
|
||||
currentSettingsValues.mKeyPreviewDismissDuration);
|
||||
keyboardView.updateShortcutKey(mRichImm.isShortcutImeReady());
|
||||
final boolean subtypeChanged = (oldKeyboard == null)
|
||||
|| !newKeyboard.mId.mSubtype.equals(oldKeyboard.mId.mSubtype);
|
||||
|
|
|
@ -92,9 +92,6 @@ import java.util.WeakHashMap;
|
|||
* @attr ref R.styleable#MainKeyboardView_keyPreviewLayout
|
||||
* @attr ref R.styleable#MainKeyboardView_keyPreviewOffset
|
||||
* @attr ref R.styleable#MainKeyboardView_keyPreviewHeight
|
||||
* @attr ref R.styleable#MainKeyboardView_keyPreviewLingerTimeout
|
||||
* @attr ref R.styleable#MainKeyboardView_keyPreviewShowUpAnimator
|
||||
* @attr ref R.styleable#MainKeyboardView_keyPreviewDismissAnimator
|
||||
* @attr ref R.styleable#MainKeyboardView_moreKeysKeyboardLayout
|
||||
* @attr ref R.styleable#MainKeyboardView_moreKeysKeyboardForActionLayout
|
||||
* @attr ref R.styleable#MainKeyboardView_backgroundDimAlpha
|
||||
|
@ -422,27 +419,6 @@ public final class MainKeyboardView extends KeyboardView implements DrawingProxy
|
|||
mKeyPreviewDrawParams.setPopupEnabled(previewEnabled);
|
||||
}
|
||||
|
||||
/**
|
||||
* Enables or disables the key preview popup animations and set animations' parameters.
|
||||
*
|
||||
* @param hasCustomAnimationParams false to use the default key preview popup animations
|
||||
* specified by keyPreviewShowUpAnimator and keyPreviewDismissAnimator attributes.
|
||||
* true to override the default animations with the specified parameters.
|
||||
* @param showUpStartXScale from this x-scale the show up animation will start.
|
||||
* @param showUpStartYScale from this y-scale the show up animation will start.
|
||||
* @param showUpDuration the duration of the show up animation in milliseconds.
|
||||
* @param dismissEndXScale to this x-scale the dismiss animation will end.
|
||||
* @param dismissEndYScale to this y-scale the dismiss animation will end.
|
||||
* @param dismissDuration the duration of the dismiss animation in milliseconds.
|
||||
*/
|
||||
public void setKeyPreviewAnimationParams(final boolean hasCustomAnimationParams,
|
||||
final float showUpStartXScale, final float showUpStartYScale, final int showUpDuration,
|
||||
final float dismissEndXScale, final float dismissEndYScale, final int dismissDuration) {
|
||||
mKeyPreviewDrawParams.setAnimationParams(hasCustomAnimationParams,
|
||||
showUpStartXScale, showUpStartYScale, showUpDuration,
|
||||
dismissEndXScale, dismissEndYScale, dismissDuration);
|
||||
}
|
||||
|
||||
private void locatePreviewPlacerView() {
|
||||
getLocationInWindow(mOriginCoords);
|
||||
mDrawingPreviewPlacerView.setKeyboardViewGeometry(mOriginCoords, getWidth(), getHeight());
|
||||
|
|
|
@ -99,10 +99,4 @@ public final class KeyPreviewDrawParams {
|
|||
return mShowPopup;
|
||||
}
|
||||
|
||||
public void setAnimationParams(final boolean hasCustomAnimationParams,
|
||||
final float showUpStartXScale, final float showUpStartYScale, final int showUpDuration,
|
||||
final float dismissEndXScale, final float dismissEndYScale, final int dismissDuration) {
|
||||
//TODO: remove
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -27,20 +27,6 @@ package org.dslul.openboard.inputmethod.latin.settings;
|
|||
public final class DebugSettings {
|
||||
public static final String PREF_DEBUG_MODE = "debug_mode";
|
||||
public static final String PREF_FORCE_NON_DISTINCT_MULTITOUCH = "force_non_distinct_multitouch";
|
||||
public static final String PREF_HAS_CUSTOM_KEY_PREVIEW_ANIMATION_PARAMS =
|
||||
"pref_has_custom_key_preview_animation_params";
|
||||
public static final String PREF_KEY_PREVIEW_DISMISS_DURATION =
|
||||
"pref_key_preview_dismiss_duration";
|
||||
public static final String PREF_KEY_PREVIEW_DISMISS_END_X_SCALE =
|
||||
"pref_key_preview_dismiss_end_x_scale";
|
||||
public static final String PREF_KEY_PREVIEW_DISMISS_END_Y_SCALE =
|
||||
"pref_key_preview_dismiss_end_y_scale";
|
||||
public static final String PREF_KEY_PREVIEW_SHOW_UP_DURATION =
|
||||
"pref_key_preview_show_up_duration";
|
||||
public static final String PREF_KEY_PREVIEW_SHOW_UP_START_X_SCALE =
|
||||
"pref_key_preview_show_up_start_x_scale";
|
||||
public static final String PREF_KEY_PREVIEW_SHOW_UP_START_Y_SCALE =
|
||||
"pref_key_preview_show_up_start_y_scale";
|
||||
public static final String PREF_SHOULD_SHOW_LXX_SUGGESTION_UI =
|
||||
"pref_should_show_lxx_suggestion_ui";
|
||||
public static final String PREF_SLIDING_KEY_INPUT_PREVIEW = "pref_sliding_key_input_preview";
|
||||
|
|
|
@ -19,9 +19,7 @@ package org.dslul.openboard.inputmethod.latin.settings;
|
|||
import android.content.Context;
|
||||
import android.content.Intent;
|
||||
import android.content.SharedPreferences;
|
||||
import android.content.res.Resources;
|
||||
import android.os.Bundle;
|
||||
import android.os.Process;
|
||||
|
||||
import androidx.annotation.NonNull;
|
||||
import androidx.preference.Preference;
|
||||
|
@ -32,9 +30,6 @@ import org.dslul.openboard.inputmethod.latin.DictionaryDumpBroadcastReceiver;
|
|||
import org.dslul.openboard.inputmethod.latin.DictionaryFacilitatorImpl;
|
||||
import org.dslul.openboard.inputmethod.latin.R;
|
||||
import org.dslul.openboard.inputmethod.latin.utils.ApplicationUtils;
|
||||
import org.dslul.openboard.inputmethod.latin.utils.ResourceUtils;
|
||||
|
||||
import java.util.Locale;
|
||||
|
||||
/**
|
||||
* "Debug mode" settings sub screen.
|
||||
|
@ -64,23 +59,6 @@ public final class DebugSettingsFragment extends SubScreenFragment
|
|||
pref.setOnPreferenceClickListener(this);
|
||||
dictDumpPreferenceGroup.addPreference(pref);
|
||||
}
|
||||
final Resources res = getResources();
|
||||
setupKeyPreviewAnimationDuration(DebugSettings.PREF_KEY_PREVIEW_SHOW_UP_DURATION,
|
||||
res.getInteger(R.integer.config_key_preview_show_up_duration));
|
||||
setupKeyPreviewAnimationDuration(DebugSettings.PREF_KEY_PREVIEW_DISMISS_DURATION,
|
||||
res.getInteger(R.integer.config_key_preview_dismiss_duration));
|
||||
final float defaultKeyPreviewShowUpStartScale = ResourceUtils.getFloatFromFraction(
|
||||
res, R.fraction.config_key_preview_show_up_start_scale);
|
||||
final float defaultKeyPreviewDismissEndScale = ResourceUtils.getFloatFromFraction(
|
||||
res, R.fraction.config_key_preview_dismiss_end_scale);
|
||||
setupKeyPreviewAnimationScale(DebugSettings.PREF_KEY_PREVIEW_SHOW_UP_START_X_SCALE,
|
||||
defaultKeyPreviewShowUpStartScale);
|
||||
setupKeyPreviewAnimationScale(DebugSettings.PREF_KEY_PREVIEW_SHOW_UP_START_Y_SCALE,
|
||||
defaultKeyPreviewShowUpStartScale);
|
||||
setupKeyPreviewAnimationScale(DebugSettings.PREF_KEY_PREVIEW_DISMISS_END_X_SCALE,
|
||||
defaultKeyPreviewDismissEndScale);
|
||||
setupKeyPreviewAnimationScale(DebugSettings.PREF_KEY_PREVIEW_DISMISS_END_Y_SCALE,
|
||||
defaultKeyPreviewDismissEndScale);
|
||||
|
||||
mServiceNeedsRestart = false;
|
||||
mDebugMode = findPreference(DebugSettings.PREF_DEBUG_MODE);
|
||||
|
@ -144,94 +122,4 @@ public final class DebugSettingsFragment extends SubScreenFragment
|
|||
}
|
||||
}
|
||||
|
||||
private void setupKeyPreviewAnimationScale(final String prefKey, final float defaultValue) {
|
||||
final SharedPreferences prefs = getSharedPreferences();
|
||||
final Resources res = getResources();
|
||||
final SeekBarDialogPreference pref = findPreference(prefKey);
|
||||
if (pref == null) {
|
||||
return;
|
||||
}
|
||||
pref.setInterface(new SeekBarDialogPreference.ValueProxy() {
|
||||
private static final float PERCENTAGE_FLOAT = 100.0f;
|
||||
|
||||
private float getValueFromPercentage(final int percentage) {
|
||||
return percentage / PERCENTAGE_FLOAT;
|
||||
}
|
||||
|
||||
private int getPercentageFromValue(final float floatValue) {
|
||||
return (int)(floatValue * PERCENTAGE_FLOAT);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void writeValue(final int value, final String key) {
|
||||
prefs.edit().putFloat(key, getValueFromPercentage(value)).apply();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void writeDefaultValue(final String key) {
|
||||
prefs.edit().remove(key).apply();
|
||||
}
|
||||
|
||||
@Override
|
||||
public int readValue(final String key) {
|
||||
return getPercentageFromValue(
|
||||
Settings.readKeyPreviewAnimationScale(prefs, key, defaultValue));
|
||||
}
|
||||
|
||||
@Override
|
||||
public int readDefaultValue(final String key) {
|
||||
return getPercentageFromValue(defaultValue);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getValueText(final int value) {
|
||||
if (value < 0) {
|
||||
return res.getString(R.string.settings_system_default);
|
||||
}
|
||||
return String.format(Locale.ROOT, "%d%%", value);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void feedbackValue(final int value) {}
|
||||
});
|
||||
}
|
||||
|
||||
private void setupKeyPreviewAnimationDuration(final String prefKey, final int defaultValue) {
|
||||
final SharedPreferences prefs = getSharedPreferences();
|
||||
final Resources res = getResources();
|
||||
final SeekBarDialogPreference pref = findPreference(prefKey);
|
||||
if (pref == null) {
|
||||
return;
|
||||
}
|
||||
pref.setInterface(new SeekBarDialogPreference.ValueProxy() {
|
||||
@Override
|
||||
public void writeValue(final int value, final String key) {
|
||||
prefs.edit().putInt(key, value).apply();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void writeDefaultValue(final String key) {
|
||||
prefs.edit().remove(key).apply();
|
||||
}
|
||||
|
||||
@Override
|
||||
public int readValue(final String key) {
|
||||
return Settings.readKeyPreviewAnimationDuration(prefs, key, defaultValue);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int readDefaultValue(final String key) {
|
||||
return defaultValue;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getValueText(final int value) {
|
||||
return res.getString(R.string.abbreviation_unit_milliseconds, Integer.toString(value));
|
||||
}
|
||||
|
||||
@Override
|
||||
public void feedbackValue(final int value) {}
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -46,13 +46,6 @@ public class LocalSettingsConstants {
|
|||
// correctly set for it to work on a new device.
|
||||
DebugSettings.PREF_DEBUG_MODE,
|
||||
DebugSettings.PREF_FORCE_NON_DISTINCT_MULTITOUCH,
|
||||
DebugSettings.PREF_HAS_CUSTOM_KEY_PREVIEW_ANIMATION_PARAMS,
|
||||
DebugSettings.PREF_KEY_PREVIEW_DISMISS_DURATION,
|
||||
DebugSettings.PREF_KEY_PREVIEW_DISMISS_END_X_SCALE,
|
||||
DebugSettings.PREF_KEY_PREVIEW_DISMISS_END_Y_SCALE,
|
||||
DebugSettings.PREF_KEY_PREVIEW_SHOW_UP_DURATION,
|
||||
DebugSettings.PREF_KEY_PREVIEW_SHOW_UP_START_X_SCALE,
|
||||
DebugSettings.PREF_KEY_PREVIEW_SHOW_UP_START_Y_SCALE,
|
||||
DebugSettings.PREF_SHOULD_SHOW_LXX_SUGGESTION_UI,
|
||||
DebugSettings.PREF_SLIDING_KEY_INPUT_PREVIEW
|
||||
};
|
||||
|
|
|
@ -35,7 +35,6 @@ import org.dslul.openboard.inputmethod.latin.RichInputMethodManager;
|
|||
import org.dslul.openboard.inputmethod.latin.common.Colors;
|
||||
import org.dslul.openboard.inputmethod.latin.spellcheck.AndroidSpellCheckerService;
|
||||
import org.dslul.openboard.inputmethod.latin.utils.AsyncResultHolder;
|
||||
import org.dslul.openboard.inputmethod.latin.utils.ResourceUtils;
|
||||
import org.dslul.openboard.inputmethod.latin.utils.ScriptUtils;
|
||||
import org.dslul.openboard.inputmethod.latin.utils.TargetPackageInfoGetterTask;
|
||||
|
||||
|
@ -132,15 +131,6 @@ public class SettingsValues {
|
|||
// User-defined colors
|
||||
public final Colors mColors;
|
||||
|
||||
// Debug settings
|
||||
public final boolean mHasCustomKeyPreviewAnimationParams;
|
||||
public final int mKeyPreviewShowUpDuration;
|
||||
public final int mKeyPreviewDismissDuration;
|
||||
public final float mKeyPreviewShowUpStartXScale;
|
||||
public final float mKeyPreviewShowUpStartYScale;
|
||||
public final float mKeyPreviewDismissEndXScale;
|
||||
public final float mKeyPreviewDismissEndYScale;
|
||||
|
||||
@Nullable
|
||||
public final String mAccount;
|
||||
|
||||
|
@ -211,30 +201,7 @@ public class SettingsValues {
|
|||
readSuggestionsEnabled(prefs);
|
||||
mIncognitoModeEnabled = Settings.readAlwaysIncognitoMode(prefs) || mInputAttributes.mNoLearning
|
||||
|| mInputAttributes.mIsPasswordField;
|
||||
mHasCustomKeyPreviewAnimationParams = prefs.getBoolean(DebugSettings.PREF_HAS_CUSTOM_KEY_PREVIEW_ANIMATION_PARAMS, false);
|
||||
mKeyboardHeightScale = Settings.readKeyboardHeight(prefs, DEFAULT_SIZE_SCALE);
|
||||
mKeyPreviewShowUpDuration = Settings.readKeyPreviewAnimationDuration(
|
||||
prefs, DebugSettings.PREF_KEY_PREVIEW_SHOW_UP_DURATION,
|
||||
res.getInteger(R.integer.config_key_preview_show_up_duration));
|
||||
mKeyPreviewDismissDuration = Settings.readKeyPreviewAnimationDuration(
|
||||
prefs, DebugSettings.PREF_KEY_PREVIEW_DISMISS_DURATION,
|
||||
res.getInteger(R.integer.config_key_preview_dismiss_duration));
|
||||
final float defaultKeyPreviewShowUpStartScale = ResourceUtils.getFloatFromFraction(
|
||||
res, R.fraction.config_key_preview_show_up_start_scale);
|
||||
final float defaultKeyPreviewDismissEndScale = ResourceUtils.getFloatFromFraction(
|
||||
res, R.fraction.config_key_preview_dismiss_end_scale);
|
||||
mKeyPreviewShowUpStartXScale = Settings.readKeyPreviewAnimationScale(
|
||||
prefs, DebugSettings.PREF_KEY_PREVIEW_SHOW_UP_START_X_SCALE,
|
||||
defaultKeyPreviewShowUpStartScale);
|
||||
mKeyPreviewShowUpStartYScale = Settings.readKeyPreviewAnimationScale(
|
||||
prefs, DebugSettings.PREF_KEY_PREVIEW_SHOW_UP_START_Y_SCALE,
|
||||
defaultKeyPreviewShowUpStartScale);
|
||||
mKeyPreviewDismissEndXScale = Settings.readKeyPreviewAnimationScale(
|
||||
prefs, DebugSettings.PREF_KEY_PREVIEW_DISMISS_END_X_SCALE,
|
||||
defaultKeyPreviewDismissEndScale);
|
||||
mKeyPreviewDismissEndYScale = Settings.readKeyPreviewAnimationScale(
|
||||
prefs, DebugSettings.PREF_KEY_PREVIEW_DISMISS_END_Y_SCALE,
|
||||
defaultKeyPreviewDismissEndScale);
|
||||
mDisplayOrientation = res.getConfiguration().orientation;
|
||||
mAppWorkarounds = new AsyncResultHolder<>("AppWorkarounds");
|
||||
final PackageInfo packageInfo = TargetPackageInfoGetterTask.getCachedPackageInfo(
|
||||
|
@ -438,18 +405,6 @@ public class SettingsValues {
|
|||
sb.append("\n mAppWorkarounds = ");
|
||||
final AppWorkaroundsUtils awu = mAppWorkarounds.get(null, 0);
|
||||
sb.append("" + (null == awu ? "null" : awu.toString()));
|
||||
sb.append("\n mKeyPreviewShowUpDuration = ");
|
||||
sb.append("" + mKeyPreviewShowUpDuration);
|
||||
sb.append("\n mKeyPreviewDismissDuration = ");
|
||||
sb.append("" + mKeyPreviewDismissDuration);
|
||||
sb.append("\n mKeyPreviewShowUpStartScaleX = ");
|
||||
sb.append("" + mKeyPreviewShowUpStartXScale);
|
||||
sb.append("\n mKeyPreviewShowUpStartScaleY = ");
|
||||
sb.append("" + mKeyPreviewShowUpStartYScale);
|
||||
sb.append("\n mKeyPreviewDismissEndScaleX = ");
|
||||
sb.append("" + mKeyPreviewDismissEndXScale);
|
||||
sb.append("\n mKeyPreviewDismissEndScaleY = ");
|
||||
sb.append("" + mKeyPreviewDismissEndYScale);
|
||||
return sb.toString();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,32 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
/*
|
||||
**
|
||||
** Copyright 2014, 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.
|
||||
*/
|
||||
-->
|
||||
|
||||
<set xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<objectAnimator
|
||||
android:propertyName="scaleX"
|
||||
android:duration="53"
|
||||
android:valueFrom="1.00"
|
||||
android:valueTo="0.94" />
|
||||
<objectAnimator
|
||||
android:propertyName="scaleY"
|
||||
android:duration="53"
|
||||
android:valueFrom="1.00"
|
||||
android:valueTo="0.94" />
|
||||
</set>
|
|
@ -1,32 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
/*
|
||||
**
|
||||
** Copyright 2014, 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.
|
||||
*/
|
||||
-->
|
||||
|
||||
<set xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<objectAnimator
|
||||
android:propertyName="scaleX"
|
||||
android:duration="53"
|
||||
android:valueFrom="1.00"
|
||||
android:valueTo="1.00" />
|
||||
<objectAnimator
|
||||
android:propertyName="scaleY"
|
||||
android:duration="53"
|
||||
android:valueFrom="1.00"
|
||||
android:valueTo="0.94" />
|
||||
</set>
|
|
@ -1,32 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
/*
|
||||
**
|
||||
** Copyright 2014, 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.
|
||||
*/
|
||||
-->
|
||||
|
||||
<set xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<objectAnimator
|
||||
android:propertyName="scaleX"
|
||||
android:duration="17"
|
||||
android:valueFrom="0.98"
|
||||
android:valueTo="1.00" />
|
||||
<objectAnimator
|
||||
android:propertyName="scaleY"
|
||||
android:duration="17"
|
||||
android:valueFrom="0.98"
|
||||
android:valueTo="1.00" />
|
||||
</set>
|
|
@ -1,32 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
/*
|
||||
**
|
||||
** Copyright 2014, 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.
|
||||
*/
|
||||
-->
|
||||
|
||||
<set xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<objectAnimator
|
||||
android:propertyName="scaleX"
|
||||
android:duration="17"
|
||||
android:valueFrom="1.00"
|
||||
android:valueTo="1.00" />
|
||||
<objectAnimator
|
||||
android:propertyName="scaleY"
|
||||
android:duration="17"
|
||||
android:valueFrom="0.98"
|
||||
android:valueTo="1.00" />
|
||||
</set>
|
|
@ -119,13 +119,6 @@
|
|||
<attr name="keyPreviewOffset" format="dimension" />
|
||||
<!-- Height of the key press feedback popup. -->
|
||||
<attr name="keyPreviewHeight" format="dimension" />
|
||||
<!-- TODO: consolidate key preview linger timeout with the key preview animation parameters. -->
|
||||
<!-- Delay after key releasing and key press feedback dismissing in millisecond -->
|
||||
<attr name="keyPreviewLingerTimeout" format="integer" />
|
||||
<!-- Key preview show up animator -->
|
||||
<attr name="keyPreviewShowUpAnimator" format="reference" />
|
||||
<!-- Key preview dismiss animator -->
|
||||
<attr name="keyPreviewDismissAnimator" format="reference" />
|
||||
<!-- Layout resource for more keys keyboard -->
|
||||
<attr name="moreKeysKeyboardLayout" format="reference" />
|
||||
<!-- Layout resource for more keys keyboard of action key -->
|
||||
|
|
|
@ -35,12 +35,6 @@
|
|||
|
||||
<integer name="config_ignore_alt_code_key_timeout">350</integer>
|
||||
|
||||
<integer name="config_key_preview_show_up_duration">0</integer>
|
||||
<integer name="config_key_preview_dismiss_duration">0</integer>
|
||||
<fraction name="config_key_preview_show_up_start_scale">100%</fraction>
|
||||
<fraction name="config_key_preview_dismiss_end_scale">100%</fraction>
|
||||
<!-- TODO: consolidate key preview linger timeout with the above animation parameters. -->
|
||||
<integer name="config_key_preview_linger_timeout">0</integer>
|
||||
<!-- Suppress showing key preview duration after batch input in millisecond -->
|
||||
<integer name="config_suppress_key_preview_after_batch_input_duration">100</integer>
|
||||
|
||||
|
|
|
@ -27,20 +27,6 @@
|
|||
<string name="sliding_key_input_preview" translatable="false">Show slide indicator</string>
|
||||
<!-- Option summary to enable sliding key input indicator. The user can see a rubber band-like effect during sliding key input. [CHAR LIMIT=66]-->
|
||||
<string name="sliding_key_input_preview_summary" translatable="false">Display visual cue while sliding from Shift or Symbol keys</string>
|
||||
<!-- Title of the settings for customize key popup animation parameters [CHAR LIMIT=35] -->
|
||||
<string name="prefs_customize_key_preview_animation" translatable="false">Customize key preview animation</string>
|
||||
<!-- Title of the settings for key popup show up animation duration (in milliseconds) [CHAR LIMIT=35] -->
|
||||
<string name="prefs_key_popup_show_up_duration_settings" translatable="false">Key popup show up duration</string>
|
||||
<!-- Title of the settings for key popup dismiss animation duration (in milliseconds) [CHAR LIMIT=35] -->
|
||||
<string name="prefs_key_popup_dismiss_duration_settings" translatable="false">Key popup dismiss duration</string>
|
||||
<!-- Title of the settings for key popup show up animation start X-scale (in percentile) [CHAR LIMIT=35] -->
|
||||
<string name="prefs_key_popup_show_up_start_x_scale_settings" translatable="false">Key popup show up start X scale</string>
|
||||
<!-- Title of the settings for key popup show up animation start Y-scale (in percentile) [CHAR LIMIT=35] -->
|
||||
<string name="prefs_key_popup_show_up_start_y_scale_settings" translatable="false">Key popup show up start Y scale</string>
|
||||
<!-- Title of the settings for key popup dismiss animation end X-scale (in percentile) [CHAR LIMIT=35] -->
|
||||
<string name="prefs_key_popup_dismiss_end_x_scale_settings" translatable="false">Key popup dismiss end X scale</string>
|
||||
<!-- Title of the settings for key popup dismiss animation end Y-scale (in percentile) [CHAR LIMIT=35] -->
|
||||
<string name="prefs_key_popup_dismiss_end_y_scale_settings" translatable="false">Key popup dismiss end Y scale</string>
|
||||
<!-- Title of the settings group for dumpping dictionary files that have been created on the device [CHAR LIMIT=35] -->
|
||||
<!-- Title of the settings group for dumping dictionary files that have been created on the device [CHAR LIMIT=35] -->
|
||||
<string name="prefs_dump_dynamic_dicts" translatable="false">Dump dictionary</string>
|
||||
</resources>
|
||||
|
|
|
@ -78,8 +78,6 @@
|
|||
<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>
|
||||
<!-- TODO: consolidate key preview linger timeout with the key preview animation parameters. -->
|
||||
<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>
|
||||
<item name="languageOnSpacebarTextRatio">@fraction/config_language_on_spacebar_text_ratio</item>
|
||||
|
|
|
@ -64,8 +64,6 @@
|
|||
<item name="keyPreviewBackground">@drawable/keyboard_key_feedback_holo_white</item>
|
||||
<item name="keyPreviewHeight">@dimen/config_key_preview_height_holo</item>
|
||||
<item name="keyPreviewOffset">@dimen/config_key_preview_offset_holo</item>
|
||||
<item name="keyPreviewShowUpAnimator">@anim/key_preview_show_up_holo</item>
|
||||
<item name="keyPreviewDismissAnimator">@anim/key_preview_dismiss_holo</item>
|
||||
<item name="gestureFloatingPreviewTextColor">@color/highlight_color_holo_white</item>
|
||||
<item name="gestureFloatingPreviewColor">@color/gesture_floating_preview_color_holo</item>
|
||||
<item name="gestureTrailColor">@color/highlight_color_holo_white</item>
|
||||
|
|
|
@ -46,8 +46,6 @@
|
|||
<item name="keyPreviewBackground">@drawable/keyboard_key_feedback_lxx_light</item>
|
||||
<item name="keyPreviewHeight">@dimen/config_key_preview_height_lxx</item>
|
||||
<item name="keyPreviewOffset">@dimen/config_key_preview_offset_lxx</item>
|
||||
<item name="keyPreviewShowUpAnimator">@anim/key_preview_show_up_lxx</item>
|
||||
<item name="keyPreviewDismissAnimator">@anim/key_preview_dismiss_lxx</item>
|
||||
<item name="gestureFloatingPreviewTextColor">@color/auto_correct_color_lxx_light</item>
|
||||
<item name="gestureFloatingPreviewColor">@color/gesture_floating_preview_color_lxx_light</item>
|
||||
<item name="gestureTrailColor">@color/gesture_trail_color_lxx_light</item>
|
||||
|
|
|
@ -41,41 +41,6 @@
|
|||
android:summary="@string/sliding_key_input_preview_summary"
|
||||
android:defaultValue="true"
|
||||
android:persistent="true" />
|
||||
<SwitchPreferenceCompat
|
||||
android:key="pref_has_custom_key_preview_animation_params"
|
||||
android:title="@string/prefs_customize_key_preview_animation"
|
||||
android:defaultValue="false"
|
||||
android:persistent="true" />
|
||||
<org.dslul.openboard.inputmethod.latin.settings.SeekBarDialogPreference
|
||||
android:dependency="pref_has_custom_key_preview_animation_params"
|
||||
android:key="pref_key_preview_show_up_start_x_scale"
|
||||
android:title="@string/prefs_key_popup_show_up_start_x_scale_settings"
|
||||
latin:maxValue="100" /> <!-- percent -->
|
||||
<org.dslul.openboard.inputmethod.latin.settings.SeekBarDialogPreference
|
||||
android:dependency="pref_has_custom_key_preview_animation_params"
|
||||
android:key="pref_key_preview_show_up_start_y_scale"
|
||||
android:title="@string/prefs_key_popup_show_up_start_y_scale_settings"
|
||||
latin:maxValue="100" /> <!-- percent -->
|
||||
<org.dslul.openboard.inputmethod.latin.settings.SeekBarDialogPreference
|
||||
android:dependency="pref_has_custom_key_preview_animation_params"
|
||||
android:key="pref_key_preview_dismiss_end_x_scale"
|
||||
android:title="@string/prefs_key_popup_dismiss_end_x_scale_settings"
|
||||
latin:maxValue="100" /> <!-- percent -->
|
||||
<org.dslul.openboard.inputmethod.latin.settings.SeekBarDialogPreference
|
||||
android:dependency="pref_has_custom_key_preview_animation_params"
|
||||
android:key="pref_key_preview_dismiss_end_y_scale"
|
||||
android:title="@string/prefs_key_popup_dismiss_end_y_scale_settings"
|
||||
latin:maxValue="100" /> <!-- percent -->
|
||||
<org.dslul.openboard.inputmethod.latin.settings.SeekBarDialogPreference
|
||||
android:dependency="pref_has_custom_key_preview_animation_params"
|
||||
android:key="pref_key_preview_show_up_duration"
|
||||
android:title="@string/prefs_key_popup_show_up_duration_settings"
|
||||
latin:maxValue="100" /> <!-- milliseconds -->
|
||||
<org.dslul.openboard.inputmethod.latin.settings.SeekBarDialogPreference
|
||||
android:dependency="pref_has_custom_key_preview_animation_params"
|
||||
android:key="pref_key_preview_dismiss_duration"
|
||||
android:title="@string/prefs_key_popup_dismiss_duration_settings"
|
||||
latin:maxValue="100" /> <!-- milliseconds -->
|
||||
<PreferenceCategory
|
||||
android:key="pref_key_dump_dictionaries"
|
||||
android:title="@string/prefs_dump_dynamic_dicts">
|
||||
|
|
Loading…
Add table
Reference in a new issue