From 2e598a4d476fde86484cb551c4be77dc5298e7b0 Mon Sep 17 00:00:00 2001 From: Jules Aguillon Date: Mon, 24 Oct 2022 00:27:49 +0200 Subject: Draw letter indication on the pin layout There is no way to type letters on the pin layout, the indication are decoration only. Use the E.161 standard. --- srcs/juloo.keyboard2/Theme.java | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'srcs/juloo.keyboard2/Theme.java') diff --git a/srcs/juloo.keyboard2/Theme.java b/srcs/juloo.keyboard2/Theme.java index e7c7e7f..0adc977 100644 --- a/srcs/juloo.keyboard2/Theme.java +++ b/srcs/juloo.keyboard2/Theme.java @@ -25,6 +25,7 @@ public class Theme private final Paint _specialKeyLabelPaint; private final Paint _keySubLabelPaint; private final Paint _specialKeySubLabelPaint; + private final Paint _indicationPaint; public Theme(Context context, AttributeSet attrs) { @@ -45,6 +46,7 @@ public class Theme Typeface specialKeyFont = getKeyFont(context); _specialKeyLabelPaint = initLabelPaint(Paint.Align.CENTER, specialKeyFont); _specialKeySubLabelPaint = initLabelPaint(Paint.Align.LEFT, specialKeyFont); + _indicationPaint = initLabelPaint(Paint.Align.CENTER, null); } public Paint labelPaint(boolean special_font) @@ -60,6 +62,11 @@ public class Theme return p; } + public Paint indicationPaint() + { + return _indicationPaint; + } + private Paint initLabelPaint(Paint.Align align, Typeface font) { Paint paint = new Paint(Paint.ANTI_ALIAS_FLAG); -- cgit v1.2.3