本文共 446 字,大约阅读时间需要 1 分钟。
效果图:
if (!isshowpwd) {
isshowpwd = true; etLoginPwd.setTransformationMethod(HideReturnsTransformationMethod.getInstance());
} else {
//否则隐藏密码 isshowpwd = false; etLoginPwd.setTransformationMethod(PasswordTransformationMethod.getInstance());
}
etNormalPwd.setSelection(getTV(etNormalPwd).length());
public String getTV(TextView tv) {
return tv == null ? "" : tv.getText().toString();
}
转载地址:http://uzbql.baihongyu.com/