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
The only way that worked for me using code (not XML) is this one:
etPassword.setInputType(InputType.TYPE_TEXT_VARIATION_PASSWORD); etPassword.setTransformationMethod(PasswordTransformationMethod.getInstance());