Android 中的手势预测问题

发布于 2024-12-04 18:44:34 字数 415 浏览 0 评论 0原文

我正在制作一个应用程序,用户将在屏幕上做出手势,如果用户针对该手势存储了任何联系号码,它将拨打该号码。现在我遇到了手势识别问题。我面临的最主要问题是,如果用户在直线上存储数字,则永远不会调用它,因为当用户绘制直线来呼叫联系人时,它会变得半透明,因为它不是有效的手势。

半透明图像 http://developer.android.com/resources/articles/images/ gestures_003.png

任何人都可以帮我解决这个问题,以便我也可以识别此手势,或者有什么方法可以阻止我的用户做出此类手势? 谁能告诉我如何提高手势识别能力?

I am making an application in which user will be making gestures on screens and if the user has any contact number stored against that gesture , it will dial that number . now i am having an issue with recognition of gestures. the most primary issue i am facing is that if a user stores a number against a straight line , it will never be called because when ever user draw a straight line to call a contact it become translucent as it is not a valid gesture.

translucent image http://developer.android.com/resources/articles/images/gestures_003.png

Can any one help me with this so i can recognize this gesture as well or is there any way i can stop my user from making such gesture?
And also can any one tell me how to improve recognition of gestures?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

丶视觉 2024-12-11 18:44:34

嗯,你为什么要这样做?你很清楚,直线手势是用来向下滚动的。这可能是设计使然。


在此处输入图像描述

Umm, why would you want to do this? You know very well that the straight line gesture is used to scroll down. This is probably by design.


enter image description here

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文