How to use EditTextPreference as a masked Password text field?

前端 未结 5 1953
感动是毒
感动是毒 2021-02-04 23:51

I have a very simple question:
I have a EditTextPreference dialog which I want to use for getting the user\'s password and I want it to be masked.

How c

5条回答
  •  闹比i
    闹比i (楼主)
    2021-02-05 00:39

    android:inputType="numberPassword" doesn't work for me. Eclipse told me, that no String values are allowed for this attribute. So i used following:

    
    

    This got me a EditTextPreference with a dotted textdisplay and a number keyboard for input.

提交回复
热议问题