Shrink the text size in the buttons so the start button text fits on the Nexus 9

This commit is contained in:
Cameron Gutman 2016-01-20 01:30:48 -05:00
parent cb6d4a385c
commit da0a505978

View File

@ -144,7 +144,7 @@ public class DigitalButton extends VirtualControllerElement {
// set transparent background
canvas.drawColor(Color.TRANSPARENT);
paint.setTextSize(getPercent(getCorrectWidth(), 50));
paint.setTextSize(getPercent(getWidth(), 30));
paint.setTextAlign(Paint.Align.CENTER);
paint.setStrokeWidth(getDefaultStrokeWidth());
@ -159,7 +159,8 @@ public class DigitalButton extends VirtualControllerElement {
d.draw(canvas);
} else {
paint.setStyle(Paint.Style.FILL_AND_STROKE);
canvas.drawText(text, getPercent(getWidth(), 50), getPercent(getHeight(), 73), paint);
paint.setStrokeWidth(getDefaultStrokeWidth()/2);
canvas.drawText(text, getPercent(getWidth(), 50), getPercent(getHeight(), 63), paint);
}
}