While setting setInputType(InputType.TYPE_NULL); for the password field, the text we are inputting is visible and will not be masked by dots which is not desirable for password field.
"InputType.TYPE_NULL | TYPE_TEXT_VARIATION_PASSWORD" will display the keyboard. If we try setting the content type again as TYPE_TEXT_VARIATION_PASSWORD, the virtual keyboard will start appearing again. Also tried out the below method which is also not working. InputMethodManager imm = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE); imm.hideSoftInputFromWindow(editTextPasswordnew.getWindowToken(), 0); Setting the InputType to NULL and setting the TransformationMethod still displays locale hints. Can you please suggest any other possible means on how we can achieve hiding the virtual keyboard on a password EditText field? We dont want the user to do it from Settings. Thanks. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

