Android的手势在图像 [英] Android Gestures over an image

查看:157
本文介绍了Android的手势在图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我继续我的学习与Android和现在已经到了那里我电镀用手势点。

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.

我想我需要扩展的ImageView与GestureListener,但我对如何做到这一点有点不清楚。任何人都可以供应,例如或指向我一个很好的教程吗?

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?

在此先感谢,

里克

推荐答案

<一个href="http://stackoverflow.com/questions/4098198/adding-fling-gesture-to-an-image-view-android">Click这里拿到样品codeS上的手势语听众​​提供图像视图。

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

你也点击此处获得教程的手势语听众​​

Also you click here to get tutorial on guesture listener

谢谢 迪帕克

这篇关于Android的手势在图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆