Add configuration boolean for fading key top letter

Bug: 11518021
Change-Id: I1297a258650f4b2f81b942bbfbfbc2dba686ef20
This commit is contained in:
Tadashi G. Takaoka 2013-11-21 14:39:59 +09:00
parent 16d1e77a16
commit 9eb8814931

View file

@ -157,6 +157,7 @@ public final class MainKeyboardView extends KeyboardView implements PointerTrack
private final SlidingKeyInputPreview mSlidingKeyInputPreview;
// Key preview
private static final boolean FADE_OUT_KEY_TOP_LETTER_WHEN_KEY_IS_PRESSED = false;
private final int mKeyPreviewLayoutId;
private final int mKeyPreviewOffset;
private final int mKeyPreviewHeight;
@ -1177,7 +1178,8 @@ public final class MainKeyboardView extends KeyboardView implements PointerTrack
params.mAnimAlpha = mAltCodeKeyWhileTypingAnimAlpha;
}
// 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
// background color when the user presses the key.
return;