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

【bug?】跑Demo发现Ellipsize显示有点问题? #24

Open
164738777 opened this issue Jan 31, 2018 · 5 comments
Open

【bug?】跑Demo发现Ellipsize显示有点问题? #24

164738777 opened this issue Jan 31, 2018 · 5 comments

Comments

@164738777
Copy link

164738777 commented Jan 31, 2018

qq 20180131122715

想问问大佬, ...为什么在13的前面,不是应该在后面么?

@CarGuo
Copy link
Owner

CarGuo commented Jan 31, 2018

最新版本的么?我这边是在末尾的

@164738777
Copy link
Author

拉的master的代码run的demo~

@APLK
Copy link

APLK commented Mar 23, 2018

我也遇到同样问题,发现android8.0的系统是不存在这问题的,但是4.4的系统就这样,请问是如何解决的?

@CarGuo
Copy link
Owner

CarGuo commented Mar 23, 2018

这样的问题,只能继承后自己再计算了···

@APLK
Copy link

APLK commented Mar 26, 2018

发现是textView.setMovementMethod(LinkMovementMethod.getInstance())后就会出现问题,提供下我的解决方案:
1.首先注释掉TextCommonUtils.java类中的setMovementMethod方法;
2.TextCommonUtils.java类中的resolveUrlLogic方法代码如下:
image
image
image
image
3.在RichTextBuilder.java类中build()方法添加如下代码:
textView.setOnTouchListener(new TouchTextView(spannable));//添加此行代码
textView.setText(spannable);
TouchTextView类如下:
image
image

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