Android Keyboard with Emoji Android Keyboard with Emoji android android

Android Keyboard with Emoji


As @dbar pointed out, the answer is:

android:inputType="textShortMessage"

But in my case, I was already using textMultiLine, so I had to use the both of them together:

android:inputType="textMultiLine|textShortMessage"

Looks like this:

Keyboard with Emoji ButtonEmoji Keyyboard

I'm not sure about the Exact android version, but this should work only on Android 4.1 and above


Finally the answer was:

android:inputType="textShortMessage"

The new line key becomes a key to take out the emoji keyboard. The only quibble is the 'new line' key from the keyboard disappears with this configuration (before you could long press to choose between emoji/new line but now it's only emoji).


In Google Hangout, the emoji button is not on the keyboard (at least on my phone which is already using a third party keyboard), it's inside of the TextEdit box, and so it's part of the application itself (Gabe, I'm talking about the latest Google Hangout on top of KitKat with emoji support, all the current screenshots I found of Google Hangout do not show what I'm seeing on my phone, so this must be a very recent feature).

This is actually pretty easy to do, placing an ImageButton to the right of a TextView inside a RelativeLayout (the RelativeLayout which is made to look like a TextView with a custom background).

Then, it's just a matter of hiding the keyboard when clicking on that ImageButton and replacing it with a panel full of emojis when that happens (like in this open source emoji android keyboard, which is under a creative commons non-commercial license).