Android textview not supporting line break

后端 未结 7 1636
遥遥无期
遥遥无期 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:52

    I just Use This and now its Work fine for me

     message =message.replace("\n","\r\\n");
    

提交回复
热议问题