📅  最后修改于: 2022-03-11 14:53:02.601000             🧑  作者: Mango
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) {
holder.tvName.setText(Html.fromHtml(list.get(position).name, Html.FROM_HTML_MODE_COMPACT));
} else {
holder.tvName.setText(Html.fromHtml(list.get(position).name));
}