0

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

ManWithNoName
  • 67
  • 1
  • 11

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,019
  • 2
  • 30
  • 34
2

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

Nicolas Repiquet
  • 8,727
  • 2
  • 29
  • 48