0

Is it possible to hide (or disable) certain characters on the soft keyboard? It's been asked before: Android soft keyboard - disable certain keys but no answer.

(I'd rather hide than disable keys but would go for either) Thanks!

Community
  • 1
  • 1
StackOverflowed
  • 5,854
  • 9
  • 55
  • 119

2 Answers2

1

It can only be done if you create a 3rd party keyboard and the user selects it as the keyboard to be used on their device. I don't think you can customize the keyboard for within your own application very easily.

FoamyGuy
  • 46,603
  • 18
  • 125
  • 156
1

Is it possible to hide (or disable) certain characters on the soft keyboard?

Only if you create your own input method editor (a.k.a., soft keyboard) and get the user to switch to it.

Attributes like android:inputType are hints that some input method editors will honor and may control what characters are available. However, there is no guarantee that any given input method editor will honor it and what characters it will elect to include and exclude.

CommonsWare
  • 986,068
  • 189
  • 2,389
  • 2,491
  • I disagree. I think it was a smart design decision. It prevents would-be malicious applications from trying to trick the user with phoney keyboards. While still leaving it possible to customize the keyboard...so long as the user agrees to it....Or the users carrier/manufacturer agreed to it for them =x. – FoamyGuy May 10 '12 at 15:47