I'm looking for the easiest way (ie without rewritting a keyboard, if possible - maybe using an existing one out there?) to create an editText to input a digit password.
It's not that uncommon, yet I found no flag combination to do that.
Since it's digit only characters, I either want a digit only keyboard (ideally like on the iphone, 4*3=12 keys
, 0-10+del+ok
), or at least a phone-like keyboard, with ()+*
and characters like that, but so that they can't be written in the textEdit.
I don't mind using deprecated flags.
In particular, number|textPassword for inputType doesn't work (characters not hidden), android:password="true"
android:inputType="phone"
and android:numeric="integer"
android:password="true"
produce the same result, but the hint text disappears and special characters are still allowed.
Thanks.