I need a number keyboard on a PIN EditText
. I tried using
android:inputType="number|textPassword"
This brings up the number keypad, but the characters are not password chars.
How to get a number keypad that shows password chars in EditText
view?
The app runs on 2.2 and above.
You should have a look here: Edittext set for password with phone number input? (android)
It states that
android:password
is deprecated, but is the only way because android:inputType="phone|textPassword"
is ignored ...
<EditText
android:id="@+id/EditText01"
android:layout_height="wrap_content"
android:layout_width="fill_parent"
android:password="true"
android:inputType="phone"
/>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With