Android Gestures over an image [closed]

ⅰ亾dé卋堺 提交于 2019-12-21 19:26:28

问题


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.



来源:https://stackoverflow.com/questions/6137069/android-gestures-over-an-image

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!