Bitmap will not resize to ImageView bounds
<p>I have a custom ImageView class that displays a Bitmap from the sdcard, here's the xml:</p>

<pre><code>&lt;org.campbell.imagerender.EditImageView
    android:id="@+id/img"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:scaleType="fitStart"
    android:layout_centerHorizontal="true"
    android:adjustViewBounds="true"/&gt;
</code></pre>

<p>In the overridden onDraw method I want to make some changes to the bitmap and then re-draw it. </p>

<pre><code>@Override
protected void onDraw(Canvas canvas) {
    super.onDraw(canvas);

    Drawable d = this.getDrawable();
    currentBitmap = ((BitmapDrawable)d).getBitmap();

    // ...

    Matrix matrix = new Matrix();
    canvas.drawBitmap(currentBitmap, matrix, this.paint);
    this.setScaleType(ImageView.ScaleType.FIT_START);
    this.setAdjustViewBounds(true);

}
</code></pre>

<p>What happens is when I re-draw the image it doesn't resize to the dimensions of the ImageView, despite using setScaleType and setAdjustViewBounds. If the image is larger than the ImageView I just get a cropped top-left portion of it. </p>
