开发者

Get click event and swipe gesture in imageswitcher in android?

开发者 https://www.devze.com 2023-01-21 21:24 出处:网络
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

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

精彩评论

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