How to write subscript under superscript in xml?

1.8k views Asked by At

I am working with android textview. I need print subscript under superscript.

This is my code:

<string name="abc">Text<sup>supertext</sup><sub>subtext</sub></string>

And this is what i get:

Textsuertextsubtext

But i need something like:

enter image description here

Is it possible to do that only in XML without using java?

1

There are 1 answers

4
darrenp On BEST ANSWER

You could use 2 text views. One with "Text" and next to it a multi line text view with "Supertext...".

However only do that if it's not strings that may ever be translated.