Issue
I got this string resource:
<string name="about_app_text"><b>%1$s</b> some text.\n\n
<b>%2$s, text</b>, more text.</string>
The text inside the <b> tag does not get bold. Why is that?
Solution
you can try this
YourTextview.setText(Html.fromHtml(getResources().getString(R.string. about_app_text)));
string resource:
<string name="about_app_text"><![CDATA[<b>%1$s</b> some text.\n\n
<b>%2$s, text</b>, more text.]]></string>
Answered By - AskNilesh
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.