Fatal Exception: String can't be cast to Spannable

前端 未结 3 1561
太阳男子
太阳男子 2021-01-12 02:06

My app works greatly with the exception of a few devices. On one such device, I get a FATAL EXCEPTION in one of my activities. The error is java.lang.ClassCastExcept

3条回答
  •  长情又很酷
    2021-01-12 02:38

    Did you make your style button as spannable? For example, TextView should be like this

    TextView.setText("Hai", TextView.BufferType.SPANNABLE);

提交回复
热议问题