You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: