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

atView() or watchView() must be called for AttachPopupView before show()! #1244

Open
tianyu704 opened this issue Nov 28, 2024 · 1 comment

Comments

@tianyu704
Copy link

XPopup版本
如2.9.19

手机系统和型号
市场上主流手机品牌都有,Android 9-14

描述你的问题
bugly收集到的错误,目前无法直接复现,检查了继承AttachPopupView的所有地方,都有调用atView()或者atPoint()方法

@tianyu704
Copy link
Author

找到问题了,是同时使用了 watchView(binding.root) 和XPopup.fixLongClick(binding.root)导致的,采用 builder 构建时用 watchView 监听点击的位置,watchView 里是通过OnTouch 监听的ACTION_DOWN 设置 touchPoint 的,fixLongClick里也监听了OnTouch事件,导致watchView里的监听不到,拿不到点击的点了

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

1 participant