Android password XML attribute - Deprecated
<p>How do I mask editText now?</p>

<p><a href="https://i.stack.imgur.com/3MxEe.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/3MxEe.png" alt="enter image description here"></a></p>

<p>My inputType is number. How should I mask it now and at the same time restricting it to just number?</p>