このライブラリで、縦画面にも対応したい。
CompoundBarcodeViewを使うといいらしい。
http://osa030.hatenablog.com/entry/2015/10/14/190350 を参考にする。
そして、普通のバーコードだけ読むように無理やり設定する方法
Intent intent = new Intent();
intent.putExtra(Intents.Scan.MODE, Intents.Scan.ONE_D_MODE);
Set<BarcodeFormat> decodeFormats = DecodeFormatManager.parseDecodeFormats(intent);
Map<DecodeHintType, Object> decodeHints = DecodeHintManager.parseDecodeHints(intent);
mBarcodeView = (CompoundBarcodeView) findViewById(R.id.barcodeView);
mBarcodeView.getBarcodeView().setDecoderFactory(new DefaultDecoderFactory(decodeFormats, decodeHints, null, false));