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 #2

Open
zxqlove opened this issue Feb 1, 2018 · 0 comments
Open

控件实际宽度的BUG #2

zxqlove opened this issue Feb 1, 2018 · 0 comments

Comments

@zxqlove
Copy link

zxqlove commented Feb 1, 2018

代码中 initUnderline()这个初始line的数组时 传入宽度应该加上间隔underlineReduction;
且在onMeasure方法中计算的最小宽度 不应该是(underlineWidth+underlineReduction)underlineAmount
因为空隙的数量是underlineAmount-1;其正确的宽度应该是 int MinWidth= (int) (underlineWidth
underlineAmount+underlineReduction*(underlineAmount-1)); 记得修正哦。

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

1 participant