if (isShow) {//显示
editText.setTransformationMethod(HideReturnsTransformationMethod.getInstance());
} else {//隐藏
editText.setTransformationMethod(PasswordTransformationMethod.getInstance());
}
if (isShow) {//显示
editText.setTransformationMethod(HideReturnsTransformationMethod.getInstance());
} else {//隐藏
editText.setTransformationMethod(PasswordTransformationMethod.getInstance());
}
本文标题:Edittext输入的内容显示和隐藏
本文链接:https://www.haomeiwen.com/subject/kcgmyrtx.html
网友评论