How can i display an emoji in the Toolbar title?

为君一笑 提交于 2019-12-25 07:21:39

问题


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?


回答1:


ActionBar.Title = "\uD83D\uDE03";

ActionBar.Title = "\uD83D\uDE03" + "\uD83D\uDE0F" + "\uD83D\uDE10";



来源:https://stackoverflow.com/questions/38396429/how-can-i-display-an-emoji-in-the-toolbar-title

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!