Q:

Code equivalent for android:password="false"

I'd like to ask a simple question, what is the equivalent android code for android:password="false" on the xml layout file. (I googled it but can't find the result:) )
Thank you

A:

The equivalent to android:password="false" is TextView.setTransformation(null). Using it with PasswordTransformationMethod is equivalent of android:password="true"

