I have a bitmap drawn on a canvas attached to a View with clipChildren = false. So, I am drawing this bitmap outside the view bounds on the canvas.
canvas.drawBitmap(mBitmap, null, rect1, null);
Also, I have defined a destination Rect (rect1) for my bitmap which encapsulates its bounds and position. So far so good.
Now onTouch / onSwipe on this View, I want to animate this bitmap which I can only do frame by frame by post invalidating the view and redrawing in onDraw.
I also have another Rect (rect2), which should be the new destination Rect of my bitmap post animation.
Question : How can I animate from rect1 to rect2 by re-drawing the bitmap frame by frame on canvas ?
Help me!