Reputation: 151
I want to show a kepyad only with following numbers and characters:
*0123456789#
, but when I am using
accessCodeEditText.setInputType(InputType.TYPE_CLASS_PHONE);
I have some another characters like +WNP()/-,.
, how can I hide this extra characters from keypad?
Upvotes: 1
Views: 411
Reputation: 508
change your EditText in xml file to:
<EditText
.
.
.
android:inputType="phone" />
Upvotes: 1