So I want to have a keyboard in my app that has emoji just like Whatsapp or Hangouts. How can I do that? I want to leave my key keyboard as it is I just want to add tabs to put emojis. I would think it would be easily supported by the soft keyboard but I can find nothing so far. Anyone could tell how to do it?
UPDATE: The keyboard with emoji is included in Android KitKat and can be accessed by long pressing the new line button in the keyboard. The Hangouts keyboard however has the emoji icon visible instead of the "new line" key. If someone knows how to make this the default (either in layout or programmatically) I will take that as the correct answer.
If you don't see the emoji keyboard, make sure that it's added. Go to Settings > General and tap Keyboard. Tap Keyboards, then tap Add New Keyboard. Tap Emoji.
Fleksy. Fleksy has a slew of emoji and themes to have fun with. Fleksy is a free keyboard download with in-app purchases for Android and iOS. The keyboard has thousands of emoji -- with recommendations based on your texting habits -- as well as gifs to pepper your texts with.
Step 1: Tap the Settings icon and then General. Step 2: Under General, head over to the Keyboard option and tap the Keyboards submenu. Step 3: Select Add New Keyboard to open a list of keyboards available and choose Emoji. You have now activated the emoji keyboard to use while texting.
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:
I'm not sure about the Exact android version, but this should work only on Android 4.1 and above
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