1

I am not able to represent e^(z) in android studio. Also to represent z^(2).

How can I use these as a text inside text view? Please help..

Pete
  • 57,112
  • 28
  • 117
  • 166
Nithin cp
  • 109
  • 2
  • 3
  • 11

2 Answers2

2

Try to set the text by code as a HTML string

TextView tv = (TextView)findViewById(R.id.textview);
tv.setText(Html.fromHtml(txtString));
Gaurav
  • 3,615
  • 2
  • 27
  • 50
Sathish Kumar J
  • 4,280
  • 1
  • 20
  • 48
1

please try this

myTextView.setText(Html.fromHtml("e<sup>z</sup>"));
swiftBoy
  • 35,607
  • 26
  • 136
  • 135
GPuschka
  • 522
  • 3
  • 9