带有表情符号的 Android 键盘 [英] Android Keyboard with Emoji

查看:37
本文介绍了带有表情符号的 Android 键盘的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以我想在我的应用程序中使用一个带有表情符号的键盘,就像 Whatsapp 或 Hangouts 一样.我怎样才能做到这一点?我想离开我的键盘,因为我只想添加标签来放置表情符号.我认为软键盘很容易支持它,但到目前为止我什么也找不到.谁能告诉我怎么做?

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?

更新:带有表情符号的键盘包含在 Android KitKat 中,可以通过长按键盘中的换行按钮访问.但是,环聊键盘显示的是表情符号图标,而不是换行"键.如果有人知道如何将其设为默认值(在布局中或以编程方式),我会将其视为正确答案.

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.

推荐答案

最后的答案是:

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

这篇关于带有表情符号的 Android 键盘的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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