44010

How can i display an emoji in the Toolbar title?

Question:

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?

Answer1:

ActionBar.Title = "\uD83D\uDE03";

<a href="https://i.stack.imgur.com/NT7Zi.png" rel="nofollow"><img alt="enter image description here" class="b-lazy" data-src="https://i.stack.imgur.com/NT7Zi.png" data-original="https://i.stack.imgur.com/NT7Zi.png" src="https://etrip.eimg.top/images/2019/05/07/timg.gif" /></a>

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

<a href="https://i.stack.imgur.com/RYfK1.png" rel="nofollow"><img alt="enter image description here" class="b-lazy" data-src="https://i.stack.imgur.com/RYfK1.png" data-original="https://i.stack.imgur.com/RYfK1.png" src="https://etrip.eimg.top/images/2019/05/07/timg.gif" /></a>

Recommend

  • how to limit max characters in edittext with emoji inputs allowed?
  • Convert emoji to html code or display emoji as html
  • Why does .addView throw this parent/child exception?
  • Counter for words and emoji
  • why fullscreen functionality is not working in chrome?
  • How to Handle Click on Imageview in Custom Listview with image and Textview?
  • MonadTransControl instance for ProxyFast/ProxyCorrect
  • Null ImageView Reference
  • call a java program from a webapp in tomcat server - the java program is out side of tomcat server
  • Zend framework 2 : Add different authentication adapter for two different modules
  • Opening two instances of InAppBrowser (_system and _blank) prevents events from triggering
  • Replace Fragment with another on back button
  • Is there any purpose for h2-h6 headings in HTML5?
  • C++ cout and enum representations
  • Divide a $1 by 3 and adjusting 1 cent
  • Spark (Scala) Writing (and reading) to local file system from driver
  • Android cannot disable cut copy paste
  • Bootstrap (v3.3.4) glyphicons not displayed in IE when refresh page (F5)
  • How do I display a dialog that asks the user multi-choice questıon using tkInter?
  • How to use carriage return with multiple line?
  • MongoDB in PHP using aggregate to group by _id is null not working
  • Linq Objects Group By & Sum
  • Display issues when we change from one jquery mobile page to another in firefox
  • Optimizing database types to compact database (SQLite)
  • How to recover from a Spring Social ExpiredAuthorizationException
  • ILMerge & Keep Assembly Name
  • ActionScript 2 vs ActionScript 3 performance
  • Large data - storage and query
  • To display the title for the current loaction in map in iphone
  • WOWZA + RTMP + HTML5 Playback?
  • R: gsub and capture
  • jqPlot EnhancedLegendRenderer plugin does not toggle series for Pie charts
  • Traverse Array and Display in markup
  • Cannot Parse HTML Data Using Android / JSOUP
  • Comma separated Values
  • Buffer size for converting unsigned long to string
  • trying to dynamically update Highchart column chart but series undefined
  • How to set the response of a form post action to a iframe source?
  • reshape alternating columns in less time and using less memory
  • How to load view controller without button in storyboard?