0

Android Text-view.
Is there any way to change some of the character displayed in a TextView as bold as shown below?

enter image description here

InnocentKiller
  • 5,234
  • 7
  • 36
  • 84
Sishin
  • 2,001
  • 1
  • 17
  • 22
  • See http://stackoverflow.com/questions/1529068/is-it-possible-to-have-multiple-styles-inside-a-textview – Adil Mar 31 '14 at 09:40

4 Answers4

4

You can try the following

yourTextView.setText(Html.fromHtml("Here you write html formatted text"));
elmorabea
  • 3,243
  • 1
  • 14
  • 20
3

Try like

textView.setText(Html.fromHtml("Text" + "<b>" + View + "</b>"));
Shailendra Madda
  • 20,649
  • 15
  • 100
  • 138
1

You can format text in HTML and show in TextView using following way.

String value= "Text" + "<b>" + "View" + "</b>";
myTextView.setText(Html.fromHtml(value));
Hariharan
  • 24,741
  • 6
  • 50
  • 54
jyomin
  • 1,957
  • 2
  • 11
  • 27
0

you can take two textview and display your text one is in bold and other is without any effect simple solution.

Riddhi Shah
  • 477
  • 7
  • 26