How do i add a new line in html format in android?

前端 未结 2 1599
悲哀的现实
悲哀的现实 2021-01-18 21:21

I have to add text to a button bolding the first line and unbolding the second but i cant figure out which new line character it is.

b.setText(Html.fromHtml(         


        
2条回答
  •  抹茶落季
    2021-01-18 22:19

    wrong end tag:

    b.setText(Html.fromHtml("" + st + "" + "
    " + cursor.getString(1)));

提交回复
热议问题