Skip to content

MongolTextView 限制宽度,超出部分,绘制不完整,不能像TextView一样有省略 #6

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

Open
L-X-J opened this issue Jul 24, 2019 · 1 comment

Comments

@L-X-J
Copy link

L-X-J commented Jul 24, 2019

hello
MongolTextView 无法设置最大行数,会造成文字显示不完整
如下图
image
能不能实现如TextView设置android:lines="2"android:ellipsize="end"的效果,
效果下图
image
还是我对MongolTextView使用错误了

@suragch
Copy link
Owner

suragch commented Jul 25, 2019

MongolTextView确实没有这些功能。因为自己的app里没用过max lines或ellipsize所以我一直没加。我最近比较忙,你能实现它吗?

或者不改库里的源码的话,你可以在app里处理。需要量文本然后只用前一段在MongolTextView里。我知道,这样不理想。

Public description:

  • MongolTextView does not have a way to set the max lines or ellipsize

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