简体   繁体   English

如何在android中添加自己的手势?

[英]How to add our own gestures in android?

I am working on the gestures concept. 我正在研究手势概念。 I want know some thing about how to add our own gestures in android.For example if user drawn "O" symbol i want to make some events. 我想知道一些有关如何在android中添加自己的手势的信息。例如,如果用户绘制了“ O”符号,我想进行一些事件。 Please share some tutorials and Snippet of the code. 请分享一些教程和代码片段。

There are quite a few results available with a relatively simple Google search. 相对简单的Google搜索提供了很多结果。 I would normally post a sarcastic comment or something. 我通常会发表讽刺评论或其他内容。 :-) :-)

But this isn't quite an everyday subject if you would, so I have here a few links that should get you started. 但是,如果您愿意的话,这不是每天的主题,因此,我在此处提供了一些链接,可以帮助您入门。 But you should work on your Google foo too. 但是您也应该使用Google foo ;-) ;-)

  1. http://developer.samsung.com/android/technical-docs/Gestures-in-Android http://developer.samsung.com/android/technical-docs/Gestures-in-Android
  2. http://www.hascode.com/2010/05/creating-a-simple-gesture-app-with-android/ http://www.hascode.com/2010/05/creating-a-simple-gesture-app-with-android/
  3. http://code.google.com/p/quickdroid/source/checkout (QuickDroid Checkout) http://code.google.com/p/quickdroid/source/checkout(QuickDroid Checkout)
  4. http://code.google.com/p/quickdroid/source/browse/ (QuickDroid Browse code) http://code.google.com/p/quickdroid/source/browse/(QuickDroid浏览代码)
  5. http://androidresearch.wordpress.com/2012/01/10/working-with-gesture-api-in-android/ http://androidresearch.wordpress.com/2012/01/10/working-with-gesture-api-in-android/

I found the 5th link a little more promising. 我发现第五个链接更有希望。 Of course, I haven't seen too much of it for that to be definite. 当然,对于确定性而言,我还没有看到太多。 But try them all anyway. 但是无论如何都要尝试一下。

Check the link below which will guide on how to create our own gestures and use it. 检查下面的链接,该链接将指导如何创建和使用自己的手势。

1) Link 1 1) 链接1
2) Link 2 2) 链接2
3) Link 3 3) 链接3
4) Link 4 4) 链接4

Go throug some of the links you will surely get some idea about gestures. 浏览一些链接,您一定会对手势有所了解。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM