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

【讨论】点击人名背景有时候会导致滑动的时候无法进行复原透明背景的问题 #25

Open
razerdp opened this issue May 26, 2016 · 0 comments

Comments

@razerdp
Copy link
Owner

razerdp commented May 26, 2016

一开始我是重写LinkMovementMethod来实现的,后来简书有位热心的朋友为此做出了一个解决方案,因此就替换成他的控件了。(相关链接:http://www.jianshu.com/p/69b9a6a83373)

然而正如题目,虽然他的方案很好的解决了span和textview里外的点击事件的传递,但造成了题目所说的问题。

这个问题我很早就发现了,但没怎么去修复,今天尝试了一个方案,在onTouch里面,判断clickable的数组长度外强制将所有clickable设为透明背景。

但是那个问题依然会存在,如果您有什么好的方法解决这个问题,欢迎来讨论一下。

@razerdp razerdp changed the title 点击人名背景有时候会导致滑动的时候无法进行复原透明背景的问题 【讨论】点击人名背景有时候会导致滑动的时候无法进行复原透明背景的问题 May 26, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant