mirror of
https://github.com/zxing/zxing.git
synced 2024-11-10 04:54:04 -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);
|
||||
String text = result.getText();
|
||||
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);
|
||||
this.result = result;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue