0

Is it possible to display 2, 3 etc raised as you would when working with maths equations?

ManWithNoName
  • 67
  • 2
  • 13

2 Answers2

3

Like this

 Html.fromHtml("2"+"<sup>-2</sup>");
 //shows 2 raised to -2

similarly use

    <sub> x</sub>

tag for subscript

5hssba
  • 8,079
  • 2
  • 33
  • 35
2

KISS. Use unicode superscripts... unless your font do not contains them of course.

Nicolas Repiquet
  • 9,097
  • 2
  • 31
  • 53