create different color strike through

后端 未结 3 482
死守一世寂寞
死守一世寂寞 2020-12-20 02:27

I am trying to create textview with text color as black and strikthrough as red, I tried to use html but does not seems to work

String styledText = \"

        
3条回答
  •  星月不相逢
    2020-12-20 02:52

    If you want to strike through all the text in the TextView you can simply create a sub-class of TextView in which you draw the strike line with the color of your choice.

提交回复
热议问题