How to include Square root sign as depicted in the following image in android?
-
26-10-2019 - |
Question
I need to include the following square root sign in my android as a Text resource in Button control. Any guesses?
OTHER TIPS
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" />
You should be able to put √ into the string resource.
Well you can have it like this,
√ - Alt+251
Also look at this link - ASCII
Else you can use the image of square root and include inside a button using the property
android:drawableRight="@drawable/square_root"
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow