如何设置表情符号(如WhatsApp聊天)而不是特定于移动设备 [英] How to set emojis like WhatsApp chat instead of mobile specific

查看:288
本文介绍了如何设置表情符号(如WhatsApp聊天)而不是特定于移动设备的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在处理一个项目,因为我导出WhatsApp聊天并在TextView中进行设置。聊天中使用的表情符号是实际的WhatsApp表情符号,但是当我在TextView中进行设置时,它显示为Android表情符号取决于设备。

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.

问题:如何在TextView中设置应用表情符号?

尝试:我所能找到的就是如何制作自定义键盘和自定义键盘的库**(我不想制作自定义表情符号键盘,除非这是唯一的选择)**,但我没有发送任何数据。我只是获取数据并在TextVeiw中进行设置,我想知道是否有人可以指导。 ,

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. ,

推荐答案

表情符号与其他任何字符一样都是Unicode,这就是为什么即使在TextView中使用WhatsApp消息时也显示系统表情符号。要显示类似WhatsApp的自定义表情符号,您必须自己实现。看看这个图书馆可能会有所帮助。

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.

其他一些库: Emoji 表情符号键盘

另外,请查看 Android Emoji兼容性库

即使您并不是要发送数据,可以使用这些库来显示带有各自自定义TextView的文本和表情符号。

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.

这篇关于如何设置表情符号(如WhatsApp聊天)而不是特定于移动设备的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆