This repository provides code for detecting gestures on Views in Android. For example, it has code for responding to long presses, double taps, flings, and more. Simply copy and paste to use it!
To get the code, simply go to to the MainActivity.java file and copy and paste it as you need.
Also check out the corresponding YouTube tutorial on Detecting Gestures.
If you found this repository and tutorial useful, please make sure to subscribe. I put a lot of effort into making these tutorials and open-sourcing this code for others to use. To support my channel and efforts to teach Android app development, I would appreciate if you would subscribe and share the channel with friends.