📜  设置html文本android java代码示例

📅  最后修改于: 2022-03-11 14:52:35.983000             🧑  作者: Mango

代码示例1
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) {
    textView.setText(Html.fromHtml("

Title


Description here

", Html.FROM_HTML_MODE_COMPACT)); } else { textView.setText(Html.fromHtml("

Title


Description here

")); }