Skip to content

Commit b159136

Browse files
committed
Tweak text size in results
1 parent 6b9a59a commit b159136

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

glass/src/com/google/zxing/client/glass/CaptureActivity.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ void setResult(Result result) {
173173
TextView statusView = (TextView) findViewById(R.id.status_view);
174174
String text = result.getText();
175175
statusView.setText(text);
176-
statusView.setTextSize(TypedValue.COMPLEX_UNIT_SP, Math.max(14, 72 - text.length() / 2));
176+
statusView.setTextSize(TypedValue.COMPLEX_UNIT_SP, Math.max(14, 56 - text.length() / 4));
177177
statusView.setVisibility(View.VISIBLE);
178178
this.result = result;
179179
}

0 commit comments

Comments
 (0)