Android:如何在Emoji View中以编程方式打开软键盘 [英] Android : How to programmatically open the soft keyboard in Emoji View

查看:444
本文介绍了Android:如何在Emoji View中以编程方式打开软键盘的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

正如我所看到的,在android上显示默认表情符号的方法是在输入文字上使用以下内容。

  android :inputType =textMultiLine | textShortMessage

当我搜索时,我找不到办法这是通过Java。我想要做的是当软键盘打开时,让用户选项卡在表情符号视图和普通键盘视图之间切换。



自定义表情符号键盘。



我已经实现了这一点,但使用Emojis已经在设备上发布kik-kat会更好更轻。



Google确实在这些观看次数之间切换。



在Google Allo上,按editText开关视图中的表情符号图标。

解决方案

尝试了一段时间后,我甚至没有实现这个目标



我认为如果没有自定义表情符号的实现


As I see, a way to show default emojis on android is by using the following on an input text.

android:inputType="textMultiLine|textShortMessage"

When I search, I can't find a way to do this through Java. What I want to make happen is that when the soft keyboard is open, have the user tab a button to switch between emoji view and normal keyboard view.

Custom Emoji Keyboard.

I've already implemented this, but it would be much better to and lighter to use Emojis already on the device for post kik-kat.

Google does switch between this views.

On Google Allo, pressing the emoji icon inside the editText switch views.

解决方案

After trying for a while I didn't achieved this goal even injecting a keyevent.

Looking in Google Allo, that looks as a custom implementation. I have switftkey themed keyboard and on KitKat Moto G (1st gen) it's very remarkeable. I tested also on a Marshmallow Moto G (2nd gen) with native keyboard, but contracted, and you can see that isn't the real soft keyboard :

I think there is no way to achieve this without a custom emoji's implementation.

这篇关于Android:如何在Emoji View中以编程方式打开软键盘的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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