ScaleAnimation scales not the size of the view
<p>I just created my own zooming image.
The image has an onClick-Listener that starts a ScaleAnimation.</p>

<p>When I set fillAfter true the image will be small, but the size of the view didn't change. Therefor the area, which is clickable, is bigger than the image. I got a webview under the image which is never scrollable.</p>

<pre><code>imageHeight = view.getHeight();
ratio = (float)smallImageWidth / view.getHeight();
scaleAnimation = new ScaleAnimation(1, ratio, 1, ratio);
scaleAnimation.setAnimationListener(this);
view.startAnimation(scaleAnimation);
</code></pre>

<p>My solution is that I resize the image in animationDidEnd but that results in a flicker.</p>

<pre><code>params.height = (int) (holder.imageView.getHeight() * values[Matrix.MSCALE_Y]);
params.width = (int) (holder.imageView.getWidth() * values[Matrix.MSCALE_X]);
</code></pre>

<p>Did anybody has a solution for this problem.</p>

<p>Thanks,
C3000 </p>
