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,207
  • 7
  • 34
  • 84
Sishin
  • 1,991
  • 1
  • 16
  • 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,203
  • 1
  • 13
  • 20
3

Try like

textView.setText(Html.fromHtml("Text" + "<b>" + View + "</b>"));
Shailendra Madda
  • 19,210
  • 15
  • 86
  • 129
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
  • 28,756
  • 7
  • 51
  • 55
jyomin
  • 1,941
  • 2
  • 10
  • 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
  • 6
  • 26