Android Gestures over an image [closed]
I'm continuing my learning with android and have now reached the point where I'm plating with gestures.
What I have so far is a activity screen and I can pop a Toast up when the gesture pattern is recognised.
What I'd like to do is display an image centre screen, which in this case will be a image of the gesture for the user to copy. I'd also like the image to be the only area for the gesture detection. This would me the user loosely traces the gesture, although following the guide exactly is not what I'm trying to achieve.
I think I need to extend ImageView with a GestureListener, but I'm a little unclear on how to do that. Could anyone supply and example or point me to a good tutorial please?
Thanks in advance,
Ric
Click here to get sample codes on guesture listeners with image view.
Also you click here to get tutorial on guesture listener
Thanks Deepak
you can use this tutorial.
I hope that help you.
This tutorial will teach you the basics about what you want to do.
精彩评论