Open
Conversation
Owner
|
感谢您的pull,我最近会看一下代码,然后合入。 |
Author
|
dalao,几年了。有需要麻烦把这个pr 合了哈,非常感谢,也许有用 |
|
所以还是没合么hh,但是对我非常有用,感谢 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Hello Carbs0126,


我在使用您的控件的时候,我输入的文本长度大于控件宽度时,会导致文本显示不全。
然后我尝试去实现该功能,
咱们先看一下效果吧,先睹为快
然后我尝试了2个方式。
1.尝试去不修改您的源代码,即用反射的原理去动态修改您lib 当中的
mTextSizeNormal/mTextSizeSelected, 发现只能在选中该文本时,才有缩放当前显示的文本内容。
2.最后尝试修改您的源代码,才实现了该功能,发现您在绘制文本(drawContent(Canvas canvas))的时候,并没有测量每一个文本的大小导致的。所以对您的源代码做了一个小小的修正。
希望,您可以接收我的 pr,这个小小的体验优化需求,还是很有必要的
详情,可以看我提交的pr