3

I dont want my softkeyboard show these suggestions and any of the symbols like !, ", ,, :,'.

enter image description here

Adil Soomro
  • 37,173
  • 9
  • 101
  • 148
Archie.bpgc
  • 23,257
  • 38
  • 147
  • 220

2 Answers2

6

To stop offering suggestions, add the following attribute to your EditText in XML:

android:inputType="textNoSuggestions"

and/or add multiple types using | as below:

android:inputType="textNoSuggestions | text"
waqaslam
  • 66,380
  • 16
  • 161
  • 174
  • No, it will only skip suggestions... and I don't think by default alphabet-only keyboard is possible, unless you design one for yourself. But as an alternate, you may use `TextWatcher` on your EditText to omit unwanted characters – waqaslam Jul 17 '12 at 09:00
2

You can add this line to you EditText

android:inputType="textFilter"

See here why it sometimes better than textNoSuggestions

Community
  • 1
  • 1
Lior Iluz
  • 25,723
  • 16
  • 64
  • 110