Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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 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?

like image 641
Rob Kent Avatar asked Jun 30 '10 09:06

Rob Kent


1 Answers

check android:gestureStrokeLengthThreshold ="15.2"

android:gestureStrokeType="multiple" and

android:fadeOffset="6000"

like image 182
Manish Singla Avatar answered Nov 17 '22 07:11

Manish Singla