1

I have an app, where I have to disable some buttons, if IME predictions are enabled. Is there a way to check this from app?

Thanks in Advance!!

Yamuna
  • 13
  • 3

1 Answers1

0

I believe what you mean by IME predictions is the autosuggest popup that appears on top of the keyboard.

The only way to do this is to check the inputType of the fields you have. This SO question shows how to enable the autosuggest fields, but, in your case, you will have to call getInputType and check the return value, like so:

if(InputType.TYPE_TEXT_FLAG_NO_SUGGESTIONS & editText.getInputType())
//enable buttons
Community
  • 1
  • 1
verybadalloc
  • 5,768
  • 2
  • 33
  • 49