Switching to a soft keyboard ... how does WhatsApp do it?

I'm working on a messaging app, and I'm just wondering if anyone has the opportunity to sneak into a soft keyboard.

In a way, I have, in fact, my own input method (layout at the bottom of the screen) for sending emoticons, inscriptions, similar things. My problem is that when the soft keyboard switches, I get a serious rubber band and black boxes left during the keyboard transition.

I noticed that WhatsApp does what is essentially the perfect transition between a soft keyboard and its own emoji keyboard, and actually stops any soft keyboard animation (the black area seen behind the keyboard) in general.

The closest thing I came up with is a layout that cuts off everything that will be covered by the keyboard from re-rendering, but that doesn't seem to work as well, and not as close as WhatsApp.

Any help would be appreciated!

tl; dr how can i copy whatsapp emoji keyboard?

+5
source share
1 answer

Whatsapp SEEMS to switch to a new keyboard, but in reality this is not entirely true.

It actually creates a custom keyboard dialog with their Emojis. This is why it seamlessly transitions from a regular keyboard to emoji. You can check it yourself by opening the keyboard, then open the emoji screen and finally select the input method from the notification panel. You will see that a new input screen is displayed behind the emoji screen.

You can see the emoji screen floats above the input dialog.

+4
source

All Articles