3

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

enter image description here

Adil Soomro
  • 37,609
  • 9
  • 103
  • 153
Archie.bpgc
  • 23,812
  • 38
  • 150
  • 226

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
  • 67,549
  • 16
  • 165
  • 178
  • 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
  • 26,213
  • 16
  • 65
  • 114