如何显示在Android的对话框版权符号?对话框、符号、版权、Android

2023-09-05 01:39:48 作者:初夏那抹浅蓝

我要显示版权符号:©的AlertDialog的消息中。我设置一个字符串值,在RES /串版权符号。但符号显示为问号的对话框打开时。我怎样才能正确显示在对话框中的版权符号。谢谢你。

I have to show copyright symbol: © in the message of an AlertDialog. I set a string value with the copyright symbol in res/string. But the symbol is shown as a question mark when the dialog opens. How can I correctly show the copyright symbol in the dialog. Thanks.

推荐答案

您还可以使用统一code字符这样的:\ u00A9 2010测试

You can also use the Unicode character for this: "\u00A9 2010 Test"