I have an imageswitcher as the only component on t开发者_如何学Gohe screen. I want to capture the swipe gesture and click event separately for it. But it is not able to get the events separately. If I set the onclicklistener method for imageswitcher object then it always fires onclick method even if I have swiped.
Can someone let me know the workaround to this?
If you return true from your onFling(…)
it should consume the event and stop propagation.
Ref from this question: android - giving onTouch priority over onClick
精彩评论