for example:
I have a string in the resources:
<string name="smth"><small>hey girls</small></string>
When I use it in the xml resource files (for example in some text view),
android:text="@string/smth"
no problem whatsoever. It takes into account the "small" tag. It makes the string smaller. But when I want to use it like this:
String smth = getString(R.string.smth);
someTextView.setText(Html.fromHtml(smth));
the string doesn’t have any tags!!!
Any help appreciated.
Dan
Why not try to replace ‘<‘, ‘>’ and ‘\’ by the corresponding unicode characters?
Regards.