my problem is to click on imageview and to know where, on the image (resized by imageview), i click on.
My current algorithm is:
On the onTouch method of ImageView, get the X and Y positions of the MotionEvent and do the math
int realX = (X / this.getWidth()) * bitmapWidth;
int realY = (Y / this.getHeight()) * bitmapHeight;
Where bitpmapWidth and bitmapHeight are from the original bitmap.
Can anyone help me?