Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

android disabling predictive text

Tags:

android

I want to disalble the predictive texing.When we give an input through the softkeyboard the predictive texting should not come,i just need the code for disabling the predictive texting.Can anyone help me?

like image 955
Sreedev Avatar asked Dec 14 '11 05:12

Sreedev


People also ask

How do I turn off auto spell on Android?

To turn spell check on or off on Android, you need to go to Settings > System > Languages and input > Virtual keyboard > Gboard > Text correction > Spell check and flick the toggle into the desired position.


1 Answers

You can set the inputType property in the XML layout or call setInputType() with one or more (seperated by |) of those values.

To disable the suggestions use text|textNoSuggestions. However the Sense UI keyboard seems to ignore that, adding textFilter works here.

like image 129
coder_For_Life22 Avatar answered Oct 26 '22 17:10

coder_For_Life22