TextView cuts off text when it is long enough

后端 未结 6 1362
执笔经年
执笔经年 2021-01-31 11:16

I have strange problem with TextView, it cuts off part of the text at the end. My layout looks like



        
6条回答
  •  太阳男子
    2021-01-31 11:39

    If you expect differing lengths of text for your view or you're going to change the textSize of different instances of your TextView then you should use View.addOnLayoutChangeListener().

    See an example here: https://stackoverflow.com/a/44069734/1402087

提交回复
热议问题