Android EditText InputType (java code)

via code should like this:

editText.setTransformationMethod(PasswordTransformationMethod.getInstance());

not :

editText.setInputType;


see: 

http://stackoverflow.com/questions/2586301/set-inputtype-for-an-edittext

你可能感兴趣的:(Android EditText InputType (java code))