I have an html line and SpannableStringin this line and put everything in TextView, and the problem is in SpannableString, it is not shown in Html.fromhtml(), how can I show SpannableStringin Html.fromHtmlIs it possible?
for(int index = 0; index < l.length; index++){ // have3d() return SpannableString
x += "<font color=\"green\">"+ have3d(title[index])+ " </font> <br />"+l[index] + "<br/><br/>";
if(index == l.length-1){
x += "<font color=\"green\">"+title[index]+" </font> <br />"+l[index]+ "<br/>";
}
}
mcinema.setText(Html.fromHtml(x));
source
share