How do I mask editText now?

My inputType is number. How should I mask it now and at the same time restricting it to just number?
You can use android:inputType="numberPassword" for the EditText.
Replace android:inputType="number" with android:inputType="numberPassword"
Delete android:password="true"
For explanations on each of the values inputType can have:
http://developer.android.com/reference/android/widget/TextView.html#attr_android%3ainputType
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