@Override
    public boolean onKeyDown(int keyCode, KeyEvent event) {
        return barcodeScannerView.onKeyDown(keyCode, event) || super.onKeyDown(keyCode, event);
    }
Override to use a different layout.

@return the DecoratedBarcodeView
zxing-android-embedded/src/com/journeyapps/barcodescanner/CaptureActivity.java