3

I need to observe a single tap, double tap and long press on RecyclerView. I know that I can identify those gestures by means of GestureDetector, however, I am not sure where to place such a functionality.

It seems that I can do it with both OnTouchListener and OnItemTouchListener. Thus which one is the right place and why?

Furthermore, the former is quite straightforward but the latter is a bit mystery for me. Even though I have read the corresponding API documentation several times, I still do not get the difference between onTouchEvent and onInterceptTouchEvent methods.

pgiecek
  • 7,970
  • 4
  • 39
  • 47

0 Answers0