ticofab
ticofab

Reputation: 7717

Android library to match gesture against pattern?

Is there a library for Android to do pattern matching against gestures? For example, how to detect that the user swiped a square, a circle, a heart or a star?

Where can I post this question if StackOverflow is not the right place?

Upvotes: 3

Views: 914

Answers (1)

pshegger
pshegger

Reputation: 2606

I don't know if it's the best way to do it, but Android has a built-in functionality for this: GestureOverlayView. Basically it's a View which can be drawn over other one, and it can recognize previously defined gestures. Google Gesture Search uses this for example.

Upvotes: 1

Related Questions