Win a 3 month subscription to Marco Behler Videos this week in the Spring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

how to handle dispatchTouchEvent, onInterceptTouchEvent, onTouchEvent emthods  RSS feed

sam liya
Ranch Hand
Posts: 1264
  • 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
Boost this thread!