Reputation: 5216
I need the user to enter text in a Edit Text with custom keyboard options. That is, I need the keypad to show only "S","A","B","C","D","E" and "F" characters. Is it possible to implement this?
Upvotes: 7
Views: 9201
Reputation: 12435
Much easier solution is to add digit parameter in xml definition of EditText like following:
android:digits="SABCDEF"
android:inputType="textNoSuggestions"
Shown keyboard will have all characters but when user try to enter any of not allowed that will be ignored.
Hope this helps
Edit: textNosuggestions to textNoSuggestions
Upvotes: 6