Java – Android Password XML Attribute – Deprecated

Android Password XML Attribute – Deprecated… here is a solution to the problem.

Android Password XML Attribute – Deprecated

How do I block editText now?

enter image description here

My input type is number. How should I mask it now while limiting it to numbers?

Solution

You can use android:inputType="numberPassword" for EditText.

Related Problems and Solutions