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

对于表情span有什么好的思路吗。 #1

Open
Caij opened this issue Mar 13, 2020 · 1 comment
Open

对于表情span有什么好的思路吗。 #1

Caij opened this issue Mar 13, 2020 · 1 comment

Comments

@Caij
Copy link

Caij commented Mar 13, 2020

No description provided.

@Amterson
Copy link
Owner

Amterson commented Mar 13, 2020

刚刚看了一下源码,发现TextView底层是通过DynamicLayout里的TextLine来绘制span的,计算行数和位置都是在DynamicLayout这个类里面,要想根据自己计算的位置来绘制只能用TextLine,但是TextLine这个类用不了,被官方屏蔽了;要是可以用TextLine,应该可以实现自定义绘制span;

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

2 participants