mirror of
https://github.com/Helium314/HeliBoard.git
synced 2025-05-25 11:22:20 +00:00
Reduce popup size and remove popup anim delay
popups are still too slow when typing fast. Needs to be improved
This commit is contained in:
parent
111be29ab4
commit
0c63635a3c
9 changed files with 32 additions and 13 deletions
|
@ -9,7 +9,7 @@ android {
|
|||
applicationId "org.dslul.openboard.inputmethod.latin"
|
||||
minSdkVersion 19
|
||||
targetSdkVersion 29
|
||||
versionCode 9
|
||||
versionCode 10
|
||||
versionName "1.3"
|
||||
}
|
||||
|
||||
|
|
17
app/proguard-rules.pro
vendored
Normal file
17
app/proguard-rules.pro
vendored
Normal file
|
@ -0,0 +1,17 @@
|
|||
# Add project specific ProGuard rules here.
|
||||
# By default, the flags in this file are appended to flags specified
|
||||
# in /home/iwo/android-sdk/tools/proguard/proguard-android.txt
|
||||
# You can edit the include path and order by changing the proguardFiles
|
||||
# directive in build.gradle.
|
||||
#
|
||||
# For more details, see
|
||||
# http://developer.android.com/guide/developing/tools/proguard.html
|
||||
|
||||
# Add any project specific keep options here:
|
||||
|
||||
# If your project uses WebView with JS, uncomment the following
|
||||
# and specify the fully qualified class name to the JavaScript interface
|
||||
# class:
|
||||
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
|
||||
# public *;
|
||||
#}
|
|
@ -132,7 +132,7 @@ public final class KeyPreviewChoreographer {
|
|||
keyPreviewView.setPreviewBackground(hasMoreKeys, keyPreviewPosition);
|
||||
// The key preview is placed vertically above the top edge of the parent key with an
|
||||
// arbitrary offset.
|
||||
final int previewY = key.getY() - previewHeight + mParams.mPreviewOffset
|
||||
final int previewY = key.getY() - previewHeight + key.getHeight()
|
||||
+ CoordinateUtils.y(originCoords);
|
||||
|
||||
ViewLayoutUtils.placeViewAt(
|
||||
|
|
|
@ -107,7 +107,7 @@ public final class InputAttributes {
|
|||
|| InputTypeUtils.isEmailVariation(variation)
|
||||
|| InputType.TYPE_TEXT_VARIATION_URI == variation
|
||||
|| InputType.TYPE_TEXT_VARIATION_FILTER == variation
|
||||
|| flagNoSuggestions
|
||||
//|| flagNoSuggestions
|
||||
|| flagAutoComplete;
|
||||
mShouldShowSuggestions = !shouldSuppressSuggestions;
|
||||
|
||||
|
|
|
@ -17,6 +17,7 @@
|
|||
package org.dslul.openboard.inputmethod.latin;
|
||||
|
||||
import android.text.TextUtils;
|
||||
import android.util.Log;
|
||||
|
||||
import org.dslul.openboard.inputmethod.keyboard.Keyboard;
|
||||
import org.dslul.openboard.inputmethod.latin.SuggestedWords.SuggestedWordInfo;
|
||||
|
@ -294,6 +295,7 @@ public final class Suggest {
|
|||
final SuggestionResults suggestionResults = mDictionaryFacilitator.getSuggestionResults(
|
||||
wordComposer.getComposedDataSnapshot(), ngramContext, keyboard,
|
||||
settingsValuesForSuggestion, SESSION_ID_GESTURE, inputStyle);
|
||||
|
||||
// For transforming words that don't come from a dictionary, because it's our best bet
|
||||
final Locale locale = mDictionaryFacilitator.getLocale();
|
||||
final ArrayList<SuggestedWordInfo> suggestionsContainer =
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
android:color="#424242" />
|
||||
<size
|
||||
android:height="5dp"
|
||||
android:width="45dp"/>
|
||||
android:width="40dp"/>
|
||||
<padding android:left="5dp"
|
||||
android:top="5dp"
|
||||
android:right="5dp"
|
||||
|
|
|
@ -32,14 +32,14 @@
|
|||
|
||||
<integer name="config_ignore_alt_code_key_timeout">350</integer>
|
||||
|
||||
<integer name="config_key_preview_show_up_duration">17</integer>
|
||||
<integer name="config_key_preview_dismiss_duration">53</integer>
|
||||
<fraction name="config_key_preview_show_up_start_scale">98%</fraction>
|
||||
<fraction name="config_key_preview_dismiss_end_scale">94%</fraction>
|
||||
<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">70</integer>
|
||||
<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">1000</integer>
|
||||
<integer name="config_suppress_key_preview_after_batch_input_duration">100</integer>
|
||||
|
||||
<bool name="config_default_vibration_enabled">true</bool>
|
||||
<integer name="config_max_vibration_duration">100</integer>
|
||||
|
|
|
@ -44,8 +44,8 @@
|
|||
<dimen name="config_more_keys_keyboard_vertical_correction_holo">-26.4dp</dimen>
|
||||
<dimen name="config_key_preview_offset_holo">8.0dp</dimen>
|
||||
<dimen name="config_key_preview_height_holo">80dp</dimen>
|
||||
<dimen name="config_key_preview_offset_lxx">50.0dp</dimen>
|
||||
<dimen name="config_key_preview_height_lxx">122dp</dimen>
|
||||
<dimen name="config_key_preview_offset_lxx">45.0dp</dimen>
|
||||
<dimen name="config_key_preview_height_lxx">111dp</dimen>
|
||||
<fraction name="config_key_preview_text_ratio">82%</fraction>
|
||||
<fraction name="config_key_letter_ratio_holo">55%</fraction>
|
||||
<fraction name="config_key_letter_ratio_lxx">55%</fraction>
|
||||
|
|
|
@ -18,5 +18,5 @@
|
|||
*/
|
||||
-->
|
||||
<resources>
|
||||
<bool name="config_gesture_input_enabled_by_build_config">false</bool>
|
||||
<bool name="config_gesture_input_enabled_by_build_config">true</bool>
|
||||
</resources>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue