How can I make my image rotate about a fixed point when using bitmap?
<p>I'm trying to rotate an image at a fixed point, but the image is rotating at its top left position. I've tried rotateAnimation and it works fine, but the problem is when I rotate my image again it starts rotating from the original position.</p>

<pre><code>    Bitmap bmp = BitmapFactory.decodeResource(getResources(), R.drawable.arw2);
    int w = bmp.getWidth();
    int h = bmp.getHeight();
    float px = 160,py = 215;
    Matrix mtx = new Matrix();
mtx.setRotate(rAngle, px, py);
Bitmap rotatedBMP = Bitmap.createBitmap(bmp, 0, 0, w, h, mtx, true);
BitmapDrawable bmd = new BitmapDrawable(rotatedBMP);
myImageView.setImageDrawable(bmd);
</code></pre>

<p>What am I doing wrong?</p>
