3

Hi I want to include word suggestions in my custom keyboard.

e.g if I write wi it should suggest me whether you want to write "winner" "winks" "wilson" etc

Please guide me.

Thanks

IgorGanapolsky
  • 26,189
  • 23
  • 116
  • 147
John
  • 235
  • 1
  • 6
  • 17
  • Possible duplicate of [How to include suggestions in Android Keyboard](https://stackoverflow.com/questions/29031402/how-to-include-suggestions-in-android-keyboard) – S.L. Barth is on codidact.com Jul 13 '17 at 13:13
  • i hope [this](http://developer.android.com/resources/tutorials/views/hello-autocomplete.html) will help.. :) – CMA May 24 '11 at 09:23

2 Answers2

2

Here is the real answer to this question.

It was hard for me to find:

First you need to:

Add Words to Android's UserDictionary

By having the words in the dictionary, they will show up in suggestions.

If you want to exclusively show your words however, then something like the auto-complete dropdown idea is a better fit (that the other answers linked)

Community
  • 1
  • 1
Hayk Saakian
  • 2,036
  • 2
  • 18
  • 31
1

You can search for source code for android keyboard that are having this suggestion bars, i.e. download source for android gingerbread 2.3 keyboard source code, as android is opensource you can get the code easily.

Hamed Ghadirian
  • 6,159
  • 7
  • 48
  • 67
Pankaj Mehra
  • 134
  • 1
  • 3
  • 7