title: Fit image of random size into a ImageView
body: <p>I have a imageview which will contain later some images with random size
  I want to fill the imageview with the images but 
  keeping the ratio(so don 't use scale type FITXY or centercrop because it trim part of my image)</p>
  
  <p>How can i do this ?</p>
  
  <p>In this test code,I have blank spaces on left and right of my images</p>
  
  <pre><code>    &lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:layout_width="fill_parent"
      android:layout_height="fill_parent"
  
  
       &gt;
  
     &lt;ImageView
          android:id="@+id/imgTest"
          android:layout_width="fill_parent"
          android:layout_height="fill_parent"
          android:adjustViewBounds="true"
          android:scaleType="fitCenter"
  
          android:src="@drawable/test"
        /&gt;
  </code></pre>
  
  <p></p>