• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps Should I use GestureDetector or a custom solution to detect click/tap and moving?

Cortez9

Lurker
I posted this question at Stack Overflow but it got buried. If I get an answer at SO (which is unlikely), I'll update this thread.

===
I simply want an element to be draggable and clickable. Would GestureDetector be sufficient? There are many questions (and answers) on how to distinguish between movements and clicks, I've also read many tutorial that use custom implementations, which makes wonder, is there's something wrong with GestureDetector? Are there cases where I should write a custom solution instead of using a GestureDetector?

This is an example for a custom solution.

P.S., English is not my first language. Feel free to rephrase the question and correct any grammar or spelling mistakes.
 
Back
Top Bottom