TextView Ellipsize (…) not working

后端 未结 6 2090
醉梦人生
醉梦人生 2020-12-29 20:55

I want to have a single lined TextView to show up 3 dots at the end when the text is longer than the TextView. I don\'t know why - but I don\'t get

6条回答
  •  爱一瞬间的悲伤
    2020-12-29 21:42

    It works with singleLine="true" but this attribute is now deprecated, use ellipsize and scrollHorizontally="true" instead.

提交回复
热议问题