Line Break in XML formatting?

后端 未结 5 1091
夕颜
夕颜 2021-01-31 06:56

when editing a String in XML I need to add line breaks. And I wanted to ask what is the RIGHT form when programming for android? Because
works but ECLIPS

5条回答
  •  一个人的身影
    2021-01-31 07:35

    Also you can add
    instead of \n.

    And then you can add text to TexView:

    articleTextView.setText(Html.fromHtml(textForTextView));
    

提交回复
热议问题