• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to handle dispatchTouchEvent, onInterceptTouchEvent, onTouchEvent emthods

 
sam liya
Ranch Hand
Posts: 1243
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a viewpager with several fragments.I need to handle onTouch event.I found that there are several methods dispatchTouchEvent, onInterceptTouchEvent, onTouchEvent.How to intercept to handle click event.I called my own method in onInterceptTouchEvent,but then it doesn't work the vertical scrollbar.Then i change the return type to fasle from onInterceptTouchEvent.Then it doesn't work the horizontal scrollbar.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic