How can I ad the TM symbol to a line of text like you would in HTML
™
Assuming you can't use the HTML entity you provided
™
you can use the unicode escape
String str = "\u2122";
or the character literal
String str = "™";
For Android String.xml - use:
™
For example:
<string name="company_name">Company ™</string>
This will show as:
Company ™
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With