This week's book giveaway is in the Jython/Python forum.
We're giving away four copies of Murach's Python Programming and have Michael Urban and Joel Murach on-line!
See this thread for details.
Win a copy of Murach's Python Programming this week in the Jython/Python 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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!