I have a string defined in string.xml like
Title: %1$s
which is formatted us
Now, it is reasonably supported by Android.
you can define the string in xml as
Then in code, use this to convert to CharSequence and then use it for e.g in TextView
String text = getResources().getString(R.string.text-to_show);
CharSequence styledText = Html.fromHtml(text);
textview.setText(styledText);