1
0
mirror of https://github.com/oliexdev/openScale.git synced 2025-08-22 08:13:43 +02:00

Add some tiny space between indicator and text

This commit is contained in:
Erik Johansson
2018-02-01 20:47:00 +01:00
parent c8d45b2469
commit 9db1a355a3

View File

@@ -202,7 +202,7 @@ public class LinearGaugeView extends View {
final String valueStr = String.format(Locale.getDefault(), "%.2f", value);
indicatorPaint.getTextBounds(valueStr, 0, valueStr.length(), bounds);
drawCenteredText(canvas, valueStr, valuePos,
indicatorBottom + bounds.height(), indicatorPaint);
indicatorBottom + bounds.height() + 2, indicatorPaint);
}
@Override