我在 Android 的 TextView 中使用 <font size ="50">
标签,就像这样。
resultTextView.setText(Html.fromHtml("<font size='50' color='#337744'>Text Message</font>"));
resultTextView.setText(Html.fromHtml("<font size=\"50\" color='#337744'>Text Message</font>"));
但问题是颜色标签有效,而大小标签无效。
在这篇博客http://commonsware.com/blog/Android/2010/05/26/html-tags-supported-by-textview.html中提到了字体大小标签有效。我的代码有什么问题吗?