Android: How do I get the x y coordinates within an image / ImageView?
<p>I have an image (ImageView) on my screen. The image takes up roughly half of the screen which means that you can click both on the image and on the side of the image.</p>

<p>How to I get the x -and y coordinates on the screen when I click on the image?</p>

<p>I tried using onTouchEvent but it is only called when I click outside of the image, not when I click on the image.</p>

<p>Regards,
Mattias</p>
