Skip to content

Commit

Permalink
increase text size, add units (°, %)
Browse files Browse the repository at this point in the history
  • Loading branch information
woheller69 committed Oct 13, 2021
1 parent e62716f commit f9d7107
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
*/
public enum DisplayType {

ANGLE(R.string.angle, R.string.angle_summary, "00.0", "88.8", 99.9f),
INCLINATION(R.string.inclination, R.string.inclination_summary, "000.0", "888.8", 999.9f);
ANGLE(R.string.angle, R.string.angle_summary, "00.0\u2009°", "88.8\u2009°", 99.9f),
INCLINATION(R.string.inclination, R.string.inclination_summary, "000.0\u2009'%'", "888.8\u2009%", 999.9f);

private int label;
private int summary;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,7 @@ private void doDraw(Canvas canvas) {
displayRect.centerY() + lcdHeight / 2,
lcdBackgroundPaint);
canvas.drawText(
displayFormat.format(angle2),
displayFormat.format(angle2),
middleX - (displayRect.width() + displayGap) / 2,
displayRect.centerY() + lcdHeight / 2,
lcdForegroundPaint);
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/values/dimens.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<dimen name="bubble_padding_right">2dip</dimen>
<dimen name="bubble_padding_left">2dip</dimen>
<!-- LCD -->
<dimen name="lcd_text">20dip</dimen>
<dimen name="lcd_text">32dip</dimen>
<!-- LOCK -->
<dimen name="lock_text">32dip</dimen>
<!-- INFO -->
Expand Down

0 comments on commit f9d7107

Please sign in to comment.