title: How to adjust imageview width and height correctly
body: <p>i am trying to load/capture (load from gallery|capture from camera) an image and to upload the image back into imageview. what i want is original sized image?. for already captured images it works but when i am trying to upload image after capture there left  empty spaces before and after imageview. the empty spaces are more than image size</p>
  
  <p>Help me how to fix it? </p>
  
  <p>My xml Code is</p>
  
  <pre><code>&lt;ScrollView 
   android:layout_width="wrap_content"
   android:layout_height="fill_parent"
   android:layout_below="@id/UploadetAboutImageGallery"&gt;
  &lt;LinearLayout  
   android:layout_width="fill_parent"
   android:layout_height="fill_parent" &gt;
  &lt;RelativeLayout 
   android:layout_width="fill_parent"
   android:layout_height="fill_parent" &gt;
  &lt;ImageView 
   android:layout_width="wrap_content"
   android:layout_height="fill_parent"
   android:id="@+id/UploadimageBeingTaken"
   android:background="#FF0"
   android:visibility="gone"/&gt;
  &lt;Button 
   android:layout_width="120dp" 
   android:layout_height="50dp"
   android:id="@+id/UploadbtnUpload"
   android:layout_alignParentBottom="true"
   android:text="UpLoad"
   android:layout_alignParentLeft="true"
   android:background="#ed4022"
   android:textColor="#FFF"
   android:layout_margin="10dp"
   android:visibility="gone" /&gt;
   &lt;Button 
   android:layout_width="120dp"
   android:layout_height="50dp"
   android:id="@+id/UploadbtnChange"
   android:layout_alignParentRight="true"
   android:text="Change"
   android:background="#ed4022"
   android:textColor="#FFF"
   android:layout_margin="10dp"
   android:layout_alignParentBottom="true"
   android:visibility="gone"&gt;&lt;/Button&gt;
   &lt;/RelativeLayout&gt;
   &lt;/LinearLayout&gt;
   &lt;/ScrollView&gt;
  </code></pre>