mirror of
https://gitlab.futo.org/keyboard/latinime.git
synced 2024-09-28 14:54:30 +01:00
Add configuration boolean for fading key top letter
Bug: 11518021 Change-Id: I1297a258650f4b2f81b942bbfbfbc2dba686ef20
This commit is contained in:
parent
16d1e77a16
commit
9eb8814931
@ -157,6 +157,7 @@ public final class MainKeyboardView extends KeyboardView implements PointerTrack
|
|||||||
private final SlidingKeyInputPreview mSlidingKeyInputPreview;
|
private final SlidingKeyInputPreview mSlidingKeyInputPreview;
|
||||||
|
|
||||||
// Key preview
|
// Key preview
|
||||||
|
private static final boolean FADE_OUT_KEY_TOP_LETTER_WHEN_KEY_IS_PRESSED = false;
|
||||||
private final int mKeyPreviewLayoutId;
|
private final int mKeyPreviewLayoutId;
|
||||||
private final int mKeyPreviewOffset;
|
private final int mKeyPreviewOffset;
|
||||||
private final int mKeyPreviewHeight;
|
private final int mKeyPreviewHeight;
|
||||||
@ -1177,7 +1178,8 @@ public final class MainKeyboardView extends KeyboardView implements PointerTrack
|
|||||||
params.mAnimAlpha = mAltCodeKeyWhileTypingAnimAlpha;
|
params.mAnimAlpha = mAltCodeKeyWhileTypingAnimAlpha;
|
||||||
}
|
}
|
||||||
// Don't draw key top letter when key preview is showing.
|
// Don't draw key top letter when key preview is showing.
|
||||||
if (mShowingKeyPreviewTextViews.containsKey(key)) {
|
if (FADE_OUT_KEY_TOP_LETTER_WHEN_KEY_IS_PRESSED
|
||||||
|
&& mShowingKeyPreviewTextViews.containsKey(key)) {
|
||||||
// TODO: Fade out animation for the key top letter, and fade in animation for the key
|
// TODO: Fade out animation for the key top letter, and fade in animation for the key
|
||||||
// background color when the user presses the key.
|
// background color when the user presses the key.
|
||||||
return;
|
return;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user