mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-11-25 03:16:51 +01:00
SleepMonitorActivity: Rotate annotation text for better readability
This commit is contained in:
parent
813a02d5c7
commit
baecc20742
@ -159,7 +159,10 @@ public class SleepMonitorActivity extends Activity implements SurfaceHolder.Call
|
|||||||
date = cal.getTime();
|
date = cal.getTime();
|
||||||
String dateString = new SimpleDateFormat("HH:mm").format(date);
|
String dateString = new SimpleDateFormat("HH:mm").format(date);
|
||||||
paint.setColor(Color.WHITE);
|
paint.setColor(Color.WHITE);
|
||||||
canvas.drawText(dateString, r.left - 20, r.top - 20, paint);
|
canvas.save();
|
||||||
|
canvas.rotate(-90.0f, r.left, r.top);
|
||||||
|
canvas.drawText(dateString, r.left + 10, r.top + 10, paint);
|
||||||
|
canvas.restore();
|
||||||
}
|
}
|
||||||
last_type = type;
|
last_type = type;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user