Issue
I have this string entry:
<string name="title_label">[<![CDATA[<b>Title</b>]]> %s</string>
and I format it this way:
String titleLabel = getString(R.string.title_label);
Spanned title = Html.fromHtml(String.format(titleLabel, "My Title"));
However, it shows:
[Title My Title
instead of:
Title My Title
Why is it showing the '[' character in the beginning?
Solution
Try changing it to :
<string name="title_label"><![CDATA[<b>Title</b>]]> %s</string>
Answered By - Shaishav
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.