mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2025-01-14 11:47:32 +01:00
adjust Steps Charts steps values offset to account for large phone screen sizes
This commit is contained in:
parent
e63b6986c6
commit
71cb53a440
@ -32,15 +32,12 @@ public class AngledLabelsChartRenderer extends BarChartRenderer {
|
|||||||
public void drawValue(Canvas canvas, String valueText, float x, float y, int color) {
|
public void drawValue(Canvas canvas, String valueText, float x, float y, int color) {
|
||||||
|
|
||||||
mValuePaint.setColor(color);
|
mValuePaint.setColor(color);
|
||||||
|
|
||||||
//move position to the center of bar
|
//move position to the center of bar
|
||||||
x=x+8;
|
x = x + 8;
|
||||||
y=y-25;
|
y = y - 32;
|
||||||
|
|
||||||
canvas.save();
|
canvas.save();
|
||||||
canvas.rotate(-90, x, y);
|
canvas.rotate(-90, x, y);
|
||||||
|
|
||||||
canvas.drawText(valueText, x, y, mValuePaint);
|
canvas.drawText(valueText, x, y, mValuePaint);
|
||||||
|
|
||||||
canvas.restore();
|
canvas.restore();
|
||||||
}}
|
}
|
||||||
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user