Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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

Square Root Symbol

like image 457
YuDroid Avatar asked Dec 09 '22 06:12

YuDroid


2 Answers

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

like image 144
inazaruk Avatar answered May 16 '23 08:05

inazaruk


Copy this and paste in your String resource file.

<string name="sqr_root">√¯¯</string>

Here is the Result:

Square Root Symbol Result

like image 20
PH7 Avatar answered May 16 '23 08:05

PH7