[android-developers] How to drag multiple bitmaps on Android Surfaceview
I am using a surfaceview and have drawn multiple bitmaps to the view.
My question is how can I use the touch listener to target each bitmaps
move action independently?
Basically I want the user to be able to arrange the bitmaps in any
order they like. I came up with a method of determining the space
utilized on the surfaceview for each bitmap and then checking the x
and y values of the touch listener to determine if the user was
selecting the known location of the bitmap. The problem I am having is
that if the bitmaps end up crossing each other then they stick
together as they share the same space.
I am thinking there is a simpler way to handle the events of multiple
bitmaps, any suggestions?
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home