开发者

Identify single tap gesture within some time interval android

开发者 https://www.devze.com 2023-03-28 04:45 出处:网络
i want to perform some operation when user holds his finger on screen for 2 second(Time may vary). and single tap gesture.

i want to perform some operation when user holds his finger on screen for 2 second(Time may vary). and single tap gesture.

i included gesture detection and used Motion Events methods like ActionDown and ActionUp but开发者_如何学Go i couldn't handle long press and single tap gesture... Any Solution?


Have you looked at GestureDetector and OnGestureListener?

0

精彩评论

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