如何在工具栏标题中显示表情符号?

时间:2016-07-15 12:42:51

标签: android xamarin xamarin.android android-toolbar emoji

我有一个表情符号(例如:“\ U0001F610”),我想在工具栏标题中显示它。它在TextView中运行良好,但它似乎不适用于工具栏。你能否就如何正确地做到这一点给我任何建议?

1 个答案:

答案 0 :(得分:0)

ActionBar.Title = "\uD83D\uDE03";

enter image description here

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

enter image description here