I was tryin to find any class to define a password field?
How can we do that?
Do we have a class for that or some method to edittext?
I was tryin to find any class to define a password field? How can
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
There are a couple of ways of doing this.
The first (apparently) deprecated, is to set this property on the widget in your layout resource file
From code this is equivalent to calling:
(note that this also gives you the flexibility to supply your own implementation of the
TransformationMethodinterface).The second mechanism is to set this property:
again, equivalent to calling: