Win a copy of Java 9 Revealed this week in the Features new in Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

how to handle dispatchTouchEvent, onInterceptTouchEvent, onTouchEvent emthods  RSS feed

 
sam liya
Ranch Hand
Posts: 1246
  • 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.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!