Android Gestures over an image [closed]

2020-07-17 05:39发布

问题:

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 7 years ago.

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

回答1:

Click here to get sample codes on guesture listeners with image view.

Also you click here to get tutorial on guesture listener

Thanks Deepak



回答2:

you can use this tutorial.

I hope that help you.



回答3:

This tutorial will teach you the basics about what you want to do.