Android键盘与表情符号 [英] Android Keyboard with Emoji

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

问题描述

所以,我想在我的应用程序,有表情符号,就像WhatsApp的或环聊键盘。我该怎么办呢?我要离开我的键键盘,因为它是我只是想添加标签来把emojis。我认为这将通过软键盘可以方便地支持,但我能找到什么为止。任何人都可以告诉该怎么办呢?

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的奇巧,可以通过长pressing在键盘新线路按键来访问。然而,视频群聊的键盘有表情符号图标可见,而不是新行键。如果有人知道如何使这个默认的(无论是布局还是在程序上)我将采取的正确答案。

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.

推荐答案

在最终得到的答复是:

安卓inputType =textShortMessage

android:inputType="textShortMessage"

新生产线的关键就变成了钥匙取出表情符号键盘。唯一的狡辩是从键盘上新线键消失与此配置(之前,你可以长preSS来绘文字/新线之间选择,但现在它只是表情符号)。

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天全站免登陆