I use AutoResizeTextView and set the string in strings.xml such as "This is a string\nwith new line character". The string will displayed as a very small text.
I think the issue is in isValidWordWrap method, it doesn't include (before == '\n') as a valid word wrap. I have tested by adding (before == '\n') in isValidWordWrap method as following:
public boolean isValidWordWrap(char before, char after) {
return before == ' ' || before == '-' || before == '\n';
}
And it will work as expected.