Search code examples
androidandroid-edittextcontrolsswift-keyboard

How to disable the SwiftKey (third-party keyboard) behavior in 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.

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.

My question is, how can I avoid of any third-party keyboard effects in the EditText control.


Solution

  • Using TYPE_TEXT_FLAG_NO_SUGGESTIONS flag on EditText.InputType solved the issue.