I have many strings like this:
<string name="exponent_key">x<sup><small>y</small></sup></string>
And when I set the text of a TextView, in an xml layout file, the result is a correctly superscripted 'y'.
However if i use getString() (or event try to retrieve the text, from the TextView mentioned above, using .getText()) and then use setText() to apply the changes, the 'y' gets changed back into normal text (so the result is just 'xy').
Is it possible to work around this? I was hoping that the html code is retained in the string so that i can use a .replace() to swap x and y with actual numbers later on, so that it would look like the real maths format. There are many operator strings like this so it will be difficult to manually re-add the html for each one.
Just in case you want to see my program: https://dl.dropboxusercontent.com/u/62863300/Random/ScientificCalculator.zip