I have value on string:
String htmlValue = "<div style="text-align: center;"><span style="font-family: impact, chicago; font-size: 18px;">Exchange Offer !! </span></div>
<div style="text-align: center;"><span style="font-size: 14px;">any mobile phone</span> , <span style="font-size: 14px;">give your</span> <span style="font-family: impact, chicago; font-size: 20px;">take new one</span>.</div>";
and how to display such type div included in textview.
I have try this but only content display div styling could not display.
Spanned result= Html.fromHtml(htmlValue);
tvFooter.setText(result);
or
tvFooter.setText(Html.fromHtml(htmlValue));
Here Defined: http://commonsware.com/blog/Android/2010/05/26/html-tags-supported-by-textview.html , div supported but could get exact expected output by doing above. I have both of above trick, but not working.
Error Output:
Expected Output like this
: