The name of the app with superscript text android

I want to name my Android app using a super script (UNO ™). As you can see, tm is smaller and up the line.

I used Html.fromHtml(X +"<sup><font style=\"font-size:1;\">TM</font ></sup>"));

Also in strings.xml I used <string name="app_name"> X<sup><font style="font-size:1;">TM</font></sup> </string>

And it does not work. How can i do this?

+4
source share
1 answer

Instead, you need to use the unicode trademark character .

<string name="app_name"> Your name &#8482;</string>

where &#8482;is ™

+4
source

Source: https://habr.com/ru/post/1622987/


All Articles