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

前端 未结 6 1149
爱一瞬间的悲伤
爱一瞬间的悲伤 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:38

    Actually I was running into this issue and instead of changing the font or using setText I just added scrollHorizontally as false and it fixed the extra box character

    android:singleLine="true"
    android:scrollHorizontally="false"
    android:ellipsize="end"
    

提交回复
热议问题