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

addOnItemTouchListener之后,TextView设置 ClickableSpan 后点击事件重复响应 #516

Closed
blackhorse6 opened this issue Nov 14, 2016 · 3 comments

Comments

@blackhorse6
Copy link

响应了2次点击事件,请问这是为何?我有做处理并重写textview

@AllenCoder
Copy link
Collaborator

  1. 可以不实现提供的单击方案,单独在adapter里面增加点击事件,后续,这块我将重点优化和重构
  2. 使用库提供的单击事件,但同时屏蔽掉clickspan的点击事件,让其每次只有一种响应的回调

@CymChad
Copy link
Owner

CymChad commented Nov 16, 2016

#500 待优化

@CymChad CymChad closed this as completed Nov 16, 2016
@AllenCoder
Copy link
Collaborator

http://blog.csdn.net/zhaizu/article/details/51038113 今天研究clickspan的源码,发现针对点击事件,这一直都是个坑,并不是这个库引入的 ,源码在处理textview的click事件时遇到clickspan也会同时触发,需要用户自己来重写改善

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

3 participants