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

请问如何监听弹幕的点击事件? #15

Open
Jibinghao opened this issue Apr 19, 2019 · 3 comments
Open

请问如何监听弹幕的点击事件? #15

Jibinghao opened this issue Apr 19, 2019 · 3 comments
Labels
enhancement New feature or request

Comments

@Jibinghao
Copy link

我这边有个需求,点击弹幕的时候需要进行举报等操作,试了在子布局加setOnClickListener没有执行。

@xujiaji xujiaji added the enhancement New feature or request label Apr 19, 2019
@guoshilun
Copy link

我这边有个需求,点击弹幕的时候需要进行举报等操作,试了在子布局加setOnClickListener没有执行。

(。・∀・)ノ゙嗨,Jibinghao,点击事件解决了没,我这边也有这个需求,

@lu-xu
Copy link

lu-xu commented Mar 24, 2020

我的思路是:弹幕的bean中保存自己当前的rect(随着滚动更新),然后获取点击的坐标,遍历当前显示在surfaceview中的弹幕,看这个坐标是否在自己的rect中,然后返回这个bean

@lu-xu
Copy link

lu-xu commented Mar 24, 2020

我用虎牙看直播的时候, 如果要举报弹幕,它是单独给你一个list列表,屏幕上的弹幕是不能点击的。因为要实现点击弹幕操作的话,首先弹幕要暂停,然后响应这个点击事件,这个需求感觉并不是很合理

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

No branches or pull requests

4 participants