Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

如何处理长按事件 #141

Closed
OneGreenHand-LXH opened this issue Mar 21, 2024 · 2 comments
Closed

如何处理长按事件 #141

OneGreenHand-LXH opened this issue Mar 21, 2024 · 2 comments

Comments

@OneGreenHand-LXH
Copy link

如题,如果需要悬浮窗,非拖动状态时响应长按事件该如何处理
目前只有点击事件,没有长按事件

@Petterpx
Copy link
Owner

如题,如果需要悬浮窗,非拖动状态时响应长按事件该如何处理 目前只有点击事件,没有长按事件

长按事件目前没处理,如果你需要可以考虑使用 浮窗view.setLongClick,但可能会有一些手势上的问题,晚点加上长按的逻辑

@Petterpx
Copy link
Owner

Petterpx commented Mar 21, 2024

已支持,更新到2.0.4,使用 setOnLongClickListener 即可

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants