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

The extra space on the right side of each lines #26

Open
yiLu1022 opened this issue Nov 20, 2017 · 2 comments
Open

The extra space on the right side of each lines #26

yiLu1022 opened this issue Nov 20, 2017 · 2 comments

Comments

@yiLu1022
Copy link

yiLu1022 commented Nov 20, 2017

In the source code of the JustfiyTextView.java, method drawScaledText() has an obvious mistake which causes the extra space on the right side while using justifiedTextview.
float scaleWidth = (mViewWidth - lineWidth) / line.length() -1;
this line calculates the default space of the textview on the right side and redistribute it among the chars.
so I think this line should be:
float scaleWidth = (mViewWidth - lineWidth) / (line.length() -1);
And there will not have any extra space on the right side anymore.

@ggsuha
Copy link

ggsuha commented Dec 1, 2017

so, what should we do?

@marcellocamara
Copy link

The class isn't able to edit. I got issues too. So, I will not use it... ;(

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