Android: How to set password property in an edit text?

前端 未结 9 2072
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-14 05:59

I need to create a login form with \'username\' \'password\' fields and two buttons \'login\' and \'cancel\' in my android application.

I am using an alert dialog w

9条回答
  •  孤街浪徒
    2020-12-14 06:34

    This is deprecated

    In xml of EditText iclude this attribute: android:password="true"

    Edit

    android:inputType="textPassword"
    

提交回复
热议问题