What's new
DroidForums.net | Android Forum & News

This is a sample guest message. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

trouble beetween (xml and fromHtml)

anakine54

New Member
Hello
I do not understand why this code works :

strVar=" something <b> bold something</b>";
Spanned marked_up = Html.fromHtml(strVar);

but not this one's :
strVar= res.getString(R.string.str_in_xml);
// (str_in_xml) var defined in the directory res/values/strings.xml the same the other
Spanned marked_up = Html.fromHtml(strVar);
 
Back
Top