Android custom keyboard

I read an article on how to implement an input processing method from the android website. I want to develop a special Android keyboard with big keys. I followed the example of SoftKeyboard, everything works well, but something important is missing: viewing candidates does not give me any candidate. Can anyone help on how to associate the viewing of custom candidates with an internal list of offers for Android?

thanks for the help

+4
source share
1 answer

It may not be clear in the documentation that the onDisplayCompletions callback is only valid for completed applications. There is no internal dictionary in the Android database to suggest words based on what you type, that is, an input / input method method; but there is support for completing applications, and this is what you are watching right now.

So the example does this, but you should use an application that offers material. Most text fields will not.

An example application is Facebook. If you install the Facebook app, go to "Messages", click "To," and turn the device to the side. Then enter the beginning of the friend’s name and you will see how the name of your friends appears in the completion list.

+2
source

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


All Articles