Android EditText for password with android:hint

前端 未结 9 1112
清歌不尽
清歌不尽 2020-12-13 03:21

Just noticed that android:password has been deprecated, and we should be using android:inputType. Was experimenting with it by setting in my xml

         


        
9条回答
  •  再見小時候
    2020-12-13 04:02

    I had the same issue and found a solution :

    Previous code:

        
        
    

    Solution:

    
    
    

    The previous code does not show the 'hint', but when I changed it to the last one it started showing...

    hope this be helpful to someone...

提交回复
热议问题