Edittext set for password with phone number input? (android)

后端 未结 5 1939
野的像风
野的像风 2020-12-03 17:09

How do I get a Edittext with both a phone input and the ability to hide the string. I know that

android:inputType=\"textPassword\"

hides th

5条回答
  •  情书的邮戳
    2020-12-03 17:17

    I believe this is what you want?

    android:inputType="numberPassword"
    

    Edit: At the time of the question (2010) this may have not been in the API, but for contemporary development, it's available.

提交回复
热议问题