user208432
user208432

Reputation:

How should I handle multiple strokes on GestureOverlayView?

I need to handle multiple strokes on gestureOverlayView by using ongestureListener handler, which is implemented by 4 functions: ongestureStarted(..), ongestureEnded(..), etc.

I used this in xml file: android:gestureStrokeType="multiple". It's taking multiple strokes if we write little fast, but I want to handle its disappearance by myself.

Can any one help in this regard?

Upvotes: 1

Views: 1236

Answers (1)

theisenp
theisenp

Reputation: 8719

If you want to control the length of time that gestures remain visible, you should look into these 2 XML attributes from the documentation for GestureOverlayView:

android:fadeOffset: Time, in milliseconds, to wait before the gesture fades out after the user is done drawing it.

android:fadeDuration: Duration, in milliseconds, of the fade out effect after the user is done drawing a gesture.

Upvotes: 1

Related Questions