Android numeric password field

后端 未结 8 1646
春和景丽
春和景丽 2020-12-05 00:15

I have an EditText field which needs to be a numeric password field. Everything works OK in portrait mode; not in landscape. When the user selects the EditText field, the UI

8条回答
  •  伪装坚强ぢ
    2020-12-05 00:24

    The simplest solution that I found for a numeric text entry that needed to be hidden (password style) was to use: android:inputType="numberPassword"

    Full example that worked for me:

    
    

提交回复
热议问题