title: com.google.zxing.client.android.ViewfinderView custom dialog fill issue
body: <p>I am using com.google.zxing.client.android.ViewfinderView it's working fine but talking about view I am starting code scan after button click and it opens camera on current activity in 250x250 dimension dialog. But the issue is bar code RED line doesn't come up in center rather it moves half right to the dialog window I tried to put every possible values in XML but in vain, I am posing exl and image to show how it looks like </p>
  
  <p><strong>XML</strong></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
  android:layout_width="250dp"
  android:layout_height="250dp" &gt;
  
  &lt;SurfaceView
      android:id="@+id/preview_view"
      android:layout_width="fill_parent"
      android:layout_height="fill_parent" /&gt;
  
  &lt;com.google.zxing.client.android.ViewfinderView
      android:id="@+id/viewfinder_view"
      android:layout_width="fill_parent"
      android:layout_height="fill_parent" /&gt;
  
  &lt;LinearLayout
      android:id="@+id/result_view"
      android:layout_width="fill_parent"
      android:layout_height="fill_parent"
      android:background="@color/result_view"
      android:baselineAligned="false"
      android:orientation="vertical"
      android:visibility="gone" &gt;
  
      &lt;LinearLayout
          android:layout_width="fill_parent"
          android:layout_height="wrap_content"
          android:layout_weight="1"
          android:gravity="center"
          android:orientation="horizontal"
          android:padding="@dimen/standard_padding" &gt;
  
          &lt;LinearLayout
              android:layout_width="wrap_content"
              android:layout_height="fill_parent"
              android:gravity="right|center_vertical"
              android:orientation="vertical" &gt;
  
              &lt;ImageView
                  android:id="@+id/barcode_image_view"
                  android:layout_width="160dip"
                  android:layout_height="160dip"
                  android:layout_marginBottom="@dimen/half_padding"
                  android:adjustViewBounds="true"
                  android:maxHeight="160dip"
                  android:maxWidth="160dip"
                  android:scaleType="centerInside" /&gt;
  
              &lt;LinearLayout
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content"
                  android:orientation="horizontal" &gt;
  
                  &lt;TextView
                      android:layout_width="wrap_content"
                      android:layout_height="wrap_content"
                      android:paddingRight="@dimen/half_padding"
                      android:text="@string/msg_default_format"
                      android:textColor="@color/result_minor_text"
                      android:textStyle="bold" /&gt;
  
                  &lt;TextView
                      android:id="@+id/format_text_view"
                      android:layout_width="wrap_content"
                      android:layout_height="wrap_content"
                      android:textColor="@color/result_minor_text" /&gt;
              &lt;/LinearLayout&gt;
  
              &lt;LinearLayout
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content"
                  android:orientation="horizontal" &gt;
  
                  &lt;TextView
                      android:layout_width="wrap_content"
                      android:layout_height="wrap_content"
                      android:paddingRight="@dimen/half_padding"
                      android:text="@string/msg_default_type"
                      android:textColor="@color/result_minor_text"
                      android:textStyle="bold" /&gt;
  
                  &lt;TextView
                      android:id="@+id/type_text_view"
                      android:layout_width="wrap_content"
                      android:layout_height="wrap_content"
                      android:textColor="@color/result_minor_text" /&gt;
              &lt;/LinearLayout&gt;
  
              &lt;LinearLayout
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content"
                  android:orientation="horizontal" &gt;
  
                  &lt;TextView
                      android:layout_width="wrap_content"
                      android:layout_height="wrap_content"
                      android:paddingRight="@dimen/half_padding"
                      android:text="@string/msg_default_time"
                      android:textColor="@color/result_minor_text"
                      android:textStyle="bold" /&gt;
  
                  &lt;TextView
                      android:id="@+id/time_text_view"
                      android:layout_width="wrap_content"
                      android:layout_height="wrap_content"
                      android:textColor="@color/result_minor_text" /&gt;
              &lt;/LinearLayout&gt;
  
              &lt;LinearLayout
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content"
                  android:orientation="horizontal" &gt;
  
                  &lt;TextView
                      android:id="@+id/meta_text_view_label"
                      android:layout_width="wrap_content"
                      android:layout_height="wrap_content"
                      android:paddingRight="@dimen/half_padding"
                      android:text="@string/msg_default_meta"
                      android:textColor="@color/result_minor_text"
                      android:textStyle="bold" /&gt;
  
                  &lt;TextView
                      android:id="@+id/meta_text_view"
                      android:layout_width="wrap_content"
                      android:layout_height="wrap_content"
                      android:textColor="@color/result_minor_text" /&gt;
              &lt;/LinearLayout&gt;
          &lt;/LinearLayout&gt;
  
          &lt;ScrollView
              android:layout_width="wrap_content"
              android:layout_height="wrap_content" &gt;
  
              &lt;LinearLayout
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content"
                  android:orientation="vertical" &gt;
  
                  &lt;TextView
                      android:id="@+id/contents_text_view"
                      android:layout_width="wrap_content"
                      android:layout_height="wrap_content"
                      android:autoLink="web"
                      android:paddingLeft="12dip"
                      android:textColor="@color/result_text"
                      android:textColorLink="@color/result_text"
                      android:textSize="22sp" /&gt;
  
                  &lt;TextView
                      android:id="@+id/contents_supplement_text_view"
                      android:layout_width="wrap_content"
                      android:layout_height="wrap_content"
                      android:autoLink="web"
                      android:paddingLeft="12dip"
                      android:textColor="@color/result_text"
                      android:textColorLink="@color/result_text" /&gt;
              &lt;/LinearLayout&gt;
          &lt;/ScrollView&gt;
      &lt;/LinearLayout&gt;
  
      &lt;LinearLayout
          android:id="@+id/result_button_view"
          android:layout_width="fill_parent"
          android:layout_height="wrap_content"
          android:gravity="center"
          android:orientation="horizontal" &gt;
  
          &lt;Button
              android:layout_width="0dip"
              android:layout_height="wrap_content"
              android:layout_weight="1"
              android:visibility="gone" /&gt;
  
          &lt;Button
              android:layout_width="0dip"
              android:layout_height="wrap_content"
              android:layout_weight="1"
              android:visibility="gone" /&gt;
  
          &lt;Button
              android:layout_width="0dip"
              android:layout_height="wrap_content"
              android:layout_weight="1"
              android:visibility="gone" /&gt;
  
          &lt;Button
              android:layout_width="0dip"
              android:layout_height="wrap_content"
              android:layout_weight="1"
              android:visibility="gone" /&gt;
  
          &lt;Button
              android:id="@+id/shopper_button"
              android:layout_width="0dip"
              android:layout_height="wrap_content"
              android:layout_weight="1"
              android:drawableLeft="@drawable/shopper_icon"
              android:text="@string/button_google_shopper"
              android:visibility="gone" /&gt;
      &lt;/LinearLayout&gt;
  &lt;/LinearLayout&gt;
  
  &lt;TextView
      android:id="@+id/status_view"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:layout_gravity="bottom|center_horizontal"
      android:background="@color/transparent"
      android:text="@string/msg_default_status"
      android:textColor="@color/status_text" /&gt;
  
      &lt;/FrameLayout&gt;
  </code></pre>
  
  <p>this is the image I get in result ...</p>
  
  <p><img src="https://i.stack.imgur.com/TAcVa.jpg" alt="enter image description here"></p>
  
  <p>I need that red LINE to be in center ...</p>