How to change the style of letters depending on the displayed letters in android

后端 未结 1 1443
渐次进展
渐次进展 2020-12-22 02:12

I would like to where there is A, B, C, D, E .... change the style letters on a bold and change the background. is a possibility because I was trying to (commented out lines

相关标签:
1条回答
  • 2020-12-22 02:43
    Spannable wordtoSpan = new SpannableString("A");        
    
    wordtoSpan.setSpan(new ForegroundColorSpan(Color.BLUE), 15, 30, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE);
    
    textView.setText(wordtoSpan);
    
    0 讨论(0)
提交回复
热议问题