mirror of
https://github.com/zxing/zxing.git
synced 2025-03-05 20:48:51 -08:00
Tweak text size in results
This commit is contained in:
parent
6b9a59a593
commit
b1591369bb
|
@ -173,7 +173,7 @@ public final class CaptureActivity extends Activity implements SurfaceHolder.Cal
|
||||||
TextView statusView = (TextView) findViewById(R.id.status_view);
|
TextView statusView = (TextView) findViewById(R.id.status_view);
|
||||||
String text = result.getText();
|
String text = result.getText();
|
||||||
statusView.setText(text);
|
statusView.setText(text);
|
||||||
statusView.setTextSize(TypedValue.COMPLEX_UNIT_SP, Math.max(14, 72 - text.length() / 2));
|
statusView.setTextSize(TypedValue.COMPLEX_UNIT_SP, Math.max(14, 56 - text.length() / 4));
|
||||||
statusView.setVisibility(View.VISIBLE);
|
statusView.setVisibility(View.VISIBLE);
|
||||||
this.result = result;
|
this.result = result;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue