Text does not ellipsize

前端 未结 13 1349
隐瞒了意图╮
隐瞒了意图╮ 2020-12-25 11:43

I have a TextView set to ellipsize but when I put the text in it doesn\'t do so. Any ideas?



        
相关标签:
13条回答
  • 2020-12-25 12:35

    The only way I've been able to make this work is to set width="1dp", weight="1", ellipsize="end", maxLines="1" and scrollHorizontally="true". The first two have the same sort of effect as width="match_parent" without the widget expanding off the edge of the display, the remaining three settings all had to be made to get the text to ellipsize.

    0 讨论(0)
提交回复
热议问题