How to write mathematical symbol in android xml button?

Asked

Viewed 945 times

3

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

1 answer

3


You can use unicode codes to do this:

Declare the code in your string.xml

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

And in your xml screen:

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

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

  • Thanks for the tip !

Browser other questions tagged

You are not signed in. Login or sign up in order to post.