Android textview not supporting line break

后端 未结 7 1535
遥遥无期
遥遥无期 2020-12-31 02:30

I\'m creating a custom view programmatically that is displaying text that is parsed from an XML file. The text is long and contains the \"/n\" character for force line brea

7条回答
  •  孤城傲影
    2020-12-31 02:55

    For line break you use set text view in xml layout this way.

    Now is the time \r\n for all good men to \r\n come to the aid of their \r\n party

提交回复
热议问题