Show AutoCompleteTextView Offers

Is it possible for AutoCompleteTextView to display sentences above the keyboard, as if using the default dictionary? (If so, how :))

Or can I use my own database to show the sentence when using EditText?

I hope you understand what I mean :)

thanks

Bastaixen

+4
source share
1 answer

I do not think that's possible. The suggestions shown above the keyboard are actually part of the IME, therefore, are not completely related to your application / activity.

The only way to do this is to create your own IME for yourself, and then you can configure what offers will be there. You can install it on latinIME , but there are a few more things you will need to figure out:

  • You will need to figure out how to tell Android that you are using your own IME in your application. Or, for example, this answer , just create a keyboard in your application.
  • If your user uses a different keyboard (for different languages, or swype or something like that), they probably won't really like it ...
0
source

Source: https://habr.com/ru/post/1397509/


All Articles