I have the following:
I\'m getting a
Just set your input type to this android:inputType="textPassword|number"
Set android:inputType="numberPassword"
See this Link
you should use TYPE_CLASS_NUMBER.
EDIT:
As this answer
android:inputType="textPassword|number"
ignore textPassword and only accept number but not password.
So you should use android:inputType="textPassword|number"
with android:password="true"
.
that seems to be the only solution.