title: Android - Achieving line break in XML string with String.format()?
body: <p>This is my xml string...</p>
  
  <pre><code>&lt;string name="my_string"&gt;First line.\nSecond line: %1$s.\nThird line.&lt;/string&gt;
  </code></pre>
  
  <p>...which I need to run through String.format without losing the line breaks.</p>
  
  <p>How do I achieve that?</p>
  
  <p>Here is my Java code...</p>
  
  <pre><code>String text = String.format(getString(R.string.my_string, "some text");
  Spanned html = Html.fromHtml(text, this, null);
  textView.setText(html);
  </code></pre>
  
  <p>In the xml file, I have tried using <code>\n</code> and <code>&lt;br /&gt;</code> and actual new lines, but none of them produce line breaks in the textView on the UI.</p>