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 <br>
works but ECLIPSE marks the area as problematic. If I check out suggestions Eclipse tells me that I shall add a end tag </br>
- IF I add that the line break dissapears...
So the one works but is marked as problematic, the other works not but Eclipse tells me its ok..
What form shall I use?
`. Explaination: most markup-languages (for xml, html, etc) use `
` opens a tag, it's logic the IDE asksed to close with `` but as the br-tag is almost always empty it's advisable to use **`
`**. Anyhow the question was about Java, so `\n` is much better. Using html for a textview works fine but consumes relatively much memory. Only use this it when necessary, if you want a multicolored textview or something like that. – T_D May 31 '13 at 08:00