开发者

Get click event and swipe gesture in imageswitcher in android?

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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜