1

Possible Duplicate:
Include Word Suggestions in Android Keyboard

I have created a custom keyboard for Android which will be the default keyboard of my smartphone and it will work with any app.

Now I want to add a feature of predictive text in it so that during chat /messages/mail if I type "ki" it will predict some words like "king" "killer" "kite" etc

Please help me because I'm desperate to add this feature.

As a reference to what I want click it

Community
  • 1
  • 1
John
  • 235
  • 1
  • 6
  • 17

1 Answers1

0

Instead of EditText, you have to use AutoCompletetextView where you have to load options. This means that if user writes ki, all possible options will be loaded.

Reference: http://android-er.blogspot.com/2010/07/example-of-autocompletetextview.html

double-beep
  • 5,031
  • 17
  • 33
  • 41
Sunil Kumar Sahoo
  • 53,011
  • 55
  • 178
  • 243
  • hi friend i am developing a keyboard which will work as a normal keyboard not an app which will have a textview and on cliking text view u will get predictive list i want some thing like if u use sms app using android keyboard u wil see a list of predictive text in a single line.............Thanks for ur reply Have a good day:) – John Jun 01 '11 at 06:22
  • plz reply if any one knows about it – John Jun 01 '11 at 06:45