TextView doesn't display all the text

前端 未结 2 511
無奈伤痛
無奈伤痛 2021-01-26 14:55

In my app I can\'t see in my notification all the text I display. I put \\n but this doesn\'t help me and I don\'t understand why.

this is proba.xml

<         


        
相关标签:
2条回答
  • 2021-01-26 15:14

    By default, TextViews are single-line (TextView documentation). You can make them multi-line by adding android:singleLine="false" to your proba.xml.

    0 讨论(0)
  • 2021-01-26 15:23

    A stringBuilder is not a string. Use s.toString() to actually get a string.

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