答案 0 :(得分:0)
这是我发现工作的解决方案..
if (Build.VERSION.SDK_INT<24) {
radio_button.setText(Html.fromHtml("<b><font color='"+ Color.BLACK+"'>"+getString(R.string.title)+ "</font></b>" + "<br />" +
"<small> <font color='"+Color.GRAY+"'>" + getString(R.string.description)+"</font></small>" + "<br />"
));
}else
{
radio_button.setText(Html.fromHtml("<b><font color='"+ Color.BLACK+"'>"+getString(R.string.title)+ "</font></b>" + "<br />" +
"<small> <font color='"+Color.GRAY+"'>" + getString(R.string.description)+"</font></small>" + "<br />"
),Html.FROM_HTML_MODE_LEGACY);
}