0

I would like to include an emoji in an Android String ressource in an XML file and I wanted to ask if this is possible or not?

I tried the solution suggested in Emoji in strings.xml file?:

<string name="message">Your rating was submitted successfully. Thank you&#128072;!</string>

But this does not work. After "Thank you" nothing is displayed. Any idea how I can change that?

VanessaF
  • 515
  • 11
  • 36
  • Does this answer your question? [Emoji in strings.xml file?](https://stackoverflow.com/questions/52068120/emoji-in-strings-xml-file) – forpas Nov 12 '22 at 15:43
  • @forpas: Thanks for your comment. I had already linked your suggested question and said that it does not help. I tried the solution suggested there but nothing is shown – VanessaF Nov 12 '22 at 15:44

1 Answers1

1

You can use this website: https://getemoji.com/

Go to this website and you will able to literally copy paste emojis in your string file. (No codes required)

Sagar Balyan
  • 620
  • 6
  • 20