How to disable certain keys (say number/symbol keys) in Android virtual keyboard?
Specifically I want user can't input a double quote ( " ) character when virtual keyboard is showed up when user focus on a standard android EditText widget.
How to disable certain keys (say number/symbol keys) in Android virtual keyboard?
Specifically I want user can't input a double quote ( " ) character when virtual keyboard is showed up when user focus on a standard android EditText widget.
How to disable certain keys (say number/symbol keys) in Android virtual keyboard?
You can't, sorry. After all, the input method editor may not have "keys" in the first place.
Specifically I want user can't input a double quote ( " ) character when virtual keyboard is showed up when user focus on a standard android EditText widget.
Then you will have to block the input at the EditText
, by means of an InputFilter
, as is described here: How do I use InputFilter to limit characters in an EditText in Android?
why don't you use android:inputType="..."
for your EditText
http://developer.android.com/reference/android/widget/TextView.html#attr_android:inputType