1. 程式人生 > >Android TestView使用Html設定字型

Android TestView使用Html設定字型

String html = "<font color=\"green\">"+"綠色字型"+"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font><font color=\"black\">"+"黑色字型"+"</font>"
textView.setText(Html.fromHtml(html))