Edittext输入的内容显示和隐藏
2022-05-02 本文已影响0人
头发依然在
if (isShow) {//显示
editText.setTransformationMethod(HideReturnsTransformationMethod.getInstance());
} else {//隐藏
editText.setTransformationMethod(PasswordTransformationMethod.getInstance());
}
if (isShow) {//显示
editText.setTransformationMethod(HideReturnsTransformationMethod.getInstance());
} else {//隐藏
editText.setTransformationMethod(PasswordTransformationMethod.getInstance());
}