如何在工具栏标题中显示表情符号? [英] How can i display an emoji in the Toolbar title?
本文介绍了如何在工具栏标题中显示表情符号?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个表情符号(例如:"\ U0001F610"),我想在工具栏标题中显示它.它在TextView中工作良好,但似乎不适用于工具栏.您能给我一些有关如何正确执行操作的建议吗?
I have an emoji(ex: "\U0001F610") and I'd like to display it in the toolbar title. It works well in a TextView, but it doesn't seem to work for the toolbar. Can you give me any advice on how to do it properly?
推荐答案
ActionBar.Title = "\uD83D\uDE03";
ActionBar.Title = "\uD83D\uDE03" + "\uD83D\uDE0F" + "\uD83D\uDE10";
这篇关于如何在工具栏标题中显示表情符号?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文