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

ClickableSpan 和Item 事件冲突 #552

Closed
VectorWen opened this issue Nov 24, 2016 · 3 comments
Closed

ClickableSpan 和Item 事件冲突 #552

VectorWen opened this issue Nov 24, 2016 · 3 comments

Comments

@VectorWen
Copy link

如果一个TextView 里面的内容有ClickableSpan 事件,还添加使用BaseViewHolder.addOnClickListener() 为这个TextView 添加点击事件,那么当点击含有ClickableSpan 的字体的时候就会触发两个点击事件。

注:如果使用TextView.setOnClickListener 添加的item 点击事件就不会出发两个点击事件。

@AllenCoder
Copy link
Collaborator

目前针对目前针对Spannable还没有完美的解决办法,建议独立添加点击事件。后续会对这个功能进行扩展和完善

@CymChad
Copy link
Owner

CymChad commented Nov 25, 2016

#500 待优化

@CymChad CymChad closed this as completed Nov 25, 2016
@yangyiRunning
Copy link

请问ClickableSpan的点击事件和列表中item的点击事件互相冲突,怎么解决?

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

4 participants