D
D
Denis Karakchiev2015-09-04 20:45:12
Android
Denis Karakchiev, 2015-09-04 20:45:12

How to format text in String resources in Android?

For example, I need to put the symbol x (to the power) 2 on the button, i.e. the deuce in this case should be at the top and a little less (just imagine Word).
And where to go to avoid asking such questions? =)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
Tiberal, 2015-09-05
@Satori_Kanzo

For example like this

textView.setTest(R.string.test);
<string name="test">X<sup>2</sup></string>

or so I
advise you to read about CDATA
developer.android.com/reference/org/w3c/dom/CDATAS...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question