Gesticulate makes it painless to detect straightforward swiping motions like up, down, left, and right. It’s a simple jar file you include in your Android libs
directory. Throw Gesticulate’s SwipeDetector
inside an instance of Android’s SimpleOnGestureListener
, for example, and you’re detecting swipes with ease!
Gesticulate is used in Savvy Words, a flash card vocabulary app found on Google Play and Amazon’s Appstore for Android. See the Github project for more details such as code examples for how to use Gesticulate, how to build it, and to see Gesticulate’s tests. Swipe on, baby!
This story, "Painless Android swipe detection" was originally published by JavaWorld.