Canvas Zoom goes to point (0,0)
问题 I am having a problem in zooming the canvas. I have made a customized view in which I am drawing relationship diagrams now when I zoom out the canvas in goes to the position (0,0). I have seen different threads and questions but could not find appropriate answer. What i am doing in onDraw Method is. canvas.scale(mScaleFactor, mScaleFactor); I have also seen the canvas.scale(x, y, px, py) method but i do not know how to get the pivot points of x and y. public boolean onScale