How To Write Special Characters In Android
I want to add units to my TextView, such as power (^2, like small letter above the line of text), micro symbol (µ), etc. Someone know how to do this ? Thanks!
Solution 1:
Try adding this in your strings.xml
μ
HTML Entity (decimal) μ
C/C++/Java source code "\u03BC"
Link: URL reference
Solution 2:
yes you can use Unicode characters for your Textview
TextViewtvtext=newTextView(this);
tvText.setText("unicode characters \u00B5");
you can find Unicode for all characters
Solution 3:
You can use:
u00B5 - formicro - µ
u00B2 - forsquare (x²)
Please refer this for more symbols to use in android application.
Post a Comment for "How To Write Special Characters In Android"