如何禁用EditText中的SwiftKey(第三方键盘)行为? [英] How to disable the SwiftKey (third-party keyboard) behavior in EditText?
问题描述
我在Android应用中使用标准的EditText控件. 仅应从应用程序的内置键盘中插入此EditText的输入.
I'm using the standard EditText control in my Android app. The input for this EditText should be inserted only from the built-in Keypad of the app.
在设备上安装 SwiftKey (第三方键盘应用程序)时,会导致奇怪的行为,如跳动的光标,并在某些文本下方加下划线.
When SwiftKey (third-party keyboard app) is installed on the device, it causing to strange behavior like a jumpy cursor, and underline below some text.
我的问题是,如何避免EditText控件中的任何第三方键盘效果.
My question is, how can I avoid of any third-party keyboard effects in the EditText control.
推荐答案
使用EditText.InputType上的 TYPE_TEXT_FLAG_NO_SUGGESTIONS 标志解决了该问题.
Using TYPE_TEXT_FLAG_NO_SUGGESTIONS flag on EditText.InputType solved the issue.
这篇关于如何禁用EditText中的SwiftKey(第三方键盘)行为?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!