Ovelay image over loaded image in the touched position

67 Views Asked by At

I need to add a picture over a touched position in an image or directly on camera preview.

How could get the touch coordinates and set the image in the touched area?

And If I want to move the added images?

What is the right way to code this stuff? Is there some sample or tutorial?

1

There are 1 best solutions below

0
On

event.getX() and event.getY() should give you the coordinates.

Here is a more detailed answer on getting the coordinates. Get the co-ordinates of a touch event on Android