In my string.xml file, I have something like this:
<string name="example_string"><b>This</b> is a <b>%1$s</b></string>
And then I placed it into a TextView:
textView.setText(getString(R.string.example_string, "good question"));
The "good question" argument that I passed to the getString()
method is not shown in bold. Even the word "This" is not shown in bold!
What's the reason for this and how to solve it?
=========================================================================
I know how to use Html.fromHtml(), but this method does not support inserting a string to the place holder that I have defined in the string resource. If you are trying to tell me that Html.fromHtml() exists, please DO NOT REPLY...