title: Android GridView stretchMode with Async ImageView Loading
body: <p>I have the following GridView defined w/stretchMode set to "columnWidth".</p>
  
  <pre><code>&lt;GridView android:id="@+id/grid"
      android:layout_width="fill_parent" 
      android:layout_height="wrap_content"
      android:columnWidth="160dp"
      android:numColumns="auto_fit"
      android:verticalSpacing="10dp"
      android:horizontalSpacing="10dp"
      android:stretchMode="columnWidth"
      android:listSelector="@drawable/list_selector"
  /&gt;
  </code></pre>
  
  <p>Each item in the GridView is structured as follows.</p>
  
  <pre><code>&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:orientation="vertical"
      android:layout_width="match_parent" 
      android:layout_height="wrap_content"
      android:padding="2dp"
  &gt;
      &lt;FrameLayout
          android:layout_width="match_parent" 
          android:layout_height="wrap_content"
      &gt;
          &lt;ImageView android:id="@+id/videoGridItemImage"
              android:layout_width="match_parent" 
              android:layout_height="wrap_content"
              android:adjustViewBounds="true"
          /&gt;
          &lt;TextView android:id="@+id/videoGridItemDuration"
              android:layout_width="wrap_content"  
              android:layout_height="wrap_content"    
              android:layout_gravity="bottom"    
              android:background="#88000000"
              android:textColor="#F1F1F1"
              android:textAppearance="@android:style/TextAppearance.Small"
              android:padding="2dp"
          /&gt;
      &lt;/FrameLayout&gt;
      &lt;TextView android:id="@+id/videoGridItemTitle" 
          android:layout_width="match_parent" 
          android:layout_height="wrap_content"
          android:gravity="left"
          android:textAppearance="@android:style/TextAppearance.Medium"
          android:textColor="#F1F1F1"
          android:maxLines="1"
          android:background="#88000000"
          android:paddingLeft="2dp"
          android:paddingRight="2dp"
      /&gt;
      &lt;TextView android:id="@+id/videoGridItemSubtitle" 
          android:layout_width="match_parent" 
          android:layout_height="wrap_content"
          android:gravity="left"
          android:textStyle="italic"
          android:textColor="#666"
          android:textAppearance="@android:style/TextAppearance.Small" 
          android:maxLines="1"
          android:background="#88000000"
          android:paddingLeft="2dp"
          android:paddingRight="2dp"
      /&gt;
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>In the GridView's adapter, I'm async loading and displaying the images by passing the url and reference of the ImageView to a dedicated class.  The class downloads the image into a bitmap and then updates the ImageView using setImageBitmap().  This workflow functions as expected; however, my images aren't filling the entire width of the ImageView.  There's a small amount of paddding on the left/right sides.  I realize that I can use scaleType="fitXY", but this isn't ideal as it skews the images.  Setting the src attribute of ImageView to a local image scales just fine with stretchMode="columnWidth".  My guess is that the ImageView is scaling to the original columnWidth and not the stretched/dynamic width. Does anyone have any insight as to why this is occurring and/or how to fix?  Thanks in advance for your help.</p>