title: ZXing double image/overlay after scan
body: <p>I am using the ZXing library, fully integrated with jar files, in my Android app and have the following problem:</p>
  
  <p><strong>Problem:</strong></p>
  
  <p>After scanning a barcode, the scanned image stays on top on the live camera feed at about 50% transparency for about 1-2 seconds.  </p>
  
  <p><strong>Question:</strong></p>
  
  <p>Is there any way to have just the scanned image appear at 0% transparency, instead of the strange overlay? Or, even better, can it show a custom fragment?</p>
  
  <p>Thank you. </p>
  
  <p><strong>Code: [w/o unrelated parts]</strong></p>
  
  <pre><code>public static void initiateScan(Fragment fragment) {
      IntentIntegrator ii = new IntentIntegrator(fragment);
      DisplayMetrics dm = fragment.getResources().getDisplayMetrics();
      ii.addExtra("SCAN_WIDTH", dm.heightPixels);
      ii.addExtra("SCAN_HEIGHT", dm.widthPixels / 4);
      ii.addExtra("SCAN_MODE", "ONE_D_MODE");
  
      List&lt;String&gt; c = new ArrayList&lt;String&gt;();
      c.add("CODE_39");
  
      ii.initiateScan(c, -1);
  }
  
  public void onActivityResult(int requestCode, int resultCode, Intent data) {
      super.onActivityResult(requestCode, resultCode, data);
  
      if(requestCode==IntentIntegrator.REQUEST_CODE) { // scan from ZXing
          String raw_vin=null;
          String vin = null;
          boolean success=false;
  
          IntentResult result = IntentIntegrator.parseActivityResult(requestCode, 
                                  resultCode, data);
          if(result!=null)
          {
              String content = result.getContents();
              if(content!=null)
              {
                  raw_vin=content;
                  vin=raw_vin;
                  success=true;
              }
          }
      }
  }
  </code></pre>
  
  <p><strong>Example:</strong></p>
  
  <p><a href="https://i.stack.imgur.com/l963J.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/l963J.jpg" alt="Example of double image"></a></p>