Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Android html tags and variable
private TextView text;
...
text.setText(Html.fromHtml(getString(R.string.html_with_variable, "Some variable")));
<string name="html_with_variable"><![CDATA[<b>Your variable:</b> %1$s]]></string>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment