-
Notifications
You must be signed in to change notification settings - Fork 243
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
android.text.SpannedString cannot be cast to java.lang.String #8
Comments
I'm having the same issue, when setting the text with Html.fromHtml() which returns a Spannable object |
In the onDraw method, changing
to
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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)
The text was updated successfully, but these errors were encountered: