1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-12-26 18:45:49 +01:00

adjust Steps Charts steps values offset to account for large phone screen sizes

This commit is contained in:
vanous 2021-04-02 15:59:08 +02:00
parent e63b6986c6
commit 71cb53a440

View File

@ -32,15 +32,12 @@ public class AngledLabelsChartRenderer extends BarChartRenderer {
public void drawValue(Canvas canvas, String valueText, float x, float y, int color) {
mValuePaint.setColor(color);
//move position to the center of bar
x=x+8;
y=y-25;
x = x + 8;
y = y - 32;
canvas.save();
canvas.rotate(-90, x, y);
canvas.drawText(valueText, x, y, mValuePaint);
canvas.restore();
}}
}
}