mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-08-19 22:00:53 +02: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) {
|
||||
|
||||
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();
|
||||
}}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user