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

前端 未结 9 2061
佛祖请我去吃肉
佛祖请我去吃肉 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:14

    I found when doing this that in order to set the gravity to center, and still have your password hint show when using inputType, the android:gravity="Center" must be at the end of your XML line.

    
    
    

提交回复
热议问题