[英]Is there a way to show emoji's button in soft-keyboard in a webview app?
Is no way to define something like an edittext with "textShortMessage"
because is a web input. 由于是Web输入,因此无法使用
"textShortMessage"
定义类似edittext的方法。
Overriding onCreateInputConnection
of WebView and setting outAttrs.inputType = InputType.TYPE_TEXT_VARIATION_SHORT_MESSAGE;
重写WebView的
onCreateInputConnection
并设置outAttrs.inputType = InputType.TYPE_TEXT_VARIATION_SHORT_MESSAGE;
doesn't work. 不起作用。
Or with imeOptions like outAttrs.imeOptions = EditorInfo.IME_ACTION_NONE;
或者使用imeOptions,例如
outAttrs.imeOptions = EditorInfo.IME_ACTION_NONE;
only switches the "go key" to "next key". 仅将“执行键”切换为“下一键”。
Any ideas? 有任何想法吗?
There is no way to force this. 没有办法强制这样做。 The keyboard is a separate app, and may choose what keys to show.
键盘是一个单独的应用程序,可以选择要显示的键。 There is no way to force it to.
没有办法强迫它。 For context changing keys, most keyboards look at a few clues like input type and whether its multi-line.
对于上下文更改键,大多数键盘会查看一些线索,例如输入类型以及是否为多行。 However anything that works for one keyboard may break it on another.
但是,任何适用于一个键盘的东西都可能会折断另一个键盘。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.