I want to make a bold text in my activity and show it in a dialog box. I did it (I think) but I don't know how should I call it in my dialog box.
I'm trying in with HTML format:
String text = "<b>" + "My text" + "</b> " + "is bold";
StringCharacterIterator tv = null;
tv.setText(Html.fromHtml(text ));
Here it should work, but how can I call the "tv"?
I'm trying this way:
builder.setMessage(tv);
...but isn't working since the error is:
error: incompatible types: Spanned cannot be converted to String tv.setText(Html.fromHtml(text ));