I would try this tutorial if you haven't seen it yet.

http://www.droidnova.com/playing-with-graphics-in-android-part-i,147.html

It shows you how to add multiple graphics, and how to store each ones
position, move them around etc.

Or just set an onClickListener for each graphic. When you touch that
graphic it will go to that specific listener then get the x, y
coordinates of that graphic.

Hope that helps somewhat.



On Jul 7, 8:58 am, optical <[email protected]> wrote:
> Hello,
>
> I have a single bitmap with several individual pictures in (each one
> is an option) and I would like to detect when the user touches these
> pictures.
> I am using the event.getX and event.getY to detect where is pressed, I
> know the top left X Y and bottom right location of each of the
> pictures.  What is the best way of detecting which one is pressed??
> (i.e. tieing up the event press and which picture has been pressed??
>
> Thanks
> OT

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to