Ben
Ben

Reputation: 81

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.

Upvotes: 3

Views: 2686

Answers (2)

Ben
Ben

Reputation: 81

Using TYPE_TEXT_FLAG_NO_SUGGESTIONS flag on EditText.InputType solved the issue.

Upvotes: 1

CommonsWare
CommonsWare

Reputation: 1007474

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

You can't. The choice of the input method editor ("keyboard app") is up to the user, not you. AFAIK, there are some devices that ship with SwiftKey as the default.

Upvotes: 0

Related Questions