1

Get absolute position on scalable and movable canvas

view story
linux-howto

http://stackoverflow.com – I am writing android app where I have a canvas that can be zoomed in or out and translated in any direction. Now what I need to know is what is the position of user finger ON CANVAS, not on screen. The problem is that I have to write this app with API 9 compatibility. What I have achieved is that without scaling everything works well. But it is not enough for me ;) I've tried http://stackoverflow.com/a/6836446/1849493 but it didn't solve my problem. Some of my code: @Override public void onDraw(Canvas canvas) { canvas.save(); canvas.translate(xPos_, yPos_); canvas.scale(scal (HowTos)