Use keyTextStyle to draw popup hint "..." text
Also popup hint "..." text doesn't follow the alpha animation of alt-while-key-typing. Bug: 6333266 Change-Id: I08b548a8922e6fe5e9ff036ff75cadf39fb9358amain
parent
a7352c8df4
commit
423b30d59c
|
@ -713,9 +713,9 @@ public class KeyboardView extends View implements PointerTracker.DrawingProxy {
|
||||||
final int keyWidth = key.mWidth - key.mVisualInsetsLeft - key.mVisualInsetsRight;
|
final int keyWidth = key.mWidth - key.mVisualInsetsLeft - key.mVisualInsetsRight;
|
||||||
final int keyHeight = key.mHeight;
|
final int keyHeight = key.mHeight;
|
||||||
|
|
||||||
|
paint.setTypeface(params.mKeyTextStyle);
|
||||||
paint.setTextSize(params.mKeyHintLetterSize);
|
paint.setTextSize(params.mKeyHintLetterSize);
|
||||||
paint.setColor(params.mKeyHintLabelColor);
|
paint.setColor(params.mKeyHintLabelColor);
|
||||||
params.blendAlpha(paint);
|
|
||||||
paint.setTextAlign(Align.CENTER);
|
paint.setTextAlign(Align.CENTER);
|
||||||
final float hintX = keyWidth - params.mKeyHintLetterPadding
|
final float hintX = keyWidth - params.mKeyHintLetterPadding
|
||||||
- getCharWidth(KEY_LABEL_REFERENCE_CHAR, paint) / 2;
|
- getCharWidth(KEY_LABEL_REFERENCE_CHAR, paint) / 2;
|
||||||
|
|
Loading…
Reference in New Issue