diff options
| author | Jules Aguillon | 2022-10-24 00:27:49 +0200 |
|---|---|---|
| committer | Jules Aguillon | 2022-10-24 00:27:49 +0200 |
| commit | 2e598a4d476fde86484cb551c4be77dc5298e7b0 (patch) | |
| tree | 4248338974ad49650abf63e6845779141f4ed79b /srcs/juloo.keyboard2/Theme.java | |
| parent | e01a2733b14e6c19cad3b5048a0b43f0563d7d51 (diff) | |
| download | unexpected-keyboard-2e598a4d476fde86484cb551c4be77dc5298e7b0.tar.gz unexpected-keyboard-2e598a4d476fde86484cb551c4be77dc5298e7b0.zip | |
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.
Diffstat (limited to 'srcs/juloo.keyboard2/Theme.java')
| -rw-r--r-- | srcs/juloo.keyboard2/Theme.java | 7 |
1 files changed, 7 insertions, 0 deletions
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); |
