Android的 - 检测长preSS结束结束、Android、preSS

2023-09-06 15:26:10 作者:≡殇旋律≈

我的工作中,用户需要preSS按住一个按钮很长一段时间的应用程序。

I am working on application in which a user needs to press and hold a button for a long time.

我如何能够检测到用户的那一刻:完成了preSS或移动的触摸位置

How can I detect the moment that the user: finishes the press or moves their touch position?

感谢

推荐答案

我想你可以使用的 OnTouchListener 这一点。

I think you can use OnTouchListener for this.

 
精彩推荐
图片推荐