ufo22940268 / android-justifiedtextview

android justified textview
950 stars 242 forks source link

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

Open yiLu1022 opened 6 years ago

yiLu1022 commented 6 years ago

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 commented 6 years ago

so, what should we do?

marcellocamara commented 6 years ago

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