Android单笔画和多笔画手势在同一个库中混淆了GesturesOverlayView?
我注意到各种手机上存在一个问题,如果您在笔画类型设置为单笔画时保存手势,然后将笔画类型更改为多笔画并添加一些多笔画手势,则在绘制多笔画手势时,GesturesOverlayView 通常无法识别它们。这些可以是非常简单的手势,例如 + 或 X。所发生的情况是,您绘制的手势保持褪色,就好像它尚未被识别一样,即使它可以是完美匹配的。
我知道多笔划工作正常,所以我想知道问题是否是由于库中混合笔划并动态更改视图的笔划类型引起的。是否有可能将其与同一个库中的单笔手势混淆,但因为匹配不够接近,就放弃了?
有没有人有类似的经历或关于可能发生的事情的理论?
I have noticed a problem on various handsets that if you save gestures while the stroketype is set to single and then change the stroketype to multi and add some multi-stroke gestures, the multi ones are often not recognized by the GesturesOverlayView when you draw them. These can be very simple gestures such as a + or an X. What happens is that the gesture you draw stays faded as if it has not been recognized even though it can be a perfect match.
I know that multi-stroke works okay so I am wondering if the problem is caused by having mixed ones in the library and changing the stroke-type of the view on the fly. Is it possibly confusing it with a single-stroke gesture in the same library but because the match is not close enough, just giving up?
Has anyone had a similar experience or a theory as to what might be happening?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
检查 android:gestureStrokeLengthThreshold = "15.2"
android:gestureStrokeType = "multiple"
和
android:fadeOffset="6000"
check android:gestureStrokeLengthThreshold ="15.2"
android:gestureStrokeType="multiple"
and
android:fadeOffset="6000"