if (isExpressly) {
etLoginPassword.setInputType(InputType.TYPE_CLASS_TEXT | InputType.TYPE_TEXT_VARIATION_PASSWORD);
isExpressly = false;
} else {
etLoginPassword.setInputType(InputType.TYPE_CLASS_TEXT | InputType.TYPE_TEXT_VARIATION_VISIBLE_PASSWORD);
isExpressly = true;
}
转载于:https://blog.51cto.com/9265036/1747219