How to write math symbol in xml android button?

3

How to write mathematical symbol in the Android xml button as root n of x, x high n, would have how to do so typed and not with image.

    
asked by anonymous 17.02.2015 / 00:40

1 answer

3

You can use unicode codes to do this:

Declare the code in your string.xml

<string name="raiz"> &#8730; </string>

And on your xml screen:

<Button
    ...
    android:text="@string/raiz"
    ...
/>

Here are two lists that you'll find the codes to use:

17.02.2015 / 03:21