Android TextView Text not getting wrapped

前端 未结 24 1718
时光说笑
时光说笑 2020-11-27 02:51

Can anyone tell me what\'s going wrong with the text? Text longer than one line doesn\'t wrap to the next line but goes beyond the screen.

Following is the code:

24条回答
  •  伪装坚强ぢ
    2020-11-27 03:22

    I've spent hours to figure out that in the text I was trying to display contained a single quote (in string.xml) so I just escaped it with a backslash and it worked nicely => the height of the TextView was correctly wrapping text:

    
    
    
        
    
        
    

提交回复
热议问题