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. ,
Step 1: To activate, open your Settings menu and tap on System > Language & Input. Step 2: Under Keyboard, select On-screen Keyboard > Gboard (or your default keyboard). Step 3: Tap on Preferences. Step 4: Turn on the Show Emoji-switch Key option.
Long press the message to which you wish to react. A pop-up will appear with six available emoji. Select one of the six emoji in the pop-up to use as the reaction. Your message reaction will appear below the message you previously selected.
You can change your reaction to a different one. Long press on a message you reacted to. Tap a different emoji or tap to select a different emoji from your keyboard. You can remove your reaction to a message.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With