title: Set TextView text from html-formatted string resource in XML
body: <p>I have some fixed strings inside my <code>strings.xml</code>, something like:</p>
  
  <pre><code>&lt;resources&gt;
      &lt;string name="somestring"&gt;
          &lt;B&gt;Title&lt;/B&gt;&lt;BR/&gt;
          Content
      &lt;/string&gt;
  &lt;/resources&gt;
  </code></pre>
  
  <p>and in my layout I've got a <code>TextView</code> which I'd like to fill with the html-formatted string.</p>
  
  <pre><code>&lt;TextView android:id="@+id/formattedtext"
  android:layout_width="fill_parent"
  android:layout_height="wrap_content"
  android:text="@string/htmlstring"/&gt;
  </code></pre>
  
  <p>if I do this, the content of <code>formattedtext</code> is just the content of <code>somestring</code> stripped of any html tags and thus unformatted.</p>
  
  <p>I know that it is possible to set the formatted text programmatically with </p>
  
  <p><code>.setText(Html.fromHtml(somestring));</code> </p>
  
  <p>because I use this in other parts of my program where it is working as expected.</p>
  
  <p>To call this function I need an <code>Activity</code>, but at the moment my layout is just a simple more or less static view in plain XML and I'd prefer to leave it that way, to save me from the overhead of creating an <code>Activity</code> just to set some text.</p>
  
  <p>Am I overlooking something obvious? Is it not possible at all? Any help or workarounds welcome!</p>
  
  <p>Edit: Just tried some things and it seems that HTML formatting in xml has some restraints: </p>
  
  <ul>
  <li><p>tags must be written lowercase </p></li>
  <li><p>some tags which are mentioned <a href="https://stackoverflow.com/questions/3207769/android-textview-with-html-seperator">here</a>  do not work, e.g. <code>&lt;br/&gt;</code> (it's possible to use <code>\n</code> instead)</p></li>
  </ul>