简体   繁体   中英

How to show registered Ⓡ or trademark ™ symbol in dialog?

I have to show registered Ⓡ and trademark ™ symbol , in the message of an AlertDialog . I set a sting value with the registered and trademark symbol in res/string. But the symbol is shown as a question mark when the dialog opens. How can I correctly show the these symbols in the dialog. Thanks.

try this

for Ⓡ symbol use ® and trademark ™ symbol ™

for Ⓡ symbol use ® and trademark ™ symbol ™

Keep the value in resources folder where strings are stored, it should work as I currently tested the same and its working. See the dialog, I am attaching the screenshot for same.! 在此输入图像描述

This might help you, use:

<string name="MY_STRING">&amp;reg;</string>

See Display ® registered trademark symbol in Android v4.0 WebView?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM