Open ganghuaChen opened 9 years ago
I'm having the same issue, when setting the text with Html.fromHtml() which returns a Spannable object
In the onDraw method, changing
String text = getText();
to
String text = getText().toString();
seems to fix it.
Same problem, please release a fixed version.
Don't believe that the problem don't fixed yet(
Learn thathttps://www.infopalacess.com/2019/04/justify-text-in-android-studio.html There is helpful info.
Process: com.zhongduomei.rrmj.society, PID: 23335 java.lang.ClassCastException: android.text.SpannedString cannot be cast to java.lang.String at me.biubiubiu.justifytext.library.JustifyTextView.onDraw(JustifyTextView.java:34) at android.view.View.draw(View.java:14493) at android.view.View.getDisplayList(View.java:13390)