How to include Square root sign as depicted in the following image in android?

YuDroid picture YuDroid · Sep 6, 2011 · Viewed 16k times · Source

I need to include the following square root sign in my android as a Text resource in Button control. Any guesses?

Square Root Symbol

Answer

inazaruk picture inazaruk · Sep 6, 2011

The unicode code for square root symbol is 221A. You can define string resource as:

<string name="square_root_symbol">\u221a</string>

And then use it in your button:

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

enter image description here