validate sharedelement transition after canvas.scale android
<p>I did a couple of google searches and couldnt figure this one out.
I am trying to duplicate the google photo behaviour that when one pinches a image the image transitions back to the place.</p>

<p>everything is working. 
the only problem is when the back transition is happening the transition happends from the old full size image.</p>

<p>to be more clear i scale the canvas of the rootview of my activity so that everything inside the activity is scaled down.
in this case the content inside the rootview is just a image.
in the end of the pinch the scalefactor will be 0.5f. (50% of the normal size)
then the return transition takes place and the problem happends. the transition scales up to the original(100%) size before animating, this makes it look like the scaling of the canvas never happend.</p>

<p>i hope this is clear english is not my native language.</p>

<p>code: </p>

<pre><code>    canvas.save(Canvas.MATRIX_SAVE_FLAG);
    canvas.scale(mScaleFactor, mScaleFactor,mScreenX,mScreenY);

    canvas.rotate(mRotationDegree,mScreenX,mScreenY);

    super.dispatchDraw(canvas);
    canvas.restore();
</code></pre>