Why does TextView in single line elipsized with “end” show boxes?

前端 未结 6 1137
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-12-04 20:21

I\'m using a TextView in Android, what I want to show 1 line in TextView ending with \". \" but this give [] type box at the end. I don\'t know why? I just want to remvoe t

6条回答
  •  無奈伤痛
    2020-12-04 20:46

    I face the same issue (show boxes([])) for some special symbols when I try to show content which is coming from webservice url even, I don't use android:ellipsize. then I replace code from

    textview.settext(content);
    

    to

    textview.settext(Html.fromHtml(content));
    

    working fine.

提交回复
热议问题