3

I want to bold and color of single textview item.ex- 23870.This is a value of textview and i want to bold of 8 and 7 chracter.Thanks in advance..

Singh
  • 81
  • 6

2 Answers2

2

use Spannable for your textview

and also check this

Community
  • 1
  • 1
Ram kiran Pachigolla
  • 20,647
  • 14
  • 56
  • 74
2
Spannable str = 23870; 
str.setSpan(new StyleSpan(android.graphics.Typeface.BOLD), 2, 3, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE);

check this

Syn3sthete
  • 4,101
  • 3
  • 21
  • 39