Click here to Skip to main content
15,903,012 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi all,

I Have drawn a set of images(balls) on a SurfaceView. Now am trying to make the image(ball) i touch to disappear. Am having those images in a collection. Am not understanding how to generate touch event on individual image. Can any one provide
some help on this?

Thank You
Yashwanth.B
Posted

1 solution

- figure out the position of the touch event (Clickedy[^])
- check whether there is an object located at that position - if so identify it.
- kill it.

It would be helpful to be able to identify the graphical object on a ID - a String could be fine, an UUID would do the trick too and it might even be able to simply count the objects (what happens when 1 object in between is missing?)
 
Share this answer
 
v2
Comments
Simon Bang Terkildsen 2-Sep-11 8:32am    
+5

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900