Apps How to bold a word in the content

cb03

Lurker
Suppose I have a Textview and I want to bold the word I want in the content, so How can I do that????????
Anybody help????????/
thanks!
 

orangic

Lurker
Try this:

Code:
TextView textView = (TextView)findViewById(R.id.textView);
textView.setText(Html.fromHtml("<b>Bold</b> Text"));
 

cb03

Lurker
Thread starter
I try that code but the content of textview changed. I don't want it's change. I just want to bold a word in the content. For example, I have a textview with the content :
"I want to bold this word"
and I want it's will appearance :
"I want to bold this word"


Can u help me??????????
 
Top