How to set emojis like WhatsApp chat instead of mobile specific [closed]

本小妞迷上赌 提交于 2019-12-10 13:28:39

问题


I'm working on one project in that I export WhatsApp chat and set in TextView. Emojis used in chat is actual WhatsApp emojis but when I set in TextView it shows as Android emojis depends on the device.

Question: how to set whats app emojis in TextView?

Try: all I can find is how to make custom keyboard and libraries for custom keyboard**(i don't want to make custom emojies keyboard, unless that's the only option)** but I'm not sending any data. I'm just getting data and set in TextVeiw I'm wondering if anybody can guide. ,


回答1:


Emoji is Unicode just like any other character, that's why it's displaying system emojis even when you are using the WhatsApp messages in TextView. To display custom emojis like WhatsApp you have to implement it yourself. Check out this library it may help.

Some other libraries: Emoji Emoji Keyboard

Also, take a look at Android Emoji Compatibility Library

Even if you are not trying to send data, you can use these libraries to just display text and emojis with their respective custom TextView.




回答2:


First of you need to design your own emojis for your app and then replace it with the system emoji unicode so when user types Android default emojis then it will be replaced by your custom emojis. Check this link for how it works



来源:https://stackoverflow.com/questions/55340941/how-to-set-emojis-like-whatsapp-chat-instead-of-mobile-specific

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