Rich text in a textview

后端 未结 3 785
时光说笑
时光说笑 2020-12-25 15:13

I need create an \"Info\" for my program. I\'d like fill the info text with several colors, style, fonts, ecc.

I found this: http://www.chrisumbel.com/article/androi

3条回答
  •  梦毁少年i
    2020-12-25 15:44

    When I have needed formatted text in the past, I have created an html file with formatting, stuck it in the res/raw directory and loaded that into a WebView. I have never tried it with different fonts before though so not sure if that will work, but bold and italics, etc will work.

提交回复
热议问题