-1

I'm making a calculator for Android.. and I'd like to see my expressions in a cool format..

example: instead of 2^2 I'd like to see .

The expression is shown in an Edit Text.

how can i achieve that? I've found nothing use full yet on the Internet.

thanks a lot!!

pier
  • 117
  • 1
  • 2
  • 6
  • 3
    It seems you didn't look hard enough. http://stackoverflow.com/questions/3543454/subscript-and-superscript-a-string-in-android – Emmanuel Dec 20 '13 at 00:47

1 Answers1

0

Use Html.fromHtml() where you could setText() like this tv.setText("2<sup>2</sup>")

Rakeeb Rajbhandari
  • 5,043
  • 6
  • 43
  • 74