Changing string text color
<pre><code>&lt;string name="no_city"&gt;&lt;font color='#FF0000'&gt;&lt;b&gt;Please select your location under Preferences in the menu&lt;/b&gt;&lt;/font&gt; &lt;/string&gt;
</code></pre>

<pre class="lang-java prettyprint-override"><code>@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.contents);
    this.setContentView(R.layout.contents);

    ChangeLog cl = new ChangeLog(this);
    if (cl.firstRun())
        cl.getFullLogDialog().show();


    SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(this);

    TextView text1 = (TextView)findViewById(R.id.textview1);

    Resources res = getResources();
    String text = String.format(res.getString(R.string.no_city));
    CharSequence styledText = Html.fromHtml(text);

    text1.setText(prefs.getString("listPref",res.getString(R.string.no_city)));
</code></pre>

<p>I am trying to change the color of the text in the no_city string. I have the way I have the string entered up top and the java underneath. Ihav etried both the hex and the color name, and neither have worked. I have found this information on Google's developer site on how to reference the changes, it compiles fine, but the text is still white. I am using the string with a list preference as what shows as default if nothing is selected from the list. When a user makes a selection, the text needs to be white, so I can not change the entire text view color in the xml or in the java file. I have a felling I am missing something small or I am overlooking something, but I can not track it down. </p>
