Android textview not supporting line break

后端 未结 7 1678
遥遥无期
遥遥无期 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 03:00

    try this

    fireBody.setText(Html.fromHtml("testing
    line<\br>")

    your server need to send FirstLine
    lineAfterLineBreak<\br>

提交回复
热议问题