开发者

Android single- and multi-stroke gestures in the same library confuses the GesturesOverlayView?

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 tha开发者_运维技巧t 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?


check android:gestureStrokeLengthThreshold ="15.2"

android:gestureStrokeType="multiple" and

android:fadeOffset="6000"

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜