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.
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.