Is there a way to set subscript and superscript for specific character in the TextView? I want to display a text that looks like this:
So,I tried this code:
TextView tv1 = ... ;
String latex = "\u222E";
tv1.setText(Html.fromHtml(latex + "<sup>200</sup><sub>2</sub> f(x)dx"));
But the result is this:
You can see the superscript appears after the subscript.How I can solve this problem?Can I solve it with SpannableString? Or can I change the position of subscript?
Please read this [post](http://flavienlaurent.com/blog/2014/01/31/spans/) and try. It will be useful anyway. – x90 Feb 21 '14 at 08:16